API v3: Returning list of groups per project

Luis Zuniga August 26, 2019

Hi

 

Trying to get a list of all groups per project

tried this using v2 API:

api/2/project/{projectIdOrKey}/role

while it does return the roles, premissions per project are assigned to groups and non members/users, which aren't listed under: api/2/project/{projectIdOrKey}/role

any help identifying which api path would give me the groups per project would be appreciated. (preferably in v3)

 

Luis

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2019

Hello Luis,

Thank you for reaching out.

As groups are configured under user management and are not applied in a project basis (like roles), the users added to a specific group in your Permission Scheme will be added to all the projects using that permission scheme.

Basically, it is not relevant to identify the groups per project since the same users will be applied to all projects under the permission scheme. Instead, you must identify the groups added to the Permission Scheme related to that project.

That being said, I believe the following REST APIs would give the groups added to any permissions of your project (And all the other projects using that same permission scheme):

1 - Check what is the ID of the permission scheme your project is using:

https://yourdomain.atlassian.net/rest/api/3/project/{projectkey}/permissionscheme

2 - Check which groups are configured for which permissions in that Permission Scheme:

https://yourdomain.atlassian.net/rest/api/3/permissionscheme/{permissionschemeid}/permission?expand=group

You can refer to the documentation below for more REST API Calls:

JIRA Cloud REST APIs

Let me know if you have any questions.

Suggest an answer

Log in or Sign up to answer