Skip to content

Auth API: allow USER role to perform delegation #30406

Closed

Description

@severinbeauvais

Currently, users with account type USER can initiate an invitation request but it fails (by design). In this ticket, we want to allow USER to request delegation.

See original code change: bcgov/sbc-auth#3497

(Auth API version should also be updated, and this can be released or hotfixed to Test and Prod asap.)

Decision is recorded in the RAID ticket https://app.zenhub.com/workspaces/raid--work-space-617c3d4cef313f001d715a7c/issues/gh/bcgov-registries/raid/712

Activity

  1. added
    Entities Team
    connect
    on Aug 27, 2025
  2. severinbeauvais commented on Sep 5, 2025

    @severinbeauvais
    CollaboratorAuthor

    @OlgaPotiagalova , please let me know when I can proceed with this change. Thanks! decision was made to proceed -- SB

  3. severinbeauvais commented on Sep 10, 2025

    @severinbeauvais
    CollaboratorAuthor

    @riyazuddinsyed , chat with me for how to test this. (If I have time, I'll add comments below instead.)

  4. severinbeauvais commented on Sep 11, 2025

    @severinbeauvais
    CollaboratorAuthor

    Test Notes

    1. in one session, login to any account (eg, BCREGA001)
    2. in another session, login to an account where the team member is a USER (may need Travis' help for this) (eg, BCREG0020)
    3. in the first session, look at the BRD and choose a business (eg, BC0888374)
    4. in the second session, go to the BRD and retrieve/affiliate the business
    5. in the Manage Business dialog, select option to request authorization from another account
    6. select other account (eg, asdfsd3333)
    7. click Manage this Business
    8. see success snackbar message:

    image.png

  5. severinbeauvais commented on Sep 11, 2025

    @severinbeauvais
    CollaboratorAuthor

    deleted obsolete comment

  6. severinbeauvais commented on Sep 12, 2025

    @severinbeauvais
    CollaboratorAuthor

    More Test Notes

    Try the following:

    • a USER can request delegation from another account
    • a USER can see their own requests in BRD
    • a USER can delete their own request
    • a USER cannot authorize/reject delegation from another account (they will see buttons but actions will fail)
    • an account (any role) cannot delete delegation from another account (delegation request must be authorized/rejected, or cancelled from other account)
  7. severinbeauvais commented on Sep 12, 2025

    @severinbeauvais
    CollaboratorAuthor

    @OlgaPotiagalova , the fix for this issue (which is in Auth API) is in Dev and Test, but not scheduled to be released to Prod until next week or the week after. FYI.

  8. severinbeauvais commented on Sep 12, 2025

    @severinbeauvais
    CollaboratorAuthor

    Test Results (in TEST environment)

    Setup: Under login BCREGA005, account "testing" (org 924) was changed to role=USER (ie, changed memberships). The default account, "Claudine Lo" (org 720) was not touched and remains with role=AA.

    image.png

    image.png

    Test 1 - account "testing" successfully requested authorization from account "Claudine Lo":

    image.png

    Test 2 - account "Claudine Lo" successfully requested authorization from account "testing":

    image.png

    Test 3 - account "testing" cannot Authorize (or Not Authorize) the affiliation invitation:

    image.png

    Test 4 - account "Claudine Lo" can Authorize (or Not Authorize) the affiliation invitation:

    (no screenshot but this works)

  9. riyazuddinsyed commented on Sep 12, 2025

    @riyazuddinsyed
    Contributor

    Verified in test with Sev working as expected

  10. changed the title [-]Auth API: allow USER to perform delegation[/-] [+]Auth API: allow USER role to perform delegation[/+] on Sep 15, 2025
  11. vikas-gov commented on Sep 19, 2025

    @vikas-gov
    Collaborator

    The change has been approved for Release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities TeamRelationshipsconnect

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions