Skip to main content

custom_security_attribute_definitions

Creates, updates, deletes, gets or lists a custom_security_attribute_definitions resource.

Overview

Namecustom_security_attribute_definitions
TypeResource
Identra_id.directory.custom_security_attribute_definitions

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
namestringName of the custom security attribute. Must be unique within an attribute set. Can be up to 32 characters long and include Unicode characters. Cannot contain spaces or special characters. Cannot be changed later. Case insensitive.
allowedValuesarrayValues that are predefined for this custom security attribute. This navigation property is not returned by default and must be specified in an $expand query. For example, /directory/customSecurityAttributeDefinitions?$expand=allowedValues.
attributeSetstringName of the attribute set. Case insensitive.
descriptionstringDescription of the custom security attribute. Can be up to 128 characters long and include Unicode characters. Can be changed later.
isCollectionbooleanIndicates whether multiple values can be assigned to the custom security attribute. Cannot be changed later. If type is set to Boolean, isCollection cannot be set to true.
isSearchablebooleanIndicates whether custom security attribute values are indexed for searching on objects that are assigned attribute values. Cannot be changed later.
statusstringSpecifies whether the custom security attribute is active or deactivated. Acceptable values are: Available and Deprecated. Can be changed later.
typestringData type for the custom security attribute values. Supported types are: Boolean, Integer, and String. Cannot be changed later.
usePreDefinedValuesOnlybooleanIndicates whether only predefined values can be assigned to the custom security attribute. If set to false, free-form values are allowed. Can later be changed from true to false, but cannot be changed from false to true. If type is set to Boolean, usePreDefinedValuesOnly cannot be set to true.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcustom_security_attribute_definition_idRead the properties and relationships of a customSecurityAttributeDefinition object.
listselectGet a list of the customSecurityAttributeDefinition objects and their properties.
insertinsertCreate a new customSecurityAttributeDefinition object.
updateupdatecustom_security_attribute_definition_idUpdate the properties of a customSecurityAttributeDefinition object.
deletedeletecustom_security_attribute_definition_idIf-Match

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
custom_security_attribute_definition_idstringThe unique identifier of customSecurityAttributeDefinition
If-MatchstringETag

SELECT examples

Read the properties and relationships of a customSecurityAttributeDefinition object.

SELECT
id,
name,
allowedValues,
attributeSet,
description,
isCollection,
isSearchable,
status,
type,
usePreDefinedValuesOnly
FROM entra_id.directory.custom_security_attribute_definitions
WHERE custom_security_attribute_definition_id = '{{ custom_security_attribute_definition_id }}' -- required
;

INSERT examples

Create a new customSecurityAttributeDefinition object.

INSERT INTO entra_id.directory.custom_security_attribute_definitions (
id,
attributeSet,
description,
isCollection,
isSearchable,
name,
status,
type,
usePreDefinedValuesOnly,
allowedValues
)
SELECT
'{{ id }}',
'{{ attributeSet }}',
'{{ description }}',
{{ isCollection }},
{{ isSearchable }},
'{{ name }}',
'{{ status }}',
'{{ type }}',
{{ usePreDefinedValuesOnly }},
'{{ allowedValues }}'
RETURNING
id,
name,
allowedValues,
attributeSet,
description,
isCollection,
isSearchable,
status,
type,
usePreDefinedValuesOnly
;

UPDATE examples

Update the properties of a customSecurityAttributeDefinition object.

UPDATE entra_id.directory.custom_security_attribute_definitions
SET
id = '{{ id }}',
attributeSet = '{{ attributeSet }}',
description = '{{ description }}',
isCollection = {{ isCollection }},
isSearchable = {{ isSearchable }},
name = '{{ name }}',
status = '{{ status }}',
type = '{{ type }}',
usePreDefinedValuesOnly = {{ usePreDefinedValuesOnly }},
allowedValues = '{{ allowedValues }}'
WHERE
custom_security_attribute_definition_id = '{{ custom_security_attribute_definition_id }}' --required
RETURNING
id,
name,
allowedValues,
attributeSet,
description,
isCollection,
isSearchable,
status,
type,
usePreDefinedValuesOnly;

DELETE examples

No description available.

DELETE FROM entra_id.directory.custom_security_attribute_definitions
WHERE custom_security_attribute_definition_id = '{{ custom_security_attribute_definition_id }}' --required
AND If-Match = '{{ If-Match }}'
;