Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Macro to get a user's group membership

Adolfo Casari
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 16, 2012

I need a user macro that for a given username, it returns the list of groups this user belong.

Any hints about the object I should use to get this info?

Thank you.

1 answer

0 votes
Colin Goudie
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 17, 2012

You can use GroupManager from atlassian-user which can return a Paging object of Groups for a given User object

Adolfo Casari
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2012

Hi colin,

Can you provide a sample code on how to use these objects?

Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events