The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get list of all users via Rest-API with user having global browse user permission

Tobias
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 5, 2021

Hello together, 

we want to extract all users our technical user can get over the REST API (Jira Server 8.13.3).

The user is used for the connection to our tickettool in which we got the possibility to create issues. 

So in this case the tec-user  got global browse users permissions because when we give him the administrator rights all projects are selectable in the tool.

So the current problem we have is that we didn't have a API call which shows us all users (starting it with permissions of the tec-user).

Maybe someone has an idea how to fix this without setting him as an administrator.

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Thomas Deiler
Community Champion
May 5, 2021

Dear @Tobias ,

unfortunately there is no REST endpoint for this, but I guess you have groups assigned to the global permission. So you can query the groups. eg.

GET https://myhost.com/rest/api/2/group/member?groupname=AD_GLOBAL_ADMINS

So long

Thomas

Tobias
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 2, 2021

Hi @Thomas Deiler 

in my case Postman shows that therefore administrator rights are needed. 

The user is part of the third group I permitted for this.

2021-06-02 18_40_52-Global Permissions - Markant Jira.png

Is there something wrong?

Thomas Deiler
Community Champion
June 7, 2021

Nop. You need admin rights for that.

DEPLOYMENT TYPE
SERVER
VERSION
8.13.3
TAGS
AUG Leaders

Atlassian Community Events