Get Groups of user through Jira Api

Alok Agnihotri February 26, 2014

Hi,

We are upgrading JIRA from v4.1.2 to v6.1.6. In previous system we used com.opensymphony.user.User class's getGroup method to get the list of groups associated with a user. Now as the class has been depricated, how can i retrieve user groups now.

We tried to use com.atlassian.crowd.embedded.api.User class but it does't have any method to retrieve user group.

Please suggest any solution.

Thanks!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Jeff Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 26, 2014

I think you want the UserUtil interface. It has the function getGroupsForUser.

TAGS
AUG Leaders

Atlassian Community Events