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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.