Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

Configure Google SSO with Frontline


Before we connect Google to your instance of Frontline, we need to build a few things in the Google Admin Console(link takes you to an external page) to make things run more smoothly.

To log in as a Frontline user, you must pass the roles attribute to Frontline in the SAML. We'll need to create this attribute ourselves.

  1. Navigate to theUser Schema page(link takes you to an external page) in your Google Admin Console.
  2. Click on ADD CUSTOM ATTRIBUTE
  3. In Category add Frontline
  4. Create the attribute below
  5. Click the Add button
NameInfo TypeVisibilityNo. of Value
RolesTextVisible to user and adminSingle value
Form to add custom fields with category 'Frontline' and field name 'Roles'.

Create a custom SAML app

create-a-custom-saml-app page anchor

Navigate to the Google Admin Console(link takes you to an external page), and click on Apps > Overview heading in the left sidebar. Then click on Web and mobile apps.

Google Admin dashboard highlighting Web and mobile apps for managing SAML, Android, and iOS apps.

Click the Add App heading and in the dropdown select Add custom SAML app.

Dropdown menu with option to add custom SAML app highlighted.

Basic information for your custom app

basic-information-for-your-custom-app page anchor

Set your App Name, for example this might be FrontlineSSO, or a name of your choosing. You might optionally add an icon, too. Click the Continue button.

Custom SAML app details with app name FrontlineSSO and app icon upload option.

Make a note of the SSO URL, Entity ID and Certificate, you'll need this information later. Click on the Continue button.

Google IdP setup with options to download metadata or copy SSO URL, entity ID, and certificate.

Service provider details

service-provider-details page anchor

Next, we need to set up the Service Provider Details. Frontline is the Service Provider in this instance.

Set the ACS URL to https://iam.twilio.com/v2/saml2/authenticate/JBxxx and replace the example Realm SID (JBxxx), with your own Realm SID, which you can find on the Frontline Console SSO configuration page(link takes you to an external page).

In the same way, set the Entity ID to https://iam.twilio.com/v2/saml2/metadata/JBxxx and replace the Realm SID (JBxxx) with your own Realm SID.

SettingValue
ACS URLhttps://iam.twilio.com/v2/saml2/authenticate/JBxxx
Entity IDhttps://iam.twilio.com/v2/saml2/metadata/JBxxx
Signed ResponseChecked!
Name ID FormatEMAIL
Name IDBasic Information & Primary email
Service provider details with ACS URL, Entity ID, signed response option, and Name ID format set to email.

Click the Continue button.

Now we need to add the attribute that will be passed from the SAML to Frontline. Create the required attribute (case sensitive) to pass to Frontline and map it to the appropriate field.

Google directory attributesApp attributes
Frontline > Rolesroles
Mapping Google directory attribute 'Roles' to app attribute 'roles' with add mapping option.

Click the Finish button.


Configure Frontline with your SSO settings

configure-frontline-with-your-sso-settings page anchor

Grab the URLs and Certificate you noted in the Google IdP Information section and configure SSO in the Frontline Console SSO configuration page(link takes you to an external page).

Form for configuring Twilio Frontline with SSO, including fields for Workspace ID, Realm SID, and SSO URL.

Click the Save button.


Add the mapped role to your G Suite Users

add-the-mapped-role-to-your-g-suite-users page anchor

Navigate back to the Google Admin Console(link takes you to an external page), and click on Directory > Users. Select a user and click into their User Information section.

Scroll to the attribute name you gave before, in this example it's Frontline, and click the edit icon to add agent as the role for the user.

Frontline roles input with 'agent' typed.

Click on the Save button.


Enable the App for everyone or for a specific group

enable-the-app-for-everyone-or-for-a-specific-group page anchor

In the Google Admin Console(link takes you to an external page), go to Apps > Web and mobile apps > FrontlineSSO (or to your application's name) > User access. In the Service status section, select the ON for everyone option and click the Save button.

Service status set to ON for everyone with save option highlighted.

Now, you should be able to log into Frontline using Google as the identity provider! 🎉


Error: app_not_enabled_for_user

error-app_not_enabled_for_user page anchor

The error above indicates that the service is not enabled for a user. To solve this problem, you need to enable the Service status to "ON for everyone", as it is described here.

Error 70252: SAML response missing 'roles' attribute, status 400.

For this error message, the solution is to update the User Information and add the agent role to the user, as it is described here.