I want to reach the user name and user information in jira api, but the api does not return the user that matches me exactly. For example, when I send a request with the username "atum", all users containing the word "atum" such as atum, atuma, katuma are returned. How can I access the information of only "atum" user? I used some function in python for exatch match but is there any option at api side for this?
curl --request GET \ --url 'https://your-domain.atlassian.net/rest/api/3/groupuserpicker?query={username}' \
--user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
Hi @Halit Mert Altıntaş
Welcome to the Atlassian Community.
Based on the API documentation
(...)
Returns a list of users and groups matching a string.
(...)
For example, if the string tin is used, records with the display name Tina, email address sarah@tinplatetraining.com, and the group accounting would be returned.
It seems that using the email, if known, could return an exact match.
Kind regards,
Thiago Masutti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.