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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events