45050: Authentication error - Missing User Attributes
FLEX
ERROR
Flex returns this error when the authentication response for a user does not include the required user attributes. For Flex authentication and user provisioning, the required attributes include roles, full_name, and email.
- Your identity provider or authentication service did not send one or more mandatory attributes, such as
roles,full_name, oremail. - The attribute names in your SAML assertion were mapped incorrectly, so Flex could not interpret them. For example, Flex expects attribute names such as
rolesrather than a namespaced claim URL. - The
rolesattribute was not passed in the claims, or it was not provided in a format Flex can interpret as a list of roles. - Your user provisioning flow omitted required fields or sent empty values for
full_name,email, orroles. The Flex Users API requires all three fields when you provision a user.
- Update your identity provider or custom authentication service to send
full_name,email, androlesfor every Flex user who signs in. - Verify that your SAML assertion uses the expected attribute names and remove namespace-style claim names that prevent Flex from mapping the attributes correctly.
- Make sure
rolesincludes at least one valid Flex role. Valid roles includeagent,supervisor, andadmin. - If you provision users through the Flex Users API, include the required
email,full_name, androlesfields in the/Users/Provisionrequest before you mint the user's authentication token. - Sign in again and confirm that the user record shows the expected full name, email, and assigned roles. You can verify these attributes in Flex UI or in the TaskRouter Worker record.