Forums

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

JIRA REST-GET password by email

hasnae dada May 30, 2018

Hello everyone

Is there any query that I can make with curl to get a user's password ?

Here is my curl query :

curl -u adminUser:adminPwd -X GET https://ci.mundiwebservices.com/jira/rest/api/2/user/search?username=hasnae.dada%40gmail.net

Thanks, 

1 answer

0 votes
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.
May 30, 2018

No.  Jira does not store user passwords, so there is nothing to "get" here. 

What are you trying to achieve?  Should the users not be using the "forgot password" when they forget them?

hasnae dada May 30, 2018

Thank you for your response.

I'm tryring to get a user password so he can access directly to his issues, I don't want him to go to the login page.

Is there any solution I can do so I can get his password ?

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.
May 30, 2018

You have to ask the user.  As I said already, Jira does not store the passwords.

Where are you trying to "directly access the issues"?  Is it a system which shares authentication with Jira?  Could you enable SSO?

hasnae dada May 30, 2018

Yes we have a website that shares the authentication with jira, the user logs to the website, his username/password may not be the same as in JIRA only the email is the same for both, once he clicks on my issues in the website he gets his jira issues. it works for the admin because we know his password, we thought that JIRA stors the users and thier password(maybe encrypted).I don't think the SSO is the solution we don't have multiple application access. 

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.
May 30, 2018

Ok, then you mean "no", as it does not share authentication with Jira.

You can do this without SSO, but your other system is going to have to do some work.  First, working from the email address, ask your directories what the user's Jira account is called, then, second, establish an Oauth connection with Jira so that the current user can call Jira to get the data you want to see.

Suggest an answer

Log in or Sign up to answer