Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Finding all groups a user is a member of

$
0
0

The question does not pertain to one level deep hierarchies [1], but to nested groups (ie Joe is an administrator and thus member in the group Administrators; this group is member in say SharepointA group [and so on])

What is the recommended way of querying this?

Chris

(1)

var groupReferences = dataService.LoadProperty(user, "MemberOf")                    
 .OfType<ReferencedObject>()
 .Where(r => r.ObjectType == "Group")
 .Select(g => g.ObjectId);


Christoph Wille - Glengamoi Alumni - Realnamen sind ein Gebot der Höflichkeit in der Community


Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>