Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Grant-PnpAzureADAppSitePermission get timed out #4742

Open
1 of 6 tasks
surajabacusai opened this issue Feb 18, 2025 · 0 comments
Open
1 of 6 tasks

[BUG] Grant-PnpAzureADAppSitePermission get timed out #4742

surajabacusai opened this issue Feb 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@surajabacusai
Copy link

surajabacusai commented Feb 18, 2025

Reporting an Issue or Missing Feature

After successfully running Connect-PnPOnline, when I run

Grant-PnpAzureADAppSitePermission -AppId <app id> -Site <site> -Permissions Read -DisplayName "My Azure AD App" -Verbose
I get the following output after a very long time

VERBOSE: Using Microsoft Graph to lookup the site Id of the passed in site using -Site
VERBOSE: Acquiring oAuth token for permission scope Sites.FullControl.All

Grant-PnPAzureADAppSitePermission: Verification code expired before contacting the server

I've granted the following roles to the app

Image

Can someone please help what I'm doing wrong?

What is the version of the Cmdlet module you are running?

(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable)
I'm using 2.12.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify
@surajabacusai surajabacusai added the bug Something isn't working label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant