Skip to content

Business API - business account settings view/update permissions #30992

Closed

Description

@kialj876

Currently the view and update endpoints are checking that the user has view/edit permissions on the business or in the case where an account is getting all their settings across businesses it queries the auth 'products' url to make sure the user jwt has access to the account.

Need to determine if it needs its own set of permissions added here: https://github.com/bcgov/lear/blob/main/legal-api/src/legal_api/services/permissions.py#L61

OR if it should always query auth to check that it has permissions on the account (not sure if we care beyond that)

Activity

  1. added
    BTR
    on Oct 8, 2025
  2. added
    Entities Team
    on Oct 8, 2025
  3. severinbeauvais commented on Nov 5, 2025

    @severinbeauvais
    Collaborator

    Is changing the email reminder flag something that we'd want to permit/deny for certain account types (user, REGI staff, SBC staff, Maximus, etc), or can anyone with authz to the business be permitted to change this flag? This will tell us whether we need a new permission for this (or reuse an existing permission). PS The UI would need to implement this also.

    cc: @Mihai-QuickSilverDev @OlgaPotiagalova @jacqueline-williams-549

  4. jacqueline-williams-549 commented on Nov 21, 2025

    @jacqueline-williams-549

    So we met with the business to discuss on Tuesday November 18. Elizabeth had discussion with Megan and direction from Megan is any group that files on behalf of the client should have access to this functionality. This includes: Regular users (incl API users) Regi staff, SBC Staff Tier 2, SBC Starr Tier 1. This does NOT include Maximus or SBC Contact Centre (BCOL doesn't file ARs on behalf of the client so they do not need access).

    cc: @OlgaPotiagalova @Mihai-QuickSilverDev

  5. severinbeauvais commented on Nov 21, 2025

    @severinbeauvais
    Collaborator

    I've added the following new permission to the spreadsheet. It will require a db migration script to add this to a couple of tables (in addition to code changes to implement the checks).

    Image
  6. jacqueline-williams-549 commented on Nov 22, 2025

    @jacqueline-williams-549

    So since the reminder feature will be available in the annual report filing, does this mean there will be two versions of the annual report, one with the reminder feature and one without the reminder feature? Because I notice the annual report is available to Maximus and SBC Contact Centre

    Screenshot 2025-11-21 at 5.36.43 PM.png

  7. severinbeauvais commented on Nov 24, 2025

    @severinbeauvais
    Collaborator

    Jacqueline: yes. It will actually be the same "version" of the page but the AR reminder section will only display if the current account type has permission to use this feature.

  8. jacqueline-williams-549 commented on Nov 25, 2025

    @jacqueline-williams-549

    @severinbeauvais

    I'm wondering if this makes sense.

    Megan says that any group that files on behalf of the client should have access to this functionality. This includes: Regular users (incl API users) Regi staff, SBC Staff Tier 2, SBC Starr Tier 1. This does NOT include Maximus or SBC Contact Centre (BCOL doesn't file ARs on behalf of the client so they do not need access).

    But in the spreadsheet the annual report filing looks like its filable by all user types. Please let me know if I am misunderstanding the spreadsheet.

    @janisrogers @Mihai-QuickSilverDev Is this something we should take back to business to get clarification?

  9. jacqueline-williams-549 commented on Nov 26, 2025

    @jacqueline-williams-549

    After speaking to Severin it sounds like there is no issue. Accessing the AR filing is permitted for all account types. But Maximus and SBC account types will not be able to file it, which is in line with what Megan was saying.

  10. added and removed
    BTR
    on Dec 4, 2025
  11. severinbeauvais commented on Dec 4, 2025

    @severinbeauvais
    Collaborator

    On hold until the design for this is determined.

  12. severinbeauvais commented on Feb 12, 2026

    @severinbeauvais
    Collaborator

    Actually, I don't think this ticket should be On Hold. While the design/modeling of the subject settings need more discussion, I believe it has been decided that, yes, the AR Reminders feature should have its own permission (ie, AR_REMINDER_OPT_OUT) with the values described in my comment on Nov 21, 2025, above.

    Hence:

    • add new permission enum (AR_REMINDER_OPT_OUT)
    • create data migration scripts to add the proper values to the proper tables

    @kialj876 @vysakh-menon-aot Any comments?

  13. mstanton1 commented on Mar 3, 2026

    @mstanton1
    Collaborator

    @kialj876 @vysakh-menon-aot any thoughts on Severin's comment above?

    For further context our MVP includes launching opt out for AR reminder from a companies dashboard. That has been released and will be turned on (feature flag) on Thursday. I'm looking to determine if this should remain as something to consider later or if this ticket is no longer needed.

  14. vysakh-menon-aot commented on Mar 3, 2026

    @vysakh-menon-aot
    Contributor
  15. kialj876 commented on Mar 4, 2026

    @kialj876
    CollaboratorAuthor

    Sorry I did not see this earlier - I agree with Severin and Vysakh. Looks good, but this ticket was originally for checking this permission on the business settings endpoints which was not added into the ticket Vysakh mentioned. I think that's okay though because we won't use those endpoints until affiliations are moved out of auth so it can be part of that work

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 TeamOn Hold

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions