Skip to main content

directory_role_assignment_schedules

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

Overview

Namedirectory_role_assignment_schedules
TypeResource
Identra_id.role_management.directory_role_assignment_schedules

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
activatedUsingIf the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand.
appScopeRead-only property with details of the app-specific scope when the role eligibility or assignment is scoped to an app. Nullable.
appScopeIdstringIdentifier of the app-specific scope when the assignment or eligibility is scoped to an app. The scope of an assignment or eligibility determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by this application only. Use / for tenant-wide app scopes. Use directoryScopeId to limit the scope to particular directory objects, for example, administrative units.
assignmentTypestringThe type of the assignment that can either be Assigned or Activated. Supports $filter (eq, ne).
createdDateTimestring (date-time)When the schedule was created. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
createdUsingstringIdentifier of the object through which this schedule was created.
directoryScopeThe directory object that is the scope of the role eligibility or assignment. Read-only.
directoryScopeIdstringIdentifier of the directory object representing the scope of the assignment or eligibility. The scope of an assignment or eligibility determines the set of resources for which the principal has been granted access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications. Use / for tenant-wide scope. Use appScopeId to limit the scope to an application only.
memberTypestringHow the assignment is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne).
modifiedDateTimestring (date-time)When the schedule was last modified. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
principalThe principal that's getting a role assignment or that's eligible for a role through the request.
principalIdstringIdentifier of the principal that has been granted the role assignment or eligibility.
roleDefinitionDetailed information for the roleDefinition object that is referenced through the roleDefinitionId property.
roleDefinitionIdstringIdentifier of the unifiedRoleDefinition object that is being assigned to the principal or that a principal is eligible for.
scheduleInfoThe period of the role assignment. It can represent a single occurrence or multiple recurrences.
statusstringThe status of the role assignment or eligibility request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectunified_role_assignment_schedule_idRetrieve the schedule for an active role assignment operation.
listselectGet the schedules for active role assignment operations.
insertinsert
updateupdateunified_role_assignment_schedule_id
deletedeleteunified_role_assignment_schedule_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
unified_role_assignment_schedule_idstringThe unique identifier of unifiedRoleAssignmentSchedule
If-MatchstringETag

SELECT examples

Retrieve the schedule for an active role assignment operation.

SELECT
id,
activatedUsing,
appScope,
appScopeId,
assignmentType,
createdDateTime,
createdUsing,
directoryScope,
directoryScopeId,
memberType,
modifiedDateTime,
principal,
principalId,
roleDefinition,
roleDefinitionId,
scheduleInfo,
status
FROM entra_id.role_management.directory_role_assignment_schedules
WHERE unified_role_assignment_schedule_id = '{{ unified_role_assignment_schedule_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO entra_id.role_management.directory_role_assignment_schedules (
id,
appScopeId,
createdDateTime,
createdUsing,
directoryScopeId,
modifiedDateTime,
principalId,
roleDefinitionId,
status,
appScope,
directoryScope,
principal,
roleDefinition,
assignmentType,
memberType,
scheduleInfo,
activatedUsing
)
SELECT
'{{ id }}',
'{{ appScopeId }}',
'{{ createdDateTime }}',
'{{ createdUsing }}',
'{{ directoryScopeId }}',
'{{ modifiedDateTime }}',
'{{ principalId }}',
'{{ roleDefinitionId }}',
'{{ status }}',
'{{ appScope }}',
'{{ directoryScope }}',
'{{ principal }}',
'{{ roleDefinition }}',
'{{ assignmentType }}',
'{{ memberType }}',
'{{ scheduleInfo }}',
'{{ activatedUsing }}'
RETURNING
id,
activatedUsing,
appScope,
appScopeId,
assignmentType,
createdDateTime,
createdUsing,
directoryScope,
directoryScopeId,
memberType,
modifiedDateTime,
principal,
principalId,
roleDefinition,
roleDefinitionId,
scheduleInfo,
status
;

UPDATE examples

No description available.

UPDATE entra_id.role_management.directory_role_assignment_schedules
SET
id = '{{ id }}',
appScopeId = '{{ appScopeId }}',
createdDateTime = '{{ createdDateTime }}',
createdUsing = '{{ createdUsing }}',
directoryScopeId = '{{ directoryScopeId }}',
modifiedDateTime = '{{ modifiedDateTime }}',
principalId = '{{ principalId }}',
roleDefinitionId = '{{ roleDefinitionId }}',
status = '{{ status }}',
appScope = '{{ appScope }}',
directoryScope = '{{ directoryScope }}',
principal = '{{ principal }}',
roleDefinition = '{{ roleDefinition }}',
assignmentType = '{{ assignmentType }}',
memberType = '{{ memberType }}',
scheduleInfo = '{{ scheduleInfo }}',
activatedUsing = '{{ activatedUsing }}'
WHERE
unified_role_assignment_schedule_id = '{{ unified_role_assignment_schedule_id }}' --required
RETURNING
id,
activatedUsing,
appScope,
appScopeId,
assignmentType,
createdDateTime,
createdUsing,
directoryScope,
directoryScopeId,
memberType,
modifiedDateTime,
principal,
principalId,
roleDefinition,
roleDefinitionId,
scheduleInfo,
status;

DELETE examples

No description available.

DELETE FROM entra_id.role_management.directory_role_assignment_schedules
WHERE unified_role_assignment_schedule_id = '{{ unified_role_assignment_schedule_id }}' --required
AND If-Match = '{{ If-Match }}'
;