Skip to content

Auth API: Issues with access to "Manage Business" for non-admin user #27348

Closed

Description

@OlgaPotiagalova

This problem is reported by early adopters (Sarah Chung from Bennett Jones, Apr 23):

Hi, we have an odd problem where if the added company still has this message showing:

image.png

image.png

Non-admin users cannot click the "manage business" button. If they try, it does nothing. But if an admin user first goes into "manage business", that above message disappears and the non-admin users can now use the button without issue.

It's not a non-admin account, it's a non-admin user on our firm account, so they should already be affiliated with the business? When they view the My Business Registry screen, they see the same message saying "Authorized - you can now manage this business"

So currently, our other users can't make any filings until Dawn or myself go into each card first.

Activity

  1. added
    Entities Team
    on Apr 24, 2025
  2. added
    bug
    on Apr 25, 2025
  3. severinbeauvais commented on Apr 25, 2025

    @severinbeauvais
    Collaborator

    Update: this is not the problem but is good to know. Skip to comments further down for problem.

    I believe this problem is due to a misunderstanding of how this feature works.

    To start with, there are 2 accounts involved:

    • the requestor
    • the authorizer

    When one account ("requestor") searches and selects a business to affiliate, they can use the "request authorization from another account" option, ie:

    image.png

    An authorization request is sent to the other account ("authorizer"). (This includes an email and a notification on the subject business' dashboard.)

    In the requestor's Business Registry dashboard, they will first see this. Note that they cannot manage the business yet, but they can cancel the request.

    image.png

    In the authorizer's business Registry dashboard, the will see this.

    image.png

    And in the subject business' dashboard, the authorizer will see this:

    image.png

    After the authorizer clicks the Authorize button, the requester will see this. (This is the same as the screenshot at the top of this ticket.)

    image.png

    The message under the business name goes away once the user has clicked Manage Business once, ie:

    image.png

    In summary, other than possible confusion in how this feature works, it seems to be working as intended.

  4. severinbeauvais commented on Apr 25, 2025

    @severinbeauvais
    Collaborator

    OK, for fun I added some team members as USERs to different Dev accounts:

    • For BCREG0020, BCREGTEST Gregory TWENTYONE is a USER (while BCREGTEST Lucille TWENTY is an Account Administrator).
    • For BCREG0021, BCREGTEST Lucille TWENTY is a USER (while BCREGTEST Gregory TWENTYONE is an Account Administrator).

    This will let me test cross-account authorizations with USER accounts...

  5. severinbeauvais commented on Apr 25, 2025

    @severinbeauvais
    Collaborator

    OK, I have reproduced the problem in this ticket (and a related problem).

    1. Can't request authorization from a User account

    1. create a User account
    2. go to the BRD for that account (eg, in Dev, login as BCREG0021 and access Severin Dev Account)
    3. search for a business in another account (eg, BC0887541) and select it
    4. select "request authorization from an account managing this business", fill in the fields, and click Manage this Business
    5. see errors:

    Error in affiliation modal:
    image.png

    Error in dev console tab:
    image.png

    Error in network tab:
    image.png

    2. Can't manage business after business is affiliated

    This is the problem described at the top of this ticket.

    To reproduce, use an Administrator account to request the authorization, but use a user account to open the business once it's first authorized.

    Can we get the SBC Connect (Auth) team looking at this, please? @OlgaPotiagalova @JohnamLane

  6. added
    connect
    on Apr 25, 2025
  7. removed their assignment
    on Apr 25, 2025
  8. changed the title [-]Issues with access to "Manage Business" for non-admin user[/-] [+]Auth API: Issues with access to "Manage Business" for non-admin user[/+] on Apr 25, 2025
  9. OlgaPotiagalova commented on Apr 25, 2025

    @OlgaPotiagalova
    CollaboratorAuthor

    @sandragornall, could you please review it with your team. Thank you

  10. severinbeauvais commented on Apr 29, 2025

    @severinbeauvais
    Collaborator

    The question is: Should users be able to have functionality to affiliate businesses or request to affiliate businesses that coordinators and admins have?

    This is a business question. cc: @sandragornall @JohnamLane

  11. severinbeauvais commented on Apr 29, 2025

    @severinbeauvais
    Collaborator

    If the decision is Yes then some Auth API work is needed.

    If the decision is No then perhaps we shouldn't give non-admin users the option to try these actions? (Potential BRD work. cc @JazzarKarim )

  12. severinbeauvais commented on May 7, 2025

    @severinbeauvais
    Collaborator

    I believe this is fixed by #27068. Please verify.

  13. riyazuddinsyed commented on Jul 16, 2025

    @riyazuddinsyed
    Contributor

    Already verified with ticket #27068.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities Teambugconnect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions