Get-AzureADOAuth2PermissionGrant -all $true not working

Welcome Forums General PowerShell Q&A Get-AzureADOAuth2PermissionGrant -all $true not working

This topic contains 1 reply, has 2 voices, and was last updated by

Senior Moderator
8 months, 3 weeks ago.

  • Author
  • #127959

    Topics: 4
    Replies: 6
    Points: 25
    Rank: Member

    Hi All,

    I am facing some issue with the above command. If i run Get-AzureADOAuth2PermissionGrant it will return a finite set of results. If i try to run "Get-AzureADOAuth2PermissionGrant -all $true" It is throwing the error

    Get-AzureADOAuth2PermissionGrant : Unexpected end when deserializing array. Path 'value[1000]', line 1, position 366740.
    At line:1 char:33
    + ...                           Get-AzureADOAuth2PermissionGrant -All $true
    +                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-AzureADOAuth2PermissionGrant], ApiException
    + FullyQualifiedErrorId : Microsoft.Open.AzureAD16.Client.ApiException,Microsoft.Open.AzureAD16.PowerShell.GetOAuth2PermissionGrants

    If any one has the solution, please share.



  • #127968

    Senior Moderator
    Topics: 8
    Replies: 1009
    Points: 3,281
    Helping Hand
    Rank: Community Hero

    Never used Azure cmdlets, but Looks like a bug.

The topic ‘Get-AzureADOAuth2PermissionGrant -all $true not working’ is closed to new replies.