You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently converted a script to use the Entra ID registered app authentication because the old interactive credentials one is deprecated.
Since then, I always get "The remote server returned an error: (401) Unauthorized" even tho I granted every API permission that would be relevant to the script (which is attached to this ticket).
API authorizations
I'm using a cert to authenticate.
Expected behavior
it should be able to generate a permission report of the targeted site.
Actual behavior
The remote server returned an error: (401) Unauthorized.
Steps to reproduce behavior
Use the script, it will prompt you for any needed inputs (it will ask you your tenant url and site name, you still need to edit the variable $tenantUrl with your tenant FQDN, without https://).
What is the version of the Cmdlet module you are running?
This discussion was converted from issue #4359 on September 30, 2024 10:40.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Reporting an Issue or Missing Feature
I recently converted a script to use the Entra ID registered app authentication because the old interactive credentials one is deprecated.
Since then, I always get "The remote server returned an error: (401) Unauthorized" even tho I granted every API permission that would be relevant to the script (which is attached to this ticket).
API authorizations
I'm using a cert to authenticate.
Expected behavior
it should be able to generate a permission report of the targeted site.
Actual behavior
The remote server returned an error: (401) Unauthorized.
Steps to reproduce behavior
Use the script, it will prompt you for any needed inputs (it will ask you your tenant url and site name, you still need to edit the variable $tenantUrl with your tenant FQDN, without https://).
What is the version of the Cmdlet module you are running?
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions