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

Get-MgServicePrincipa nor Get-MgServicePrincipalAppRoleAssignment return values for AppRoleAssignedTo #3027

Open
tikesavage opened this issue Nov 13, 2024 · 2 comments

Comments

@tikesavage
Copy link

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"

  • no output at all. no error.

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_
@tikesavage tikesavage added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Nov 13, 2024
@timayabi2020
Copy link
Contributor

timayabi2020 commented Nov 27, 2024

@tikesavage thank you for logging this issue. Please upgrade to the latest SDK version 2.25.0 and use Get-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId <Your id> as per the documentation here to get to that object.
image

@timayabi2020 timayabi2020 added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Nov 27, 2024
@tikesavage
Copy link
Author

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"

image

image
image

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 and removed status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants