Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
AlainY
Explorer

Method for listing all groups (including nested groups) of an object

Hello CheckMates,

is there a native way to list all the groups (including the parent groups when nested) of an object? 

 

Let's say I have object A that is in Group A, Group A is in Group B and Group B is in Group C... 

I would want an output like this, or similar:

OBJECT A

Groups

 - Group A

 - Group B

 - Group C

 

Could I list all groups, including parent groups, for an object with the API?

 

Thanks

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

Using a single command? No.
You’d have to programmatically list the group and any nested groups you find.
To find groups that contain a given object, you’d probably have to use something like where-used to do it.

0 Kudos