Get details of a user groups using Jira REST API

I am using a custom UI app and I want to get the user groups of a current user using their user Id. I I am currently using https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-user-groups-get to get user groups but it only gives me the name, id of the group and self url

Is there a way I can get details of those user groups instead, I want to know more information about those user groups like the product access members will have

Hello @YvesIvadHABIMANA

Information about Groups, such as their members, is found using the Groups endpoints.

@sunnyape I have already checked the groups endpoints but I couldn’t get the information I am looking for (unless I am missing something).
I want to know the permissions and product access that members of a certain group will have, regardless the members themselves

You seem to be confusing Jira Cloud’s users, groups, permissions and roles with product access management groups. Product access management is done at the organisational level, so there is nothing that Jira’s REST API endpoints can tell you about those other groups or what other products any user has access to.

If you need to find out what products a user has access to via any product access groups, you must use the Cloud Admin APIs.

For more information I am basically looking for the labeled information
I will try the cloud admin APIs and see

I couldn’t find a solution from the Cloud APIs either, any more ideas @sunnyape

Hi @YvesIvadHABIMANA,

Unfortunately there are no API’s that provide information about product access roles for each group that are available currently to Forge apps.

Even the organisations API’s group search does not currently support returning the access granted by each group: https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v1-orgs-orgid-groups-search-post. The organisations API also requires an extra Org level API token, so isn’t just a scope you can add to your Forge App.

What is your use case for needing that? Usually if its about checking permissions using groups directly is not the way to go.

3 Likes

@richard.white thanks for your response
For the use case, I’m creating a feature of adding users to a selected group and I want to provide information to the admin about product access and permissions the group will give to the added user

@YvesIvadHABIMANA

I’m sure its not want you want to hear, but I would suggest that it is very problematic to add groups from your app. The problem is that with the new User Management experience only Org admins and user access admins should be able to add users to groups: What are the different types of admin roles? | Atlassian Support

But usually apps will be available to site-admins or more. Essentially you may be creating a security hole, unless this is expected functionality of your app.

Is it really an important use case for your apps functionality, or just a nice to have?

@richard.white yes this is an important use case if not the most important feature