SAML Assertions

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?

If you haven’t done so already you should check the reference documentation on customizing 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.