Skip to content

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

@gurban2013

Description

@gurban2013

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_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions