Hi,
I am trying to pull all JIRA users account Ids using REST api.
I used this api
it returns all the users including external users(customers) as well
but i only care about the internal users who have email address with domain @solifi.com
Is there a way to pass filter for @solifi.com on email address in the api call or is there any other api endpoint which could return the internal users only.
Can anyone help me out regarding this ?
"Is there a way to pass filter for @solifi.com on email address in the api call"
Yep. Use the v3 REST API Find Users endpoint instead.
@Sunny Ape Thanks for the reply. I looked into the documentation and it says that we can pass query parameter for email address. Since i want to pull the data for all email addresses ending a @solifi.com so i used query parameter like this
But you can see it returned only 5 records . But it should return approx 500 records because we have almost 500 internal users using @solifi.com domain.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You don't seem to have read the documentation properly. You can't use JQL operators like '~' in the query string nor can you put the word 'emailAddress' in the query string either.
Also, can I assume you remember that the ability to search for a user based on their email addresses in Jira Cloud only works if a user has allowed you to find them that way? Your search probably only found a couple of users who have disabled the privacy setting which keeps their email address private.
Why don't you just search for ALL USERS, then just ignore any results that aren't users in your domain?
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.