Hello @EnterpriseArchitect
Thank you for contacting Microsoft Azure QnA platform. I would like to share following commands which can be helpful to get the details you are looking for:
{$applicationId = App-Registration-ObjectID; $servicePrincipalId = Service-Principal-ObjectID}
Microsoft Graph PowerShell Commands:
- Get-MgBetaApplicationOwner -ApplicationId $applicationId
- Get-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId
- Get-MgBetaServicePrincipalOwner -ServicePrincipalId $servicePrincipalId
Microsoft Graph API Query:
- https://graph.microsoft.com/beta/applications/{App-Registration-ObjectID}/owners
- https://graph.microsoft.com/beta/ServicePrincipals/{Service-Principal-ObjectID}/appRoleAssignedTo
- https://graph.microsoft.com/beta/ServicePrincipals/{Service-Principal-ObjectID}/Owners
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.