question

KantaPrasad27 avatar image
0 Votes"
KantaPrasad27 asked EmilyDu-MSFT commented

Sharepoint Powershell Error Get-SPOUser : Access is denied. (Exception from HRESULT: 0x80070005


I have a list of Sharepoint site URLS in below mentioned CSV file. I am already Sharepoint Administrator and Global Administrator as well in our Office 365 tenant.

Could you please help me how can I avoid below error and get the list of permissions and other sharepoint site attributes as :(DisplayName,LoginName,IsSiteAdmin,IsGroup,UserType)


Import-csv c:\temp\\Sites_URL_Lists.csv


Get-SPOSite -Limit 1 | ForEach {Get-SPOUser –Site $_.Url} | ft -a

Get-SPOUser : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

EmilyDu-MSFT avatar image
0 Votes"
EmilyDu-MSFT answered EmilyDu-MSFT commented

@KantaPrasad27

Microsoft 365 Administrator Role (SharePoint Administrator, Global Administrator) will not automatically be given rights to site collections, site contents and so on. You must have appropriate rights at the site collection level.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@KantaPrasad27

I’m checking how the things are going on about this issue. Whether the answer helps you?

If there is any problem with this issue, feel free to let me know.

0 Votes 0 ·

@KantaPrasad27

I am looking forward to your feedback if there is any update.

Please remember to update this thread if you have any progress.

Thank you for your understanding.

0 Votes 0 ·