# Gebruikersnaam herschrijven met SAML/OpenIDC Logins

**URL:** <https://meta.discourse.org/t/rewrite-username-with-saml-openidc-logins/220999>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [15 maart 2022 om 13:41 UTC](https://meta.discourse.org/t/rewrite-username-with-saml-openidc-logins/220999 "2022-03-15T13:41:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [15 maart 2022 om 14:59 UTC](https://meta.discourse.org/t/rewrite-username-with-saml-openidc-logins/220999/2 "2022-03-15T14:59:04Z")

</div>

> [@holtgrewe](#):
>
> modifying the source code of the connectors but the mapping probably needs to be done in a lot of places

I think the required modifications would be limited to a [single function](https://github.com/discourse/discourse-saml/blob/88054bdad07940147bdfb9d33005549be5be0a07/lib/saml_authenticator.rb#L360-L374).

---

_[View the full topic](https://meta.discourse.org/t/rewrite-username-with-saml-openidc-logins/220999)._
