Access denied error logging into Connect-MsolService from msgraph

Mark Dudley 41 Reputation points
2025-06-10T13:53:48.5033333+00:00

Change my domains from federated to managed. i log into msgraph online fine. When I run the command Set-MsolDomainAuthentication -Authentication Managed -DomainName <mydomain>

Set-MsolDomainAuthentication : You must call the Connect-MsolService cmdlet before calling any other cmdlets.

When I try to connect using; Connect-MsolService : Access Denied. You do not have permissions to call this cmdlet. Am using a tenant account with Global Admin.

What am I doing wrong. I was always able to connect before.

Thanks,

Mark

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
    2025-06-10T14:30:39.4633333+00:00
    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.