How can I get all inactive users with the JIRA REST API?
The /rest/api/2/user call requires a user name rather than letting an empty user name result in all the users.
The /rest/api/2/user/search also requires a username. Does this accept a regex like .* or something similar to specify all users?
How can I get all the users?
It doesn't appear the API supports just a query for all, at least, not directly as it doesn't support a regex value.
The 'username' parameter does search the email address. If all accounts are within your company, then all emails should have the same domain, which a search on that would return everyone. You could also just use ".com", and repeat for all the ones existing in your instance.
If this isn't an option, you could use the Group endpoint if all the users are assigned groups when added into Bitbucket.
As I see Jira Rst has a parameter
I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs