Get-MgUser_Get: User is not in the allowed roles

I had a user with the correct Entra Roles and also Graph Scopes however it was not allowing me to pull the sign in activity

Get-MgUser -UserId $userId -Property Id, DisplayName, SignInActivity

Status: 403 (Forbidden)
ErrorCode: Authentication_RequestFromUnsupportedUserRole
Date: 2026-05-05T00:27:21

Headers:
Cache-Control : no-cache
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
x-ms-ags-diagnostic : {“ServerInfo”:{“DataCenter”:”Australia Southeast”,”Slice”:”E”,”Ring”:”3″,”ScaleUnit”:”002″,”RoleInstance”:”ML1PEPF00027FB9″}}
x-ms-resource-unit : 1
Date : Tue, 05 May 2026 00:27:21 GMT

Recommendation: See service error codes: https://learn.microsoft.com/graph/errors

Turns out time healed this must of been an Microsofto issue

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...