You can use the Get-MgRoleManagementDirectoryRoleAssignmentSchedule
cmdlet from the Graph SDK to cover active role assignments, and the Get-MgRoleManagementDirectoryRoleEligibilitySchedule
one to cover eligible ones.
Get-MgRoleManagementDirectoryRoleAssignmentSchedule -All
Get-MgRoleManagementDirectoryRoleEligibilitySchedule -All | ? {$_.PrincipalId -eq "fe506ef0-235f-43cf-ae0c-e82f833c3e91"}