opencrvs / opencrvs-core

A global solution to civil registration
https://www.opencrvs.org
Other
85 stars 66 forks source link

Epic: Custom Users and Scopes #6455

Open euanmillar opened 8 months ago

euanmillar commented 8 months ago

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

[
  {
    "name": "POLICE_OFFICER",
    "scopes": ["declare"],
    "systemRole": "FIELD_AGENT",
    "label": {
       "id": "userRoles.policeOfficer",
       "defaultMessage": "Police officer",
       "description": "Label for role police officer"
     }
  }
]
rikukissa commented 3 months ago

Related: https://github.com/opencrvs/opencrvs-core/issues/7053

SyedaAfrida commented 2 months ago

@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?