Forums

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

Retrieve Account Type from Get Bulk Users API

Prerak Y Diwan
Contributor
July 6, 2021

I am using to retrieve user details for multiple account Ids at once
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-bulk-get

 

In the response I am not getting "accountType" field which I need to validate the user types that can access the addon app. I am getting the same field for single user API and Get all users API but not in GET BULK USERS API. 

Is there a way I can get the account type in response? If not is there a way I can retrieve multiple user details by passing their account Ids in request that also gives me account type in response?

 

 

1 answer

0 votes
Prince Nyeche
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 Leaders.
July 6, 2021

That API is experimental, so it can change at any given time. However, since it's not giving you the desired outcome, you can use another API that does or come up with a workaround for your use case. In my opinion, the user search API should just do the job. You can retrieve the details once, and from your code search for accountid matching the data, you have retrieved before.

Prerak Y Diwan
Contributor
July 8, 2021

Yes that is what I did before posting this question.
I could not find an option to pass specific user account Ids in Search Users API so had to call for all users and later had to filter them based on my requirement for specific account IDs. The GET bulk Users API was allowing to do so but not returning desired response field even though mentioned in the documentation of User Value JSON.

I will keep this question open for in the future if there is a possibility of such similar Bulk User API that returns all user fields mentioned in the documentation specifically Account Type of the user.

Suggest an answer

Log in or Sign up to answer