Skip to content

Edit UI: Officers change filing saying Access Restricted when its being initiate from a non default account. #31349

Closed
1 of 1 issue completed

Description

@riyazuddinsyed

Describe the bug in the current situation
When an Officer change filing is initiated from a Business that is affiliated with a secondary account, the UI throws a pop-up saying Access restricted

Impact of this bug
Officer Change fillings can't be initiated from the business affiliated to the secondary account

Steps to reproduce the behavior:

  1. Go to 'https://test.bcregistry.gov.bc.ca/en-CA' and login BCREGA001
  2. Navigate to the "NEW BC ONLINE TECH TEAM" account
  3. Open BC1200249 businesses
  4. Start an Officer Change Filing
  5. See an error

Expected behavior
Users should be able to file an Officer Change filing from any Sub Account

Screenshots/ Visual Reference/ Source

Private Zenhub Video

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    bug
    Entities Team
    on Nov 18, 2025
  2. severinbeauvais commented on Nov 18, 2025

    @severinbeauvais
    Collaborator

    The account id is "646" in the BRD, the Business Dashboard and Edit UI. but Officer UI is defaulting to a different account id (the first account for this login).

  3. added
    connect
    on Nov 18, 2025
  4. OlgaPotiagalova commented on Nov 18, 2025

    @OlgaPotiagalova
    Collaborator

    @JohnamLane, could you please review and see how this should be addressed.

  5. severinbeauvais commented on Nov 18, 2025

    @severinbeauvais
    Collaborator

    Because the UIs are in different domains, the account id in session storage is not properly shared between the UIs.

    As a work-around, most UIs pass along the account id as a URL parameter, and most UIs accept that and configure themselves accordingly.

    In this scenario, Edit UI is not passing the account id as a URL parameter and I am not sure whether Officer (Person-Role) UI will accept it. We could implement this but it's still a work-around.

    Ultimately, a new way to share account info between UIs will be implemented and will resolve THIS issue.

  6. TVWerdal commented on Nov 19, 2025

    @TVWerdal
    Collaborator

    This functionality appears to be implemented in the Officer Change form, but is not being sent by Edit UI.

    Test:

    1. Login as bcreg0020
    2. change accounts - note the account id (example ?accountid=3041)
    3. Choose a company for an officer change
    4. Go to "View and Change Business Information"
    5. Select "Add Officers"
    6. wait for the page to load, you will see the error above.
    7. Append the account_id query string to the end of the URL (example: https://dev.people.business.bcregistry.gov.bc.ca/en-CA/officer-change/C9900798?accountid=3041 )
    8. Observe you are now able to add officers

    Take away - As Severin suggested, we can either add the query string when we jump off to the officer-change URL as a short term fix, or we can await the implementation of the new way to share account info that is incoming.

  7. changed the title [-]Officers change filing saying Access Restricted when its being initiate from a secondary account.[/-] [+]Officers change filing saying Access Restricted when its being initiate from a non default account.[/+] on Nov 19, 2025
  8. severinbeauvais commented on Nov 19, 2025

    @severinbeauvais
    Collaborator

    We just decided in Standup that we'll wait to hear back from @JohnamLane before deciding whether to wait for new functionality or patch in a workaround (ie, account id in URL).

    FYI: @kialj876 @cameron-eyds @seeker25

  9. severinbeauvais commented on Nov 19, 2025

    @severinbeauvais
    Collaborator

    Travis, yes, thanks. This was FYI. A decision needs to be made on the immediate way ahead.

  10. seeker25 commented on Nov 21, 2025

    @seeker25
    Contributor

    Dietrich showed me this https://github.com/bcgov/connect-nuxt/blob/main/packages/layers/auth/app/middleware/01.setup-accounts.global.ts#L8

    Old Nuxt layers doesn't have it? Maybe use new layer?

  11. severinbeauvais commented on Nov 21, 2025

    @severinbeauvais
    Collaborator

    Edit UI is apparently not setting the accountid URL parameter when navigating to Person Roles UI.

  12. changed the title [-]Officers change filing saying Access Restricted when its being initiate from a non default account.[/-] [+]Edit UI: Officers change filing saying Access Restricted when its being initiate from a non default account.[/+] on Dec 9, 2025
  13. removed
    connect
    on Dec 9, 2025
  14. severinbeauvais commented on Dec 9, 2025

    @severinbeauvais
    Collaborator

    This was just discussed at Officers Readiness Meeting and Kial prefers Entities Team to fix this and I'm OK with that :)

  15. severinbeauvais commented on Dec 9, 2025

    @severinbeauvais
    Collaborator

    This is not high priority because the early adopters only use a single account each.

  16. severinbeauvais commented on Jan 26, 2026

    @severinbeauvais
    Collaborator

    Test Notes

    Try going to the Officer Change UI from the (View and Change) Company Information page, for a business affiliated to the

    1. start from logged out
    2. login as a regular user
    3. change to a non-default account
    4. find a business affiliated to the non-default account and not affiliated to the default account
    5. manage that business
    6. go to Company Information page (View and Change Company Information)
    7. click Add Officers or Manage Officers button
      • before this fix, you would likely see a "Page not available" dialog (and HTTP 403 in dev tools) -- this depends on what's in session storage / cookies
      • now, you should see "accountid=..." in the URL and the page should open
  17. self-assigned this
    on Jan 30, 2026
  18. gunanagar commented on Feb 3, 2026

    @gunanagar
    Collaborator

    Tested, Looks good with Add officers/ Manage officers.

    1. Logged out
    2. Login as a regular user
    3. Change the default account(AC Account) to another account( non default account- BAR BATCH 2)
    4. Select Business STARFISH & TEACUPS TRAVEL LTD.-https://test.business-dashboard.bcregistry.gov.bc.ca/BC1517099/?accountid=2942
    5. Go to Manage business
    6. Hit "View and change business information"
    7. Hit Officer change
    8. Able to open the page, Also account id is displayed, Pls refer to screen shots

    image.png

    image.png

  19. self-assigned this
    on Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities TeamPriority2bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions