Open
Description
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