wps
wps copied to clipboard
HFI Calculator: Admin interface for permissions
As a Fire Centre admin (TBD)
I need to assign and unassign hfi calculator roles to idirs
So That users are able to prep hfi sheets when necessary
Acceptance Criteria
- [ ] Given an HFI admin chooses a role to assign to an idir, When submitted, Then idir has the role(s) associated
- [ ] Given an HFI admin chooses to unassign role(s) to an idir, When submitted, Then idir does not have the role(s) associated anymore
Blocked by
- https://github.com/bcgov/wps/issues/3545
Additional Context
- Can we leverage FAM?
- Can we leverage the SSO admin panel?
- Get list of users: https://api.loginproxy.gov.bc.ca/openapi/swagger#/Users/get__environment__idir_users
- Assign role to user: https://api.loginproxy.gov.bc.ca/openapi/swagger#/Role-Mapping/get_integrations__integrationId___environment__roles__roleName__users
- Unassign role to user: https://api.loginproxy.gov.bc.ca/openapi/swagger#/Role-Mapping/delete_integrations__integrationId___environment__users__username__roles__roleName_
- Assign initial list of users + privileges
- SSO OpenAPI docs: https://api.loginproxy.gov.bc.ca/openapi/swagger
- https://bcgov.sharepoint.com/:f:/r/teams/01324/Shared%20Documents/General/_Preparedness%20Products%20(HFI,%20Prep)/HFI%20Calculator/Roles%20and%20Permissions?csf=1&web=1&e=W7X0SU
Definition of Done https://github.com/bcgov/wps/wiki/Definition-of-Done