RoleEligibilitySchedule.ReadWrite.Directory
- Resource
- RoleEligibilitySchedule what it applies to
- Access
- ReadWrite read and change
- Scope
- Directory directory-wide
Allows the app to read and manage the eligible role-based access control (RBAC) assignments for your company's directory, on behalf of the signed-in user. This includes managing eligible directory role membership, and reading directory role templates, directory roles and eligible memberships.
As an application permission: Allows the app to read and manage the eligible role-based access control (RBAC) assignments and schedules for your company's directory, without a signed-in user. This includes managing eligible directory role membership, and reading directory role templates, directory roles and eligible memberships.
| Method | API path | Works as | Smaller option | Cmdlet |
|---|---|---|---|---|
| /roleManagement 13 | ||||
| GET | AD | |||
| GET | AD | |||
| GET | AD | |||
| GET | AD | |||
| GET | / | AD | — | |
| POST | / | AD | — | |
| GET | / | AD | — | |
| POST | AD | — | ||
| GET | AD | — | ||
| GET | AD | — | ||
| GET | AD | |||
| GET | AD | |||
| GET | AD | |||
| /directory 1 | ||||
| GET | AD | |||
| No APIs match these filters. | ||||
A = application, D = delegated. Path parameters are shortened to {id} and duplicate paths are merged. Least privileged flags come from Microsoft's docs and permissions reference.
Microsoft Graph PowerShell cmdlets that call the APIs above. Connect with Connect-MgGraph -Scopes RoleEligibilitySchedule.ReadWrite.Directory.
| Cmdlet | Module | Calls |
|---|---|---|
| Get-MgRoleManagementDirectoryRoleEligibilitySchedule | Identity.Governance | GET /roleManagement/directory/roleEligibilitySchedules, GET /roleManagement/directory/roleEligibilitySchedules/{id} |
| Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance | Identity.Governance | GET /roleManagement/directory/roleEligibilityScheduleInstances, GET /roleManagement/directory/roleEligibilityScheduleInstances/{id} |
| Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest | Identity.Governance | GET /roleManagement/directory/roleEligibilityScheduleRequests, GET /roleManagement/directory/roleEligibilityScheduleRequests/{id} |
| Invoke-MgFilterRoleManagementDirectoryRoleEligibilityScheduleByCurrentUser | Identity.Governance | GET /roleManagement/directory/roleEligibilitySchedules/filterByCurrentUser(on='parameterValue') |
| Invoke-MgFilterRoleManagementDirectoryRoleEligibilityScheduleInstanceByCurrentUser | Identity.Governance | GET /roleManagement/directory/roleEligibilityScheduleInstances/filterByCurrentUser(on='parameterValue') |
| Invoke-MgFilterRoleManagementDirectoryRoleEligibilityScheduleRequestByCurrentUser | Identity.Governance | GET /roleManagement/directory/roleEligibilityScheduleRequests/filterByCurrentUser(on='parameterValue') |
| New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest | Identity.Governance | POST /roleManagement/directory/roleEligibilityScheduleRequests |
| Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest | Identity.Governance | POST /roleManagement/directory/roleEligibilityScheduleRequests/{id}/cancel |
| Get-MgBetaRoleManagementDirectoryRoleEligibilitySchedule | Beta.Identity.Governance | GET /roleManagement/directory/roleEligibilitySchedules, GET /roleManagement/directory/roleEligibilitySchedules/{id} |
| Get-MgBetaRoleManagementDirectoryRoleEligibilityScheduleInstance | Beta.Identity.Governance | GET /roleManagement/directory/roleEligibilityScheduleInstances, GET /roleManagement/directory/roleEligibilityScheduleInstances/{id} |
| Get-MgBetaRoleManagementDirectoryRoleEligibilityScheduleRequest | Beta.Identity.Governance | GET /roleManagement/directory/roleEligibilityScheduleRequests, GET /roleManagement/directory/roleEligibilityScheduleRequests/{id} |
| Invoke-MgBetaFilterRoleManagementDirectoryRoleEligibilityScheduleInstanceByCurrentUser | Beta.Identity.Governance | GET /roleManagement/directory/roleEligibilityScheduleInstances/filterByCurrentUser(on='principal') |
| Invoke-MgBetaFilterRoleManagementDirectoryRoleEligibilityScheduleRequestByCurrentUser | Beta.Identity.Governance | GET /roleManagement/directory/RoleEligibilityScheduleRequests/filterByCurrentUser(on='principal') |
| New-MgBetaRoleManagementDirectoryRoleEligibilityScheduleRequest | Beta.Identity.Governance | POST /roleManagement/directory/roleEligibilityScheduleRequests |
| Stop-MgBetaRoleManagementDirectoryRoleEligibilityScheduleRequest | Beta.Identity.Governance | POST /roleManagement/directory/roleEligibilityScheduleRequests/{id}/cancel |
Granting RoleEligibilitySchedule.ReadWrite.Directory lets an app read and change these Microsoft Graph resources in your tenant.
requestScheduleGraph reference
| Property | Type | Description |
|---|---|---|
| expiration | expirationPattern | When the eligible or active assignment expires. |
| recurrence | patternedRecurrence | The frequency of the eligible or active assignment. This property is currently unsupported in PIM. |
| startDateTime | DateTimeOffset | When the eligible or active assignment becomes active. |
ticketInfoGraph reference
| Property | Type | Description |
|---|---|---|
| ticketNumber | String | The ticket number. |
| ticketSystem | String | The description of the ticket system. |
unifiedRoleDefinitionGraph reference
| Property | Type | Description |
|---|---|---|
| deletedDateTime | DateTimeOffset | The date and time when the custom role definition was deleted. The value is null for active and restored role definitions. Read-only. |
| description | String | The description for the unifiedRoleDefinition. Read-only when isBuiltIn is true. |
| displayName | String | The display name for the unifiedRoleDefinition. Read-only when isBuiltIn is true. Required. Supports $filter (eq, in). |
| id | String | The unique identifier for the role definition. Key, not nullable, Read-only. Inherited from entity. Supports $filter (eq, in). |
| isBuiltIn | Boolean | Flag indicating whether the role definition is part of the default set included in Microsoft Entra or a custom definition. Read-only. Supports $filter (eq, in). |
| isEnabled | Boolean | Flag indicating whether the role is enabled for assignment. If false the role is not available for assignment. Read-only when isBuiltIn is true. |
| isPrivileged | Boolean | Flag indicating whether the role is privileged. Microsoft Entra ID defines a role as privileged if it contains at least one sensitive resource action in the allowedResourceActions collection of rolePermissions. Applies only to actions in the microsoft.directory resource namespace. Nullable. A value of null indicates that the privileged classification is unavailable, not that the role is nonprivileged. Read-only. Supports $filter (eq). |
| resourceScopes | String collection | List of the scopes or permissions the role definition applies to. Currently only / is supported. Read-only when isBuiltIn is true. DO NOT USE. This will be deprecated soon. Attach scope to role assignment. |
| rolePermissions | unifiedRolePermission collection | List of permissions included in the role. Read-only when isBuiltIn is true. Required. |
| templateId | String | Custom template identifier that can be set when isBuiltIn is false but is read-only when isBuiltIn is true. This identifier is typically used if one needs an identifier to be the same across different directories. |
| version | String | Indicates version of the role definition. Read-only when **i |
unifiedRoleEligibilityScheduleGraph reference
| Property | Type | Description |
|---|---|---|
| appScopeId | String | Identifier of the app-specific scope when the role eligibility is scoped to an app. The scope of a 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. Inherited from unifiedRoleScheduleBase. Supports $filter (eq, ne, and on null values). |
| createdDateTime | DateTimeOffset | When the schedule was created. Inherited from unifiedRoleScheduleBase. |
| createdUsing | String | Identifier of the object through which this schedule was created. Inherited from unifiedRoleScheduleBase. Supports $filter (eq, ne, and on null values). |
| directoryScopeId | String | Identifier of the directory object representing the scope of the role eligibility. The scope of a 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. Inherited from unifiedRoleScheduleBase. Supports $filter (eq, ne, and on null values). |
| id | String | The unique identifier for the schedule object. Inherited from entity. Supports $filter (eq). |
| memberType | String | How 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). |
| modifiedDateTime | DateTimeOffset | When the schedule was last modified. Inherited from unifiedRoleScheduleBase. |
| principalId | String | Identifier of the principal that is eligible for a role.Inherited from unifiedRoleScheduleBase. Supports $filter (eq, ne). |
| roleDefinitionId | String | Identifier of the unifiedRoleDefinition object that a principal is eligible for. Inherited from unifiedRoleScheduleBase. |
| scheduleInfo | requestSchedule | The period of the role eligibility. |
| status | String | The status of the role eligibility request. Inherited from unifiedRoleScheduleBase. The possible values are: Canceled, Denied, Failed, Granted, PendingAdminDecision, PendingApproval, PendingProvisioning, PendingScheduleCreation, Provisioned, Revoked, and ScheduleCreated. Not nullable. Supports $filter (eq, ne). |
unifiedRoleEligibilityScheduleInstanceGraph reference
| Property | Type | Description |
|---|---|---|
| appScopeId | String | Identifier of the app-specific scope when the role eligibility is scoped to an app. The scope of the 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. Inherited from unifiedRoleScheduleInstanceBase. Supports $filter (eq, ne, and on null values). |
| directoryScopeId | String | Identifier of the directory object representing the scope of the role eligibility. The scope of the 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. Inherited from unifiedRoleScheduleInstanceBase. Supports $filter (eq, ne, and on null values). |
| endDateTime | DateTimeOffset | The end date of the schedule instance. |
| id | String | The unique identifier for the schedule object. Inherited from entity. |
| memberType | String | How 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). |
| principalId | String | Identifier of the principal that's eligible for a role. Inherited from unifiedRoleScheduleInstanceBase. Supports $filter (eq, ne). |
| roleDefinitionId | String | Identifier of the unifiedRoleDefinition object that the principal is eligible for. Inherited from unifiedRoleScheduleInstanceBase. Supports $filter (eq, ne). |
| roleEligibilityScheduleId | String | The identifier of the unifiedRoleEligibilitySchedule object from which this instance was created. Supports $filter (eq, ne). |
| startDateTime | DateTimeOffset | When this instance starts. |
unifiedRoleEligibilityScheduleRequestGraph reference
| Property | Type | Description |
|---|---|---|
| action | unifiedRoleScheduleRequestActions | Represents the type of operation on the role eligibility request. The possible values are: adminAssign, adminUpdate, adminRemove, selfActivate, selfDeactivate, adminExtend, adminRenew, selfExtend, selfRenew, unknownFutureValue.
|
| approvalId | String | The identifier of the approval of the request. Inherited from request. |
| appScopeId | String | Identifier of the app-specific scope when the role eligibility is scoped to an app. The scope of a role eligibility determines the set of resources for which the principal is eligible to 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. Supports $filter (eq, ne, and on null values). |
| completedDateTime | DateTimeOffset | The request completion date time. Inherited from request. |
| createdBy | identitySet | The principal that created this request. Inherited from request. |
| createdDateTime | DateTimeOffset | The request creation date time. Inherited from request. |
| customData | String | Free text field to define any custom data for the request. Not used. Inherited from request. |
| directoryScopeId | String | Identifier of the directory object representing the scope of the role eligibility. The scope of a 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. Supports $filter (eq, ne, and on null values). |
| id | String | The unique identifier for the unifiedRoleEligibilityScheduleRequest object. Key, not nullable, Read-only. Inherited from entity. |
| isValidationOnly | Boolean | Determines whether the call is a validation or an actual call. Only set this property if you want to check whether an activation is subject to additional rules like MFA before actually submitting the request. |
| justification | String | A message provided by users and administrators when create they create the unifiedRoleEligibilityScheduleRequest object. |
| principalId | String | Identifier of the principal that has been granted the role eligibility. Can be a user or a role-assignable group. You can grant only active assignments service principals.Supports $filter (eq, ne). |
| roleDefinitionId | String | Identifier of the unifiedRoleDefinition object that is being assigned to the principal. Supports $filter (eq, ne). |
| scheduleInfo | requestSchedule | The period of the role eligibility. Recurring schedules are currently unsupported. |
| status | String | The status of the role eligibility request. Inherited from request. Read-only. Supports $filter (eq, ne). |
| targetScheduleId | String | Identifier of the schedule object that's linked to the eligibility request. Supports $filter (eq, ne). |
| ticketInfo | ticketInfo | Ticket details linked to the role eligibility request including details of the ticket number and ticket system. Optional. |