0

Get-AzureADUserMembership -objectid upn@mycompany.com does not seem to return all groups. Get-ADPrincipalGroupMembership upn returns more groups. How to make sure these are in sync? Any reason why this happens?

4

1 回答 1

0

-All当您需要所有成员资格时使用:

Get-AzureADUserMembership -ObjectId "user@example.com" -All $true

另外,请记住,这Get-AzureADUserMembership只会返回用户是直接成员的组和角色,而不是完整的传递组成员列表。

于 2018-11-02T02:51:05.447 回答