Answers
- Delegated vs application identity in Microsoft 365 evidence
Whose view of the tenant am I actually reading?
- How to authenticate PnP.PowerShell with a ClientId
Why does Connect-PnPOnline demand a client id, and what do I register?
- Why does Connect-PnPOnline succeed when the next command returns Unauthorized?
My connection worked. Why does the very next cmdlet say unauthorized?
- PnP PowerShell app-only, certificate or client secret?
Can I use a client secret for unattended PnP PowerShell, or does it have to be a certificate?
- What application permission does PnP PowerShell need to read a SharePoint site?
Which application permission is enough for an unattended script to read a site?
- Why can Get-PnPSiteCollectionAdmin return an empty list with an app-only identity?
My app-only script says a site has no administrators. The portal shows one. Which is right?
Beyond the answers
What else in this site touches this subject: the rules that consume these facts, the chapters that use them, and the analysis that argues about them.
Field Guide chapter
answers
- Delegated vs application identity in Microsoft 365 evidence
- How to authenticate PnP.PowerShell with a ClientId
- Why does Connect-PnPOnline succeed when the next command returns Unauthorized?
- PnP PowerShell app-only, certificate or client secret?
- What application permission does PnP PowerShell need to read a SharePoint site?
- Why can Get-PnPSiteCollectionAdmin return an empty list with an app-only identity?