Skip to content

(SPIKE) Capturing associated users when an associate no longer has access to the business #26682

Closed

Description

@OlgaPotiagalova

This problem might be a blocker for DBC Phase 2 release

From Akiff:

We currently have a business requirement that allows associated account holders (Account Coordinators, Account Admins, etc.) to obtain a DBC for the businesses they manage. We can easily capture associated users of a business with an API call to the entities/<entity_id>/authorizations endpoint of the Auth API and issue those users a DBC. The main gap we have is in the ability to capture when an associate no longer has access to the business (in this case we would need to revoke any credentials they have associated with that business). I couldn’t determine if Auth system currently is able to send messages to the LEAR queuing service or if there is generally a way for the Auth system to notify LEAR of account changes. Usually we capture changes (such as filing or business changes in LEAR) using the queuing service. We then issue calls to revoke the credentials held by users. Is there a mechanism in place for this or is it something we can implement (perhaps even a webhook)?

Activity

  1. added
    Entities Team
    on Mar 21, 2025
  2. OlgaPotiagalova commented on Mar 21, 2025

    @OlgaPotiagalova
    CollaboratorAuthor

    @severinbeauvais, @TVWerdal, please investigate and determine next steps. If there are updates required on the AUTH back-end (needs to publish the message), we will need to get help from AUTH experts.
    Thank you

  3. TVWerdal commented on Mar 21, 2025

    @TVWerdal
    Collaborator

    I have been talking to Akiff, I passed on the repo for sbc-auth so he can get a better idea of the API. He is going to comb through it and identify which endpoints he will be using and if he requires any changes there. I offered my support and told him I can create tickets for changes/updates as needed and then Severin and I can work to get them assigned to the appropriate person.

  4. severinbeauvais commented on Mar 21, 2025

    @severinbeauvais
    Collaborator

    The de facto expert on Auth code is Travis. Also, Legal API is current in flux between OCP and GCP, which might affect messaging.

    We can probably save Akiff some time by asking Travis about what's there already, and how much effort it would be to add anything. @OlgaPotiagalova , are you OK with that?

  5. TVWerdal commented on Mar 24, 2025

    @TVWerdal
    Collaborator

    from Leo Dube on Teams: 'So I got some clarification on that email thread. It seems we will be able to send a queue message from auth to lear. They basically just want the rest of the implementation to happen in lear (ie. revoking the credential, etc.) which was already the plan. We'll need to find where in sbc-auth the "unlinking" of an account to a business occurs, and open a PR to send a queue message to the entity-digital-credentials service.'

  6. severinbeauvais commented on Mar 24, 2025

    @severinbeauvais
    Collaborator

    Thayne - sounds good. Please keep track of this Auth API dependency so we track it through Auth and LEAR deployments. One way to do that is to use THIS ticket for the Auth API changes and tag it to the respective Auth release.

  7. TVWerdal commented on Apr 1, 2025

    @TVWerdal
    Collaborator

    Akiff does not have any clarity on this as of yet - but is setting up a meeting to discuss.

  8. dbigsby commented on Apr 3, 2025

    @dbigsby

    Just to tie this back to the business rules document (https://docs.google.com/document/d/1gWa4KfyMA7y3eWXi-8R6bvZOznBgUk62BlOFP0d-t5I/edit?usp=sharing), the requirement is to implement revocation rule #14: when "An individual stops being an Account Administrator, Account Coordinator and would no longer be able to self-issue a DBC" then "Revoke [DBC] if no legislated role attached"

  9. OlgaPotiagalova commented on Apr 3, 2025

    @OlgaPotiagalova
    CollaboratorAuthor

    Waiting for Akiff to look into it and see whether he needs help from Auth team.

  10. thorwolpert commented on Apr 7, 2025

    @thorwolpert
    Collaborator

    This needs some reviews by the business, there is no current support for removing another account. Accounts can only remove their own access.

  11. esune commented on Apr 7, 2025

    @esune
    Member

    This needs some reviews by the business, there is no current support for removing another account. Accounts can only remove their own access.

    Thanks @thorwolpert .

    Is there an event (and which one) we can intercept when users remove their own association to a business, so that we can trigger the revocation flow for their credential (if they have one)?

    If an event is not currently being fired, could it be added at least for the self-removal scenario (and likely extended to the other use-case if/when deemed appropriate)?

  12. thorwolpert commented on Apr 7, 2025

    @thorwolpert
    Collaborator

    I don't think there's an event that gets emitted when an account removes their own access. I know there's an endpoint for it, but I don't know if it's in the UI at all.
    Yes, a pubsub message could be added to the endpoint, or on the cleanup event of the resource.

  13. esune commented on Apr 7, 2025

    @esune
    Member

    I created this issue in what I think is the correct repo - please correct me if I am wrong. I am assuming this would be work for the team owning it, and we would take the documented/expected event and handle the revocation flow on our end.

  14. 5 remaining items

  15. added
    connect
    on May 1, 2025
  16. changed the title [-]Capturing associated users when an associate no longer has access to the business[/-] [+](SPIKE) Capturing associated users when an associate no longer has access to the business[/+] on May 1, 2025
  17. added theissue type on May 5, 2025
  18. removed theissue type on May 22, 2025
  19. severinbeauvais commented on May 30, 2025

    @severinbeauvais
    Collaborator

    @TVWerdal @esune @dbigsby Is this ticket complete or do we still need some clarity or work from it?

  20. esune commented on Jun 3, 2025

    @esune
    Member

    @TVWerdal @esune @dbigsby Is this ticket complete or do we still need some clarity or work from it?

    I think this spike can be closed, the pre-requisite for us was the work completed in the SBC Auth component - @loneil would you agree?

  21. severinbeauvais commented on Jun 3, 2025

    @severinbeauvais
    Collaborator

    If you close this ticket, please move the open sub-issue to a new parent ticket. Thx. I just did this.

  22. severinbeauvais commented on Jun 3, 2025

    @severinbeauvais
    Collaborator

    We've done what we want to do with this ticket.

  23. esune commented on Jun 4, 2025

    @esune
    Member

    If you close this ticket, please move the open sub-issue to a new parent ticket. Thx. I just did this.

    Thanks! I wouldn't know where else to put it tbh 😅

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

Metadata

Metadata

Labels

DBC Phase 2Entities Teamconnect

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions