-
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
Get-MgServicePrincipa nor Get-MgServicePrincipalAppRoleAssignment return values for AppRoleAssignedTo #3027
Comments
@tikesavage thank you for logging this issue. Please upgrade to the latest SDK version |
Hi @timayabi2020 thanks for getting back to me! I installed the 2.25.0 and i imported that version when running. still an issue for me. my account and 2 groups are assigned as "users" |
Hi @tikesavage as per the first comment, the issue is that you are not able to get content from |
sorry screen cappped the wrong cmdlet. in the first shot. looks like it actually uses the object ID instead of app id.... *edit spelling and mistype * |
Describe the bug
when using either cmdlet there is not value returned. but the graph API call works fine
Get-MgServicePrincipa nor Get-MgServicePrincipalAppRoleAssignment return values for AppRoleAssignedTo
Expected behavior
expected behavior is to return the values that are returned using the graph api call, principalDisplayName and ID
https://graph.microsoft.com/beta/servicePrincipals/{APPID}/appRoleAssignedTo
How to reproduce
oduleType Version PreRelease Name ExportedCommands
Script 2.8.0 Microsoft.Graph.Applications {Add-MgApplicationKey, Add-MgApplicationPassword, Add-MgServicePrincipalKey, Add-MgServicePrincipalPassword…}
Get-MgServicePrincipal -Filter "displayName eq 'Xtra Chef'" | fl
AccountEnabled : True
AddIns : {}
AlternativeNames : {}
AppDescription :
AppDisplayName : Xtra Chef
AppId : REDACTED
AppManagementPolicies :
AppOwnerOrganizationId : REDACTED
AppRoleAssignedTo :
Get-MgServicePrincipalAppRoleAssignment -ServicePrincipalId "APP_ID_HERE"
SDK Version
No response
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: