4.2.3.2 Configure roles and scopes
Last updated
Last updated
Following the guidance explained regarding the possible authorization that are available, now you can configure the user roles that are applied to each employee.
You make these configurations in TypeScript in the file. You can see the examples that we have created for our default configuration - in this file.
Here is a section of code that you can see in the roles array:
The id property must be unique and map to the role constant used in your employees' csv files explained in the previous section.
The label property must be a object with a translation for the visible label that you wish to apply to this user role. Appropriate translations must exist in your client.csv file for the label.id where necessary. You can learn about how to configure OpenCRVS content translation in the section: .
The scopes array is where you configure the constants for the available . The supported scopes are imported from the TypeScript library.