"curl -u username:password https://subdomain.atlassian.net/rest/api/2/user?username" returns my user. But
"curl -u username:password https://subdomain.atlassian.net/rest/api/2/user/search?username=u" or
"curl -u username:password https://subdomain.atlassian.net/rest/api/2/user/search?username=username" or
"curl -u username:password https://subdomain.atlassian.net/rest/api/2/user/search?username=useremail"
Returns an empty array. Would be nice if someone could help me with this one (user is not inactive)
By the way what I really need is the ability to search users by email.
Community moderators have prevented the ability to post new answers.
Hi,
Have you the privilege to browse users?
In my instance when I execute this
http://My server/rest/api/2/user/search?username=u@b.c&includeActive=true&includeInactive=true
I have this result
[{"self":"http://My server/jira/rest/api/2/user?username=util2","name":"util2","emailAddress":"u@b.c","avatarUrls":{"16x16":"http://My server/jira/secure/useravatar?size=small&avatarId=10122","48x48":"http://My server/jira/secure/useravatar?avatarId=10122"},"displayName":"Utilisateur 2","active":true,"timeZone":"Africa/Luanda"},{"self":"http://My server/jira/rest/api/2/user?username=util3","name":"util3","emailAddress":"u@b.c","avatarUrls":{"16x16":"http://My server/jira/secure/useravatar?size=small&avatarId=10122","48x48":"http://My server/jira/secure/useravatar?avatarId=10122"},"displayName":"Utilisateur 3","active":true,"timeZone":"Africa/Luanda"}]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That does not seem to work. I am trying to use the Rest API with our on-demand instance. If I use the parameter username=bchoate it works and will return my user record. If I use username=bchoate@wikia-inc.com it returns an empty array. In the case where I am using email the email string is getting properly url encoded before sending.
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.
It seems to be a recent bug on the latest OnDemand version. Here is what it should return: https://docs.atlassian.com/jira/REST/latest/#d2e3553
I created: JRA-38489
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.