Hi
Trying to get a list of all groups per project
tried this using v2 API:
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
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:
Let me know if you have any questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.