Version: cicd.4.0 
Roles
Role-Based Access Control (RBAC) in Amorphic is a feature that helps system administrators manage user access to sensitive information and reduce the risk of data breaches.
Below is the sample resource definition file for Role:
{
"rRole": {
"Type": "Role",
"Properties": {
"RoleName": "cicd_role",
"RoleDescription": "Role created through CICD Module",
"RoleManagers": [
"aqa1"
],
"RolePermissions": [
"datasets.fullaccess",
"domains.fullaccess"
],
"UsersAttached": [
"jonhdoe",
"sarah",
"mathew"
]
}
}
}
Note: Deployment dependencies
Role has dependencies on Tag.
Dependent resources should not be deleted before the primary resource; attempting to do so may lead to failures or inconsistencies during the deletion process.
Referencing this Resource
Below are the common keys that can be used in the DependsOn function to retrieve details of this resource.
Supported Keys
| Key | Description |
|---|---|
| RoleId | Returns the RoleId value of this resource |
| RoleName | Returns the RoleName value of this resource |
For additional supported keys, refer to the API definition document for the respective resource type.
Example
The following example shows how to retrieve the role ID from a role template and use it in a SAML role mapping template:
{
"rSAMLRoleMapping": {
"Type": "SAMLRoleMapping",
"Properties": {
"RoleId": {
"!DependsOn": "rRole.RoleId"
}
}
}
}