Forum Discussion
Dave Walker
Jan 11, 2019Copper Contributor
Powershell script for SharePoint online inventory fails with FullyQualifiedErrorId : IdcrlException
Hi All, I've bee tasked with creating a simple report that shows all the sites on SharePoint Online and a total of the content items in each site. It's just a basic inventory. The Powershell script ...
Jan 12, 2019
Strange, I have in the pust created and run PS scripts in environments where ADFS is deployed and I have not had any problems...can you just simply create a connection to your SPO test tenant and run Get-SPOSite and see what happens? Use the SPO Management Shell for that
- Dave WalkerJan 14, 2019Copper Contributor
Hi Juan, yes I can get past excuting Connect-SPOService and Get-SPOSite. It's when I create a context object and execute a query on that object that I get the error.
- Thomas BermanJan 16, 2019Iron Contributor
If you step through your code, does it fail on the very first iteration of your Get-SPOWebs() method? Could it be that one of the sub webs has broken inheritance and you don't have access?
Are you sure you have permissions to list webs and lists on that site?