# SAML Assertions

**URL:** <https://community.auth0.com/t/saml-assertions/9096>\
**Category:** Get Help\
**Tags:** saml\
**Created:** [December 30, 2017, 9:24am UTC](https://community.auth0.com/t/saml-assertions/9096 "2017-12-30T09:24:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonySuper](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tonysuper/32/12714_2.png) [@tonySuper](https://community.auth0.com/u/tonySuper)\
**Post date:** [December 30, 2017, 9:24am UTC](https://community.auth0.com/t/saml-assertions/9096/1 "2017-12-30T09:24:56Z")

</div>

I’m a novice at best when it comes to SAML. I need to add a “Role” and a “username” assertion. The username will match the user’s email address, and the role will be a hardcoded value as that needs to stay the same.

Can someone assist me with the exact syntax for doing so?

---

<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:** [January 2, 2018, 8:13pm UTC](https://community.auth0.com/t/saml-assertions/9096/2 "2018-01-02T20:13:05Z")

</div>

If you haven’t done so already you should check the [reference documentation on customizing SAML assertions](https://auth0.com/docs/protocols/saml/saml-configuration/saml-assertions) when Auth0 is acting as the identity provider.

In particular you can map profile attributes to specific attribute statements so it would be a case of mapping email address to username and include a user profile attribute with a constant role so that you can then also map it to the role assertion attribute.

---

<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/saml-assertions/9096/3 "2018-03-02T05:57:59Z")

</div>


