0

Getting this error:

Add-PnPCustomAction : Attempted to perform an unauthorized operation.

User has Admin level access on SharePoint Online. PnP PowerShell throws error. Please advice solution here.

2
  • User account has SharePoint administrator or Site collection administrator permissions? Are you able to perform other operations like Set-PnPSite? Can you add the code you are using to your question? Sep 22, 2022 at 8:41
  • Would regrant permissions to the user help in your case?
    – Allen_MSFT
    Sep 26, 2022 at 7:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.