MgGraph powershell connection with certificate results in no scopes

Jonathan Tarro 1 Reputation point
2023-08-21T17:42:17.4466667+00:00

I have created a app registration in Entra to connect to MgGraph without login prompt (working on replacing MsolUser powershell scripts for azure ad connect license management). I am able to connect with my clientid / tenantid / certificatethumbprint but I have no permissions and Get-MgContext results in an empty "scopes" field. Can anyone point me in the direction of why I wouldn't be granted the permissions that I set in "API Permissions"?

Windows for business Windows Server User experience PowerShell
Microsoft Security Microsoft Graph
Microsoft Security Microsoft Entra Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,315 Reputation points
    2023-08-21T19:16:54.9633333+00:00

    Hello Jonathan Tarro,

    Thanks for reaching out. For Graph PowerShell related queries I would suggest posting them on the Graph PowerShell SDK Github forum.

    Thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.