Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

API groupuserpicker

Halit Mert Altıntaş
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 26, 2022

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'

1 answer

0 votes
Thiago Masutti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 7, 2022

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events