-
Notifications
You must be signed in to change notification settings - Fork 176
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
Differences in data returned from Get-MgOauth2PermissionGrant vs Get-AzureADOAuth2PermissionGrant #2469
Comments
To add: Both using the beta version of the module, and running a |
@robinmalik you can now able to pass custom headers with the current SDK version (2.15.0). |
If I additionally use the |
Hi, I'm seeing the same issue. It seems to be missing many of the Delegated permissions/scopes for one specific App. All the other App Delegated authenticated permissions seem to be returned. The interesting thing is if I filter for the specific App ClientID, then all 270 "user" Delegated permissions are successfully returned as expected. If I just pull "all" the permissions with specifying a filter, then only 44 are returned in the result set for this specific App. The workarounds above don't see to make a difference. The following "successfully" returns all 270 expected user Delegated permission authentications for the app. As mentioned, only 44 are returned for this app if I pull everything without specifying a filter! Get-MgOauth2PermissionGrant -Filter "ClientId eq '988d0424-9a1b-499a-919a-zzzzzzzzzzzz'" -All Running Microsoft.Graph 2.25.0 Thanks! |
Adding on to the comment above. Looks like the issue is a Paging issue. Please see below The number I'm expecting is 839. With no -PageSize I get 613. With -PageSize 999 I get the expected number which also matches the output of (Get-AzureADOAuth2PermissionGrant -All $true).Count No -PageSize Following is what I see when I add the -PageSize with different sizes. PS C:> (Get-MgOauth2PermissionGrant -PageSize 1 -All).Count Regardless of -PageSize shouldn't it always return the same record count? Thanks! |
Hi @timayabi2020, Would it be possible to reopen this? Please see comments above. Thanks! |
Describe the bug
I'm attempting to migrate code to the Microsoft Graph and have noticed differences between Get-MgOauth2PermissionGrant and Get-AzureADOAuth2PermissionGrant. Specifically, that the Graph calls are missing data.
To use one example, Adobe Acrobat, that has been granted access to 3 resources (by a number of users):
The data returned by Get-MgOauth2PermissionGrant shows grants for only 1 of these (
Windows Azure Active Directory: Directory.AccessAsUser.All
) but Get-AzureADOAuth2PermissionGrant shows all 3.To Reproduce
Expected behavior
Debug Output
Module Version
All Graph modules are
2.10.0
.Environment Data
The text was updated successfully, but these errors were encountered: