Skip to main content
New Participant
Feb 10, 2023 4:55 AM UTC
Question

Group Direct Members

Hi,

Is there a function available to retrieve only direct members from a group.

The a!groupMembers function returns both direct and rule based members when "direct=true" is passed, but I am looking for a way to specifically obtain just direct members.

Thank you 

3 replies

harshitb6843
Brainy
Feb 10, 2023 6:24 AM UTC

For me, it works perfectly fine. 
I think you should check your group structure again. 

New Participant
Feb 10, 2023 11:18 AM UTC

Yes, passing direct=true, returns both 'direct' + 'rule' based users & my requirement is to get 'direct' members excluding rule based membership. 

mikes0011
Brainy
Feb 10, 2023 3:32 PM UTC

I don't believe there's any functionality that can make that distinction.  For most use cases there's no difference between a "direct" and "rule-based' group member, as both of these imply that the membership is direct versus being inherited from a member sub-group.

The Expression Guru