Import selected roles
Last updated
Was this helpful?
Last updated
Was this helpful?
In this example, you can learn how to add specific roles and their privileges to the target Tuum environment.
We will import specific roles and associated privileges using the data retrieved in the previous .
The role codes we're importing roles and privileges for are: ACCOUNTANT
and TEST_LT
.
In this example, the role ACCOUNTANT
already existed in the target environment, but role TEST_LT
is a new role.
The system will import only roles and associated privileges with a valid validity range.
To import specific roles and associated privileges to the target environment, make the following API call.
Ensure the target environment for the import is different from the export environment.
https://auth-api.target-environment.tuumplatform.com/api/v1/roles/privileges/import
Below is an example request body of the API call for import roles.
Below you find an example response body to the API call above.
The selected valid roles ACCOUNTANT and TEST_LT with related privileges have been imported.
The roles and privileges combination was obtained from the endpoint.