highbond_role_permissions_assignment (Resource)
Schema
Required
role_id | String | Unique identifier for the role |
Optional
force_updates | Boolean | Allows overriding top-level 'create_only' option. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id | String | The ID of this resource. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
permissions | Block List | List of role permission information | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Nested Schema for `permissions`Optional
|
Read-Only
role_type | String | Type of Role, defined on creation, cannot be updated |
Example Usage
// Associate permissions to a role. Permissions for an organization
resource "highbond_role_permissions_assignment" "userorganization" {
role_id = highbond_role.main.id
force_updates = true // Create only with force update changes
permissions {
organization {
id = "1001020"
use_bulk_importer = false
manage_asset_types = false
manage_workflows = false
manage_roles = false
read_audit_trail = true
read_audit_trail_details = true
manage_compliance_regulation_locked_field_and_disclaimers = true
}
}
}
// Associate permissions to a role. Permissions for a single asset type
resource "highbond_role_permissions_assignment" "mai2n" {
role_id = highbond_role.user.id
permissions {
asset_type {
id = highbond_asset_type.main.id
create_asset = true
delete_asset = true
read_asset_section_0 = true
read_asset_section_1 = true
read_asset_section_2 = true
read_asset_section_3 = true
read_asset_section_4 = true
read_asset_section_5 = true
read_asset_section_6 = true
read_asset_section_7 = true
read_asset_section_8 = true
read_asset_section_9 = true
update_asset_section_0 = true
update_asset_section_1 = true
update_asset_section_2 = true
update_asset_section_3 = true
update_asset_section_4 = true
update_asset_section_5 = true
update_asset_section_6 = true
update_asset_section_7 = true
update_asset_section_8 = true
update_asset_section_9 = true
read_asset_section_10 = true
read_asset_section_11 = true
read_asset_section_12 = true
read_asset_section_13 = true
read_asset_section_14 = true
read_asset_section_15 = true
read_asset_section_16 = true
read_asset_section_17 = true
read_asset_section_18 = true
read_asset_section_19 = true
update_asset_section_10 = true
update_asset_section_11 = true
update_asset_section_12 = true
update_asset_section_13 = true
update_asset_section_14 = true
update_asset_section_15 = true
update_asset_section_16 = true
update_asset_section_17 = true
update_asset_section_18 = true
update_asset_section_19 = true
read_audit_trail = true
read_audit_trail_details = true
}
}
}
// Associate permissions to a role. Permissions for all asset_type. Can be used as *
resource "highbond_role_permissions_assignment" "assetall" {
role_id = highbond_role.user.id
permissions {
asset_type {
id = "*"
create_asset = true
delete_asset = true
read_asset_section_0 = true
read_asset_section_1 = true
read_asset_section_2 = true
read_asset_section_3 = true
read_asset_section_4 = true
read_asset_section_5 = true
read_asset_section_6 = true
read_asset_section_7 = true
read_asset_section_8 = true
read_asset_section_9 = true
update_asset_section_0 = true
update_asset_section_1 = true
update_asset_section_2 = true
update_asset_section_3 = true
update_asset_section_4 = true
update_asset_section_5 = true
update_asset_section_6 = true
update_asset_section_7 = true
update_asset_section_8 = true
update_asset_section_9 = true
read_asset_section_10 = true
read_asset_section_11 = true
read_asset_section_12 = true
read_asset_section_13 = true
read_asset_section_14 = true
read_asset_section_15 = true
read_asset_section_16 = true
read_asset_section_17 = true
read_asset_section_18 = true
read_asset_section_19 = true
update_asset_section_10 = true
update_asset_section_11 = true
update_asset_section_12 = true
update_asset_section_13 = true
update_asset_section_14 = true
update_asset_section_15 = true
update_asset_section_16 = true
update_asset_section_17 = true
update_asset_section_18 = true
update_asset_section_19 = true
read_audit_trail = true
read_audit_trail_details = true
}
}
}
// Roles with role_type user and asset_type id containing assettypeID and workflowStatusID
resource "highbond_role_permissions_assignment" "assettypeworkflowstatus" {
role_id = highbond_role.main.id
permissions {
asset_type {
id = format("%s%s%s", highbond_asset_type.main2.id, "$", highbond_workflow_status.main.id)
read_asset_section_0 = true
read_asset_section_1 = true
read_asset_section_2 = true
read_asset_section_3 = true
read_asset_section_4 = true
read_asset_section_5 = true
read_asset_section_6 = true
read_asset_section_7 = true
read_asset_section_8 = true
read_asset_section_9 = true
update_asset_section_0 = true
update_asset_section_1 = true
update_asset_section_2 = true
update_asset_section_3 = true
update_asset_section_4 = true
update_asset_section_5 = true
update_asset_section_6 = true
update_asset_section_7 = true
update_asset_section_8 = true
update_asset_section_9 = true
read_asset_section_10 = true
read_asset_section_11 = true
read_asset_section_12 = true
read_asset_section_13 = true
read_asset_section_14 = true
read_asset_section_15 = true
read_asset_section_16 = true
read_asset_section_17 = true
read_asset_section_18 = true
read_asset_section_19 = true
update_asset_section_10 = true
update_asset_section_11 = true
update_asset_section_12 = true
update_asset_section_13 = true
update_asset_section_14 = true
update_asset_section_15 = true
update_asset_section_16 = true
update_asset_section_17 = true
update_asset_section_18 = true
update_asset_section_19 = true
read_audit_trail = true
read_audit_trail_details = true
}
}
}