Get-SPOTenant : Access denied. You do not have permission to perform this action or access this reso

%3CLINGO-SUB%20id%3D%22lingo-sub-1170691%22%20slang%3D%22en-US%22%3EGet-SPOTenant%20%3A%20Access%20denied.%20You%20do%20not%20have%20permission%20to%20perform%20this%20action%20or%20access%20this%20reso%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1170691%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Community%2C%3C%2FP%3E%3CP%3EI'm%20a%20SharePoint%20admin%20in%20my%20organization%20and%20whenever%20I%20run%20commands%2C%20for%20instance%2C%20Get-SPOTenant%2C%20I%20get%20this%20error%20message.%20I'm%20able%20to%20connect%20to%20the%20admin%20site%20without%20an%20issue%2C%20but%20after%20that%20whenever%20I%20run%20another%20command%2C%20the%20error%20shows%20in%20Powershell.%20Any%20suggestions%2Fcomments%20will%20be%20greatly%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1170691%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPermissions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESites%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hello Community,

I'm a SharePoint admin in my organization and whenever I run commands, for instance, Get-SPOTenant, I get this error message. I'm able to connect to the admin site without an issue, but after that whenever I run another command, the error shows in Powershell. Any suggestions/comments will be greatly appreciated.

2 Replies

Hui @bgrede ,

 

Just to make sure you are sharepoint online admin?

@gabormicskei Yes, I'm a SharePoint online admin. Do I need to perform any additional steps prior to running PowerShell commands?