I am using to retrieve user details for multiple account Ids at once
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?
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.
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.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events