Issue
You may encounter issues when trying to assign specific Flex Insights roles (such as wfo.quality_manager) to users created via the Twilio Console. After assigning the Support role in Console > Account Management > Manage Users, you may find the Flex worker attributes reverted to ["flex.readteams","flex.readonlyadmin"] upon login. Then users will not be able to access the Flex Insights analytics portal or dashboards. Attempts to manually update the roles are overwritten at login.
Product
Twilio Flex
Environment
legacy Twilio Console
Cause
This issue occurs because Flex user roles and Flex Insights permissions are determined by the method used to create and authenticate users:
-
Console Users: Users created and managed via the Twilio Console can only be assigned a limited set of roles. The Support role in Console results in read-only access (
flex.readteams,flex.readonlyadmin) and does not allow assignment of advanced Insights roles likewfo.quality_manager.- If a Console User has a role of "Support" They will have their roles defined as such: (
flex.readteams,flex.readonlyadmin - If the console User has a role of Admin or Developer there roles will be defined as such.
admin,wfo.full_access
- If a Console User has a role of "Support" They will have their roles defined as such: (
-
SSO Users: Only users authenticated via SSO (e.g., Google Workspace SAML) can be assigned more granular roles, such as
adminandwfo.quality_manager, through SSO attribute mapping. Console and SSO user roles are not synchronized, and manual changes to worker attributes are overwritten at login.
Resolution
To assign advanced Flex Insights roles (such as wfo.quality_manager) and grant access to analytics and dashboards:
-
Use SSO for User Authentication:
- Ensure the user logs in via your SSO provider (e.g., Google Workspace SAML), not via the Twilio Console login.
-
Configure SSO Attribute Mapping:
- In your SSO IdP, set up a multi-value text field for the
rolesattribute. - Assign the required roles (e.g.,
admin,wfo.quality_manager) to the user in your IdP. - Reference Flex SSO configuration documentation for details.
- In your SSO IdP, set up a multi-value text field for the
-
Remove Console User Role Conflicts:
- Avoid assigning the Support role in the Twilio Console for users who need advanced Insights access.
- If a user was previously created in Console, delete the worker in TaskRouter and have the user log in via SSO to create the correct worker profile.
-
Verify Access:
- After SSO login, confirm the user’s worker attributes include the correct roles.
- The user should now be able to access Flex Insights analytics and dashboards as intended.
Additional Information
- Only the following roles are available for Twilio Console users:
["flex.readteams","flex.readonlyadmin"]or["admin","wfo.full_access"]. - The
wfo.quality_managerrole is only available to SSO-authenticated users. - For granular permission control, always use SSO and configure roles in your IdP.
- For more information, see below documents: