Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Users & Scopes (v1) #6455

Open
2 of 3 tasks
euanmillar opened this issue Jan 22, 2024 · 5 comments
Open
2 of 3 tasks

Custom Users & Scopes (v1) #6455

euanmillar opened this issue Jan 22, 2024 · 5 comments

Comments

@euanmillar
Copy link
Collaborator

euanmillar commented Jan 22, 2024

Description

Configurable role permissions:

This would involve the creation of custom roles to which permissions (or groups of permissions) could be applied e.g. notify/declare, validate, register, certify, correct, search, certified copy / work queues / performance management

Proposed user scopes are here

Technical: Refactor user roles and scopes so that they are easier to configure and map with state transition
Technical design can be found here

Burkino Faso:
Have introduced add a flag to creare the concept of "secondary" offices by checking the details of the office the user is attached to as part of the user starting a new declaration. If they are attached to a secondary office, only birth and death declaration types are shown.

This can be achieved using User Scopes. Each System User can be given the required scope for what declarations they can create

Design:

Action menu options based on status WIP:
https://www.figma.com/design/O6PevbBv0lApmXWYotR8sf/OpenCRVS-Design-Specifications-v2?node-id=19880-66203&t=O2Lnip0WuiujvtJN-1

Related

Dev tasks

  • Move hard-coded role - scope mappings from authentication.ts to country config.

  • Modify the current GET /roles endpoint to also include scopes per role. This should be just a static roles.json file being served by CC. Change the returning data model to be as in the following example:

[
  {
    "name": "POLICE_OFFICER",
    "scopes": ["declare"],
    "systemRole": "FIELD_AGENT",
    "label": {
       "id": "userRoles.policeOfficer",
       "defaultMessage": "Police officer",
       "description": "Label for role police officer"
     }
  }
]
  • When user authenticates, assign the correct scopes to their JWT token
  • More tasks in the feature PR here
@rikukissa
Copy link
Member

Related: #7053

@rikukissa rikukissa moved this from Backlog to In Design in OpenCRVS Core Jun 17, 2024
@rikukissa rikukissa moved this from In Design to Ready to build in OpenCRVS Core Jun 17, 2024
@jpye-finch jpye-finch moved this from Ready to build to In Design in OpenCRVS Core Jul 1, 2024
@rikukissa rikukissa self-assigned this Jul 2, 2024
@SyedaAfrida
Copy link
Collaborator

@jpye-finch 1. Should we be able to unassign from both the menu option and clicking the profile icon

Image

  1. Should the steps be same when unassigning another user and unassigning themselves?

@rikukissa rikukissa changed the title Configurable role permissions Configurable, scope-based user roles Sep 30, 2024
@rikukissa rikukissa moved this from In Design to In Development in OpenCRVS Core Sep 30, 2024
@jpye-finch jpye-finch changed the title Configurable, scope-based user roles Custom Users and Scopes Oct 2, 2024
@jpye-finch jpye-finch changed the title Custom Users and Scopes Epic: Custom Users and Scopes Oct 2, 2024
@jpye-finch jpye-finch changed the title Epic: Custom Users and Scopes Custom Users and Scopes Oct 9, 2024
@jpye-finch jpye-finch changed the title Custom Users and Scopes Custom Users & Scopes Oct 9, 2024
@tumbledwyer tumbledwyer removed this from the v1.7.0 milestone Nov 1, 2024
@SyedaAfrida SyedaAfrida added this to the v1.7.0 milestone Nov 4, 2024
@anninawersun
Copy link

Uganda requirement: #6270 Senior Registration Officer user required

A Registrar plus:

Can review correction requests (if senior approval required)
Can review revoke and reinstatement requests (after review from the ED and Legal)

@prinzab
Copy link
Collaborator

prinzab commented Nov 14, 2024

Uganda requirement: #6951 Auditor User

Review performance & reports
View and search records
Add notes/comments to records
Ability to share with other users to inform them of the status of a "flagged" record

@ThierryMyshepherd
Copy link
Collaborator

ThierryMyshepherd commented Nov 20, 2024

Uganda requirement #8013

@jpye-finch jpye-finch changed the title Custom Users & Scopes Custom Users & Scopes (v1) Dec 3, 2024
@SyedaAfrida SyedaAfrida modified the milestones: 2025 Horizon, v.1.7.0 Jan 14, 2025
@marcio-opencrvs marcio-opencrvs modified the milestones: v.1.7.0, 2025 Horizon Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Development
Development

No branches or pull requests

9 participants