# Get email on Elixir/Phoenix

**URL:** <https://community.auth0.com/t/get-email-on-elixir-phoenix/9057>\
**Category:** Get Help\
**Tags:** email\
**Created:** [December 23, 2017, 8:07am UTC](https://community.auth0.com/t/get-email-on-elixir-phoenix/9057 "2017-12-23T08:07:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathanielsuchy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nathanielsuchy/32/7534_2.png) [@nathanielsuchy](https://community.auth0.com/u/nathanielsuchy)\
**Post date:** [December 23, 2017, 8:07am UTC](https://community.auth0.com/t/get-email-on-elixir-phoenix/9057/1 "2017-12-23T08:07:34Z")

</div>

Today I followed your tutorial to setup authentication on an Elixir/Phoenix web app ([Elixir & Phoenix Tutorial: Build an Authenticated App](https://auth0.com/blog/elixir-and-phoenix-tutorial-build-an-authenticated-app/)). It was great because as a new developer in Elixir it’s difficult to setup your own authentication with no experience. Now I can focus on making the easier features. I would like to get the email upon login and register an account in the database. How would I approach this? Does Auth0 share the account email?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [December 26, 2017, 6:30pm UTC](https://community.auth0.com/t/get-email-on-elixir-phoenix/9057/2 "2017-12-26T18:30:26Z")

</div>

When authenticating through Auth0 any user profile information available can be returned or made accessible to the client application either through standard OpenID Connect claims or custom ones.

In this case, email is a user profile field covered by OIDC standard claims so obtaining the email is mostly independent of technology stack. In particular you would need to ensure that the client application sends a `scope` parameter to Auth0 that contains at least `openid email`. This would mean that if an email is available for that user then any ID token issued as part of that authentication event would contain an `email` claim with the address.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/get-email-on-elixir-phoenix/9057/3 "2018-03-02T05:57:55Z")

</div>


