Skip to main content

directory_role_eligibility_schedule_instances

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

Overview

Namedirectory_role_eligibility_schedule_instances
TypeResource
Identra_id.role_management.directory_role_eligibility_schedule_instances

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
appScopeRead-only property with details of the app-specific scope when the assignment or role eligibility is scoped to an app. Nullable.
appScopeIdstringIdentifier of the app-specific scope when the assignment or role eligibility is scoped to an app. The scope of an assignment or role 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.
directoryScopeThe directory object that is the scope of the assignment or role eligibility. Read-only.
directoryScopeIdstringIdentifier of the directory object representing the scope of the assignment or role eligibility. The scope of an assignment or role 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.
endDateTimestring (date-time)The end date of the schedule instance. (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])$)
memberTypestringHow the role eligibility is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleEligibilitySchedule can be managed by the caller. Supports $filter (eq, ne).
principalThe principal that's getting a role assignment or role eligibility through the request.
principalIdstringIdentifier of the principal that has been granted the role assignment or that's eligible for a role.
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 the principal is eligible for.
roleEligibilityScheduleIdstringThe identifier of the unifiedRoleEligibilitySchedule object from which this instance was created. Supports $filter (eq, ne).
startDateTimestring (date-time)When this instance starts. (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])$)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectunified_role_eligibility_schedule_instance_idGet the instance of a role eligibility.
listselectGet the instances of role eligibilities.
insertinsert
updateupdateunified_role_eligibility_schedule_instance_id
deletedeleteunified_role_eligibility_schedule_instance_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_eligibility_schedule_instance_idstringThe unique identifier of unifiedRoleEligibilityScheduleInstance
If-MatchstringETag

SELECT examples

Get the instance of a role eligibility.

SELECT
id,
appScope,
appScopeId,
directoryScope,
directoryScopeId,
endDateTime,
memberType,
principal,
principalId,
roleDefinition,
roleDefinitionId,
roleEligibilityScheduleId,
startDateTime
FROM entra_id.role_management.directory_role_eligibility_schedule_instances
WHERE unified_role_eligibility_schedule_instance_id = '{{ unified_role_eligibility_schedule_instance_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO entra_id.role_management.directory_role_eligibility_schedule_instances (
id,
appScopeId,
directoryScopeId,
principalId,
roleDefinitionId,
appScope,
directoryScope,
principal,
roleDefinition,
endDateTime,
memberType,
roleEligibilityScheduleId,
startDateTime
)
SELECT
'{{ id }}',
'{{ appScopeId }}',
'{{ directoryScopeId }}',
'{{ principalId }}',
'{{ roleDefinitionId }}',
'{{ appScope }}',
'{{ directoryScope }}',
'{{ principal }}',
'{{ roleDefinition }}',
'{{ endDateTime }}',
'{{ memberType }}',
'{{ roleEligibilityScheduleId }}',
'{{ startDateTime }}'
RETURNING
id,
appScope,
appScopeId,
directoryScope,
directoryScopeId,
endDateTime,
memberType,
principal,
principalId,
roleDefinition,
roleDefinitionId,
roleEligibilityScheduleId,
startDateTime
;

UPDATE examples

No description available.

UPDATE entra_id.role_management.directory_role_eligibility_schedule_instances
SET
id = '{{ id }}',
appScopeId = '{{ appScopeId }}',
directoryScopeId = '{{ directoryScopeId }}',
principalId = '{{ principalId }}',
roleDefinitionId = '{{ roleDefinitionId }}',
appScope = '{{ appScope }}',
directoryScope = '{{ directoryScope }}',
principal = '{{ principal }}',
roleDefinition = '{{ roleDefinition }}',
endDateTime = '{{ endDateTime }}',
memberType = '{{ memberType }}',
roleEligibilityScheduleId = '{{ roleEligibilityScheduleId }}',
startDateTime = '{{ startDateTime }}'
WHERE
unified_role_eligibility_schedule_instance_id = '{{ unified_role_eligibility_schedule_instance_id }}' --required
RETURNING
id,
appScope,
appScopeId,
directoryScope,
directoryScopeId,
endDateTime,
memberType,
principal,
principalId,
roleDefinition,
roleDefinitionId,
roleEligibilityScheduleId,
startDateTime;

DELETE examples

No description available.

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