Missed Team ’24? Catch up on announcements here.

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

How to get project roles of a user in any project in jira cloud?

Alok Singh May 25, 2016

Hi I am trying to check whether the logged-in user is part of a specific role in JIRA project. I could have easily done that in server plugins with 

Collection<ProjectRole> projectRoles = 
projectRoleManager.getProjectRoles(applicationUser, project);

But I cannot find any such rest api to check user role in a project. Please help asap.

5 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Einar Pehrson
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 20, 2016
0 votes
Robert Massaioli _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 4, 2016

Also, if the /rest/api/2/project/<projectIdOrKey>/role/<id> rest api would give you what you need then why not just request ADMIN access for your add-on?

0 votes
Robert Massaioli _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 4, 2016

@Alok Singh, if you are attempting to get attention on your Atlassian Connect questions then you are better off adding the 'atlassian-connect' label to your issues. That will result in a faster response. I have been on holidays for the past few weeks.

0 votes
Alok Singh May 26, 2016

@Robert Massaioli Please have a look into this.

0 votes
Alok Singh May 25, 2016

Currently I am using 

/rest/api/2/project and
/rest/api/2/project/{projectKey} to check user has the specific role.
After running these API's I am trying to use

which gives 401(unauthorized) for non admin users.

 
 

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events