I've looked everywhere, but I cannot find a way to query Jira for all Service Management users (accountType = "customer").
If I already know the exact accountID /rest/api/3/user?accountId= will return the record of a customer user, but if I try to query for all Jira users in my system, all users of this accountType is filtered out from the resultset.
Also - the Service Management API only provide a POST endpoint for Customers - but no way to query for the list. I know I can get all users for an Organization, but that's not what I'm looking for.
Thanks for any good ideas or pointers :)
Hi!
Doesn't this endpoint return all the accountType variants?
I have tested in my instance and it worked fine.
Thanks Deivid,
The proposed endpoint require AccountID, and only need a full unfiltered list of all external users in Service Management
LarsM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, the only way I found is using this endpoint:
But you'll have to do a “manual pagination”, because the endpoint return a maximum of 50 records, but it has a parameter “startAt”.
I don't know if you have access to API tokens, but I've made a simple Python implementation that get, parse and then exports the API return. You can access here:
https://gist.github.com/dvaraujo/2a8c2d9e916e06b09b7e2d4c933ab194
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank again,
I do have all the API tokens, and have tried your proposed endpoint before, but my issue is that it only returns the internal users (our own Jira users), and not the service management users or Customers. They have AccountID's starting with "qm:".
I may be doing something wrong, or there is a setting somewhere limiting the result to internal users.
Does your system return users with AccountID starting with "qm:......"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it does:
How many users do you have in your instance, approximately?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are perfectly right, Customers was certainly there, but after the intial search response set size.
Thanks for you support and patience.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.