Skip to main content

AttributeDTO

Properties

NameTypeDescriptionNotes
keystrTechnical name of the Attribute. This is unique and cannot be changed after creation. Allowed characters are letters, numbers, dashes (-), and underscores (_); the value cannot start or end with a dash or underscore.[optional]
namestrThe display name of the key. Allowed characters are letters, numbers, whitespace, and the following special characters: . /, ( ) & _ -
multiselectboolIndicates whether the attribute can have multiple values.[optional] [default to False]
is_adhocboolIndicates whether this Attribute supports ad-hoc (dynamically created) values, in addition to pre-defined static values. Ad-hoc values are created dynamically through an internal service-to-service flow rather than through the public create-value API. This field can be set when creating an Attribute; if omitted, it defaults to false.[optional] [default to False]
statusstrThe status of the Attribute.[optional]
typestrThe type of the Attribute. This can be either "custom" or "governance".[optional]
object_types[]strAn array of object types this attributes values can be applied to. Possible values are "all" or "entitlement". Value "all" means this attribute can be used with all object types that are supported.[optional]
descriptionstrThe description of the Attribute. Allowed characters are letters, numbers, whitespace, and the following special characters: . /, ( ) & _ : -
values[]AttributeValueDTO[optional]
}

Example

from sailpoint.roles.models.attribute_dto import AttributeDTO

attribute_dto = AttributeDTO(
key='iscPrivacy',
name='Privacy',
multiselect=False,
is_adhoc=False,
status='active',
type='governance',
object_types=["entitlement"],
description='Specifies the level of privacy associated with an access item.',
values=[
sailpoint.roles.models.attribute_value_dto.AttributeValueDTO(
value = 'public',
name = 'Public',
status = 'active',
type = 'static', )
]
)

[Back to top]