Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I want to get details of a user by email but I am not able to find the method which I need to call.

Ritesh Shakya June 20, 2023

Hii Guys . I am using   JiraRestClient(jira-rest-java-client-app)

I want to get details of a user by its email but I am not able to find any method which can help me achieve this.

However I am there is an api through which I am able to achieve this.

https://api.atlassian.com/ex/jira/{cloud-id}/rest/api/2/user/search?query=example@domain.com.

 

I want to achieve this using the RestClient provided by the atlassian dev's

2 answers

1 accepted

0 votes
Answer accepted
Ritesh Shakya July 2, 2023

@Nic Brough -Adaptavist-  No worries brother. I saw there is no such method or api which gives you user information by giving its email, So I have implemented my own by calling api (

/rest/api/2/user/search )  with query Parameter query=abd@example.com.
Thanks for your help.
0 votes
Frederik Vantroys
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2023
Ritesh Shakya June 20, 2023

Is there any way to achieve this by using UserRestClient provided by Jira?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 30, 2023

This answer was generated by an AI that has no clue what it is doing.

@Frederik Vantroys please turn off your 'bot, or at least read and check the horribly wrong things before it posts.

Like Ritesh Shakya likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events