In Microsoft Entra ID, Privileged Identity Management (PIM) doesn’t just define who can be eligible for a role—it also maintains instances that represent the effective, resolved view of those eligibility schedules.
The Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance cmdlet allows administrators to retrieve these role eligibility schedule instances, providing a clear picture of which principals are currently eligible for directory roles and how those eligibilities are applied.
This cmdlet is especially useful for security audits, access reviews, and PIM governance checks.
Try the M365Corner Microsoft 365 Reporting Tool — your DIY pack with 20+ out-of-the-box M365 reports for Users, Groups, and Teams.
Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance
This cmdlet does not require mandatory parameters and retrieves role eligibility schedule instances across the tenant.
Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance
Explanation:
Returns all role eligibility schedule instances in the tenant. The output includes details such as principal ID, role definition ID, membership type, and other instance-level properties.
Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance | Select Id, PrincipalId, RoleDefinitionId, MemberType
Explanation:
Filters the output to display only the most relevant fields, making it easier to review which principals are eligible for which directory roles.
Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance | Export-Csv "rolemanagementdirectoryroleeligibilityscheduleinstances.csv"
Explanation:
Exports all role eligibility schedule instances to a CSV file. This is useful for compliance reporting, offline analysis, or sharing data with auditors and security teams.
| Error / Message | Cause | Solution |
| Authorization_RequestDenied | Insufficient permissions | Grant RoleManagement.Read.Directory or Directory.Read.All with admin consent. |
| Cmdlet not recognized | Microsoft.Graph module missing or outdated | Install or update using Install-Module Microsoft.Graph. |
| Empty output | No role eligibility instances available | Verify that PIM is enabled and role eligibilities are configured. |
| CSV export fails | Invalid file path or permissions | Ensure the path exists and you have write access. |
The Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance cmdlet provides administrators with valuable visibility into the effective role eligibility state in Microsoft Entra ID. By leveraging this cmdlet, you can support audits, strengthen governance, and maintain tighter control over privileged access within your tenant—while keeping reporting simple and efficient.
© m365corner.com. All Rights Reserved. Design by HTML Codex