Forum Discussion
Daniel Westerdale
Jul 16, 2019Iron Contributor
OneDrive + Get-PnPRecycleBinItem : Access denied. You do not have permission
Hi Firstly, I am not sure this bug or by design 🤔 however, it is impeding my progress. Anyway, I am looking to initially, review the deleted files in a set of User's ODFB recycle bins. T...
- Jul 16, 2019
I believe the Secondary admin setting you have pictured only applies to new My Sites.
For existing My Sites/OneDrive sites, you will probably have to add yourself directly as a Site Collection Admin for the ones you are trying to access.
kevinmckeown8
Jul 16, 2019Iron Contributor
I believe the Secondary admin setting you have pictured only applies to new My Sites.
For existing My Sites/OneDrive sites, you will probably have to add yourself directly as a Site Collection Admin for the ones you are trying to access.
- Daniel WesterdaleJul 17, 2019Iron Contributor
kevinmckeown8 You are 100% correct.
Located, https://gallery.technet.microsoft.com/How-to-add-a-secondary-0b878d98?redir=0
From this I simply added:
Set-SPOUser -LoginName $ODFBSecondaryAdmin -Site $ODFBUserUrl -IsSiteCollectionAdmin $True
Then I am able to inspect each user's Recycle bin and filter by Deleted Date as desired. Happy days!