RoleAssignmentSchedule.Read.Directory
Allows the app to read the active role-based access control (RBAC) assignments and schedules for your company's directory, without a signed-in user. This includes reading directory role templates, and directory roles.
In short
RoleAssignmentSchedule.Read.Directory is available as both an application permission and a delegated permission in the Microsoft Graph API, grouped under the RoleAssignmentSchedule category. Allows the app to read the active role-based access control (RBAC) assignments and schedules for your company's directory, without a signed-in user. This includes reading directory role templates, and directory roles. It grants read-only access to resources. Application permissions always require admin consent.
Permission Details
Read all active role assignments and role schedules for your company's directory
Allows the app to read the active role-based access control (RBAC) assignments and schedules for your company's directory, without a signed-in user. This includes reading directory role templates, and directory roles.
d5fe8ce8-684c-4c83-a52c-46e882ce4be1
Read all active role assignments for your company's directory
Allows the app to read the active role-based access control (RBAC) assignments for your company's directory, on behalf of the signed-in user. This includes reading directory role templates, and directory roles.
344a729c-0285-42c6-9014-f12b9b8d6129
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
directory |
object |
|
entitlementManagement |
object |
Container for roles and assignments for entitlement management resources. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.roleManagement"
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
directory |
rbacApplication |
Read-only. Nullable. |
entitlementManagement |
rbacApplication |
Container for roles and assignments for entitlement management resources. |
enterpriseApps |
rbacApplication collection |
Related enterpriseApps data exposed by this resource. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.RoleManagement.Directory.RoleAssignmentSchedules["{unifiedRoleAssignmentSchedule-id}"].GetAsync();
const options = {
authProvider,
};
const client = Client.init(options);
let unifiedRoleAssignmentSchedule = await client.api('/roleManagement/directory/roleAssignmentSchedules/95c690fb-3eb3-4942-a03f-4524aed6f31e')
.get();
Import-Module Microsoft.Graph.Identity.Governance
Get-MgRoleManagementDirectoryRoleAssignmentSchedule -UnifiedRoleAssignmentScheduleId $unifiedRoleAssignmentScheduleId
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.role_management.directory.role_assignment_schedules.by_unified_role_assignment_schedule_id('unifiedRoleAssignmentSchedule-id').get()
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for RoleAssignmentSchedule.Read.Directory
Grant Admin Consent
Application permissions always require admin consent.
Frequently asked questions
What is the RoleAssignmentSchedule.Read.Directory Microsoft Graph permission?
RoleAssignmentSchedule.Read.Directory is available as both an application permission and a delegated permission in the Microsoft Graph API, grouped under the RoleAssignmentSchedule category. Allows the app to read the active role-based access control (RBAC) assignments and schedules for your company's directory, without a signed-in user. This includes reading directory role templates, and directory roles. It grants read-only access to resources. Application permissions always require admin consent. It is mapped to the Microsoft Graph rolemanagement resource type. 21 documented Microsoft Graph REST methods require it. 12 Microsoft Graph PowerShell commands are documented for it.
Is RoleAssignmentSchedule.Read.Directory an application or a delegated permission?
RoleAssignmentSchedule.Read.Directory is available as both an application permission (app-only access, no signed-in user) and a delegated permission (access on behalf of a signed-in user).
Does RoleAssignmentSchedule.Read.Directory require admin consent?
Application permissions always require admin consent.
What is the permission ID (GUID) for RoleAssignmentSchedule.Read.Directory?
For RoleAssignmentSchedule.Read.Directory, the application (app role) ID is d5fe8ce8-684c-4c83-a52c-46e882ce4be1, and the delegated (OAuth2 scope) ID is 344a729c-0285-42c6-9014-f12b9b8d6129. These are the real Microsoft Graph identifiers and can be used directly in an app registration manifest.