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: 

How to search users using "/rest/api/3/user/search" as an app user

Shubham Tyagi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 28, 2022

Hi,

I am using the API "/rest/api/3/user/search" to get the list of users in my atlassian-connect application. Currently, I am accessing the API using on behalf of a user (Authorization with user impersonation) but i want to access it via an app user (Authorization via scopes and app users). According to the Atlassian connect README, i am sending the request as:

addon.httpClient.get('/rest/api/3/user/search', function(err, res, body) { ... });

I have also defined the scope as "ADMIN" in atlassian-connect.json file but still unable to fetch any result and no users are returned. Is there anything i am missing with the request or permissions?

Thanks in advance.

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events