{"id":9606,"date":"2026-05-05T01:04:12","date_gmt":"2026-05-05T01:04:12","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=9606"},"modified":"2026-05-05T01:04:13","modified_gmt":"2026-05-05T01:04:13","slug":"get-mguser_get-user-is-not-in-the-allowed-roles","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/get-mguser_get-user-is-not-in-the-allowed-roles","title":{"rendered":"Get-MgUser_Get: User is not in the allowed roles"},"content":{"rendered":"\n<p>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 <\/p>\n\n\n\n<p>Get-MgUser -UserId $userId -Property Id, DisplayName, SignInActivity<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Status: 403 (Forbidden)<br>ErrorCode: Authentication_RequestFromUnsupportedUserRole<br>Date: 2026-05-05T00:27:21<\/p>\n\n\n\n<p>Headers:<br>Cache-Control : no-cache<br>Vary : Accept-Encoding<br>Strict-Transport-Security : max-age=31536000<br>x-ms-ags-diagnostic : {&#8220;ServerInfo&#8221;:{&#8220;DataCenter&#8221;:&#8221;Australia Southeast&#8221;,&#8221;Slice&#8221;:&#8221;E&#8221;,&#8221;Ring&#8221;:&#8221;3&#8243;,&#8221;ScaleUnit&#8221;:&#8221;002&#8243;,&#8221;RoleInstance&#8221;:&#8221;ML1PEPF00027FB9&#8243;}}<br>x-ms-resource-unit : 1<br>Date : Tue, 05 May 2026 00:27:21 GMT<\/p>\n\n\n\n<p>Recommendation: See service error codes: https:\/\/learn.microsoft.com\/graph\/errors<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Turns out time healed this must of been an Microsofto issue<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9606","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=9606"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9606\/revisions"}],"predecessor-version":[{"id":9607,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9606\/revisions\/9607"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=9606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=9606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=9606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}