Skip to content

[BUG] Grant-PnpAzureADAppSitePermission get timed out #4742

Open
@surajabacusai

Description

@surajabacusai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions