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

[1.0.1] Get-EntraGroupOwner doesn't return service principal owners #1343

Open
alexandair opened this issue Feb 9, 2025 · 0 comments
Open
Labels

Comments

@alexandair
Copy link
Collaborator

Get-EntraGroupOwner returns only user type.
To get a service principal type, you need to use the Get-EntraBetaGroupOwner.

PS> Get-EntraGroupOwner -GroupId 1334c115-2a63-4083-b766-12505454099f | ft id,'@odata.type'

PS> Get-EntraBetaGroupOwner -GroupId 1334c115-2a63-4083-b766-12505454099f | ft id,'@odata.type'

id                                   @odata.type
--                                   -----------
66deb2e5-6f49-4852-b24f-e692f01a0f7d #microsoft.graph.servicePrincipal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant