i am using this doc to provide get custom saml assertion, https://auth0.com/docs/protocols/saml-configuration-options/customize-saml-assertions
and i get the above error when i paste this block
function (user, context, callback) {
user.user_metadata = user.user_metadata || {};
user.user_metadata.color = “purple”;
context.samlConfiguration.mappings = {
“http://schemas.xmlsoap.org/ws/2005/05/identity/claims/color”: “user_metadata.color”, // use user.user_metadata.color as the value
};
callback(null, user, context);
}
so basically i’d need the user and role attached to the role in the custom assertion
2nd question would be to help me understand how to add set of users to the app