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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Contacted JIRA support and they suggested to use below API post GDPR date.
rest/api/3/user/search?query=% - to filter all users.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
Thanks,
Lukas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also works
/rest/api/3/user/search?query=+
I don't know why. And why there is no docs about it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/rest/api/2/user/search?startAt=0&maxResults=1000&username=%) instead of %, _ is working
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.