Hi,
Given the GDP changes that are coming for cloud (https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) we are trying to get all the users added in JIRA using without username, query parameters.
Shall we call the API just like https://<our cloud instance>/rest/api/2/user/search?query=startAt=1&maxResults=1000 . This will return the first 1000 users? if you provide any suggestion will help us to move the GDPR changes in the future.
Thanks,
Anand
Hi
I think your call has an issue - it should be
/rest/api/2/user/search?startAt=0&maxResults=1000
You can also add two further parameters - the first will return all users, the second allows you to get inactive users as well
&username=%
&includeInactive=true
Thank you so much @Warren , so i can use /rest/api/2/user/search?startAt=0&maxResults=1000 this api to get users without username parameter after GDPR date(March-29-2019)?
if i use username parameter in the API mean it will be accepted after GDPR date?
Hi @Anand Elumalai
No, I think you need to be careful here.
After the GDPR date, the username will NOT be returned via this call, you will only get the accountId. You will also not be able to query for a specific user by passing in their username as a parameter.
What I've offered as my original answer, using parameter &username=% is more for running now to get a list of all users, which will return their username because the GDPR changes haven't started
/rest/api/2/user/search?startAt=0&maxResults=1000&username=%) instead of %, _ is working
Contacted JIRA support and they suggested to use below API post GDPR date.
rest/api/3/user/search?query=% - to filter all users.
I tried to use "rest/api/3/user/search?query=%", but it doesn't work, username=% worked until yesterday and now it only returns blank table Any other suggestions?
Lukas
Hi @Lukas Krajnak
So 1 minute after reading this, I came across a post from the Atlassian Developers Community which gave me a working solution, try :
/rest/api/3/user/search?query=
with no parameters passed in - it works for me.
The post is here
Seems like paremeter includeInactive is not working anymore, so there is no way to get list of all inactive users anymore. Is there any other workaround?
It looks like you're new here. Sign in or register to get started.