# Adopting SAML with an existing user base

**URL:** <https://meta.discourse.org/t/adopting-saml-with-an-existing-user-base/159258>\
**Category:** SSO\
**Created:** [30 juli 2020 om 07:05 UTC](https://meta.discourse.org/t/adopting-saml-with-an-existing-user-base/159258 "2020-07-30T07:05:28Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![aleber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aleber/32/151754_2.png) [@aleber](https://meta.discourse.org/u/aleber)\
**Post date:** [5 augustus 2020 om 13:29 UTC](https://meta.discourse.org/t/adopting-saml-with-an-existing-user-base/159258/6 "2020-08-05T13:29:33Z")

</div>

The issue is my Okta/SAML is sending the username and not the email within this field

```plaintext
<saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">my.name</saml2:NameID>

```

I fixed by adding a new attribute called `email` and then forking the project to setup the result.mail by reading it from this new attribute (if present).

I’m going to create a pull request.

Thanks  
AB

---

_[View the full topic](https://meta.discourse.org/t/adopting-saml-with-an-existing-user-base/159258)._
