Skip to main content

RoleV2

A Role, including its effective privilege level.

Properties​

NameTypeDescriptionNotes
idstrThe id of the Role. This field must be left null when creating an Role, otherwise a 400 Bad Request error will result.[optional]
namestrThe human-readable display name of the Role[required]
createddatetimeDate the Role was created[optional] [readonly]
modifieddatetimeDate the Role was last modified.[optional] [readonly]
descriptionstrA human-readable description of the Role[optional]
ownerOwnerReference[required]
additional_owners[]AdditionalOwnerRefList of additional owner references beyond the primary owner. Each entry may be an identity (IDENTITY) or a governance group (GOVERNANCE_GROUP).[optional]
access_profiles[]AccessProfileRef[optional]
entitlements[]EntitlementRef[optional]
membershipRoleMembershipSelector[optional]
legacy_membership_infomap[string]objectThis field is not directly modifiable and is generally expected to be null. In very rare instances, some Roles may have been created using membership selection criteria that are no longer fully supported. While these Roles will still work, they should be migrated to STANDARD or IDENTITY_LIST selection criteria. This field exists for informational purposes as an aid to such migration.[optional]
enabledboolWhether the Role is enabled or not.[optional] [default to False]
requestableboolWhether the Role can be the target of access requests.[optional] [default to False]
access_request_configRequestabilityForRole[optional]
revocation_request_configRevocabilityForRole[optional]
segments[]strList of IDs of segments, if any, to which this Role is assigned.[optional]
dimensionalboolWhether the Role is dimensional.[optional] [default to False]
dimension_refs[]DimensionRefList of references to dimensions to which this Role is assigned. This field is only relevant if the Role is dimensional.[optional]
access_model_metadataAttributeDTOList[optional]
privilege_levelRolePrivilegeLevel[optional] [readonly]
}

Example​

from sailpoint.roles.models.role_v2 import RoleV2

role_v2 = RoleV2(
id='2c918086749d78830174a1a40e121518',
name='Role 2567',
created='2021-03-01T22:32:58.104Z',
modified='2021-03-02T20:22:28.104Z',
description='Read-only access to the finance reporting system',
owner=sailpoint.roles.models.owner_reference.OwnerReference(
type = 'IDENTITY',
id = '2c9180a46faadee4016fb4e018c20639',
name = 'support', ),
additional_owners=[
sailpoint.roles.models.additional_owner_ref.AdditionalOwnerRef(
type = 'IDENTITY',
id = '2c9180a46faadee4016fb4e018c20639',
name = 'support', )
],
access_profiles=[
sailpoint.roles.models.access_profile_ref.AccessProfileRef(
id = 'ff808081751e6e129f1518161919ecca',
type = 'ACCESS_PROFILE',
name = 'Access Profile 2567', )
],
entitlements=[
sailpoint.roles.models.entitlement_ref.EntitlementRef(
type = 'ENTITLEMENT',
id = '2c91809773dee32014e13e122092014e',
name = 'CN=entitlement.490efde5,OU=OrgCo,OU=ServiceDept,DC=HQAD,DC=local', )
],
membership=sailpoint.roles.models.role_membership_selector.RoleMembershipSelector(
type = 'IDENTITY_LIST',
criteria = sailpoint.roles.models.role_criteria_level1.RoleCriteriaLevel1(
operation = 'EQUALS',
key = sailpoint.roles.models.role_criteria_key.RoleCriteriaKey(
type = 'ACCOUNT',
property = 'attribute.email',
source_id = '2c9180867427f3a301745aec18211519', ),
string_value = 'carlee.cert1c9f9b6fd@mailinator.com',
children = [
sailpoint.roles.models.role_criteria_level2.RoleCriteriaLevel2(
string_value = 'carlee.cert1c9f9b6fd@mailinator.com', )
], ),
identities = [
sailpoint.roles.models.role_membership_identity.RoleMembershipIdentity(
id = '2c9180a46faadee4016fb4e018c20639',
name = 'Thomas Edison',
alias_name = 't.edison', )
], ),
legacy_membership_info={"type":"IDENTITY_LIST"},
enabled=True,
requestable=True,
access_request_config=sailpoint.roles.models.requestability_for_role.RequestabilityForRole(
comments_required = True,
denial_comments_required = True,
reauthorization_required = True,
require_end_date = True,
max_permitted_access_duration = sailpoint.roles.models.access_duration.AccessDuration(
value = 6,
time_unit = 'MONTHS', ),
approval_schemes = [
sailpoint.roles.models.approval_scheme_for_role.ApprovalSchemeForRole(
approver_type = 'GOVERNANCE_GROUP',
approver_id = '46c79819-a69f-49a2-becb-12c971ae66c6', )
],
dimension_schema = sailpoint.roles.models.dimension_schema.DimensionSchema(
dimension_attributes = [
sailpoint.roles.models.dimension_attribute.DimensionAttribute(
name = 'city',
display_name = 'City',
derived = True, )
], ),
form_definition_id = '78258e80-e9e2-4e1a-a11f-ce0b7c62f25d', ),
revocation_request_config=sailpoint.roles.models.revocability_for_role.RevocabilityForRole(
comments_required = False,
denial_comments_required = False,
approval_schemes = [
sailpoint.roles.models.approval_scheme_for_role.ApprovalSchemeForRole(
approver_type = 'GOVERNANCE_GROUP',
approver_id = '46c79819-a69f-49a2-becb-12c971ae66c6', )
], ),
segments=["f7b1b8a3-5fed-4fd4-ad29-82014e137e19","29cb6c06-1da8-43ea-8be4-b3125f248f2a"],
dimensional=True,
dimension_refs=[
sailpoint.roles.models.dimension_ref.DimensionRef(
type = 'DIMENSION',
id = '2c91808568c529c60168cca6f90c1313',
name = 'Role 2', )
],
access_model_metadata=sailpoint.roles.models.attribute_dto_list.AttributeDTOList(
attributes = [{"key":"iscPrivacy","name":"Privacy","multiselect":false,"status":"active","type":"governance","objectTypes":["all"],"description":"Specifies the level of privacy associated with an access item.","values":[{"value":"public","name":"Public","status":"active"}]}], ),
privilege_level=sailpoint.roles.models.role_privilege_level.Role Privilege Level(
effective = 'HIGH', )
)

[Back to top]