Get Projects according to a specific Username

I am currently making a REST call to get projects with admin credentials. I have another Jira Username for which i have to get projects. Is there any way that i will get only those projects on which this user is having permissions.

1 answer

1 accepted

1 vote

I don't think REST exposes that information, because it's not a simple direct relationship.

Given a project, you'd need to read the list of people and groups in roles, then expand the groups out to people, then read the permission scheme to work out if your user matches the rules for access. You also need to think about what "access" means (just "I can see issue", or something else?), and how to handle the dynamic roles like assignee and reporter etc.

However, REST respects the permissions of the users internally, so if your rule is "person must have browse rights", then your normal user trying to use REST will only see the projects that they see when they use the UI.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,345 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot