Access Denied. You do not have permissions to call this cmdlet

Glenn Maxwell 12,851 Reputation points
2025-06-07T17:16:59.2+00:00

Hi All

I am a Global Administrator, and I am encountering the error below when trying to connect to MsolService. I was able to connect successfully a couple of weeks ago, but I am facing this issue now. Please guide me.

msol

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
25,074 questions
{count} votes

Accepted answer
  1. Andreas Baumgarten 123.1K Reputation points MVP Volunteer Moderator
    2025-06-07T17:36:03.5633333+00:00

    Hi @Glenn Maxwell ,

    the reason for this error might be the retirement of the MSOnline PowerShell module:

    Action required: MSOnline and AzureAD PowerShell retirement - 2025 info and resources

    Instead of using the MSOnline PowerShell module it's recommended to use the Microsoft Graph PowerShell SDK: Install the Microsoft Graph PowerShell SDK


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.