Get user email using REST API

Hi All,

I am building a webform and have auto authentication using CROWD once authenticated I need to get that users email. Can someone point me towards the right direction on how would I go getting users email.

Thank you.

1 answer

This widget could not be displayed.

Hi, Andrej.

You should be able to retrieve the user details by running a get call against this URL:

http://YOUR-CROWD-SERVER:8095/crowd/rest/usermanagement/1/user?username=USERNAME

To authenticate the call you need to use the Crowd application name and its password, not your user's credentials.

Depending on the version of Crowd you're using, you can retrieve this info from the <crowd-home>/crowd.properties file:

application.name

application.password

Note that this will not retrieve only the e-mail address, but you should be able to parse the results (even with a grep in a Unix terminal) and filter only the email address. :)

I hope it helps, let me know if you have any questions.

- Mallmann

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

140 views 16 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you