Skip to main content

Set-up Single-Sign-On (SSO / SAML) with Microsoft Entra ID and Tribal Habits

In this article, we provide step-by-step instructions to set up SSO with Microsoft Entra ID (was Azure AD).

Written by Joey Halbert

THIS FEATURE REQUIRES A BUSINESS PLAN

Please note that single-sign-on (SSO) is only available on Business plans. This feature is not available on smaller plans (such as Lite). Please contact our team at [email protected] if you would like access to this feature but it is not activated in your portal.

We assume you have a working understanding of Microsoft Entra ID and have it established as your identity provider.

1 - Obtain your Tribal Habits SSO URL

Log in to your Tribal Habits portal as a Super Admin.

Note: If you get into trouble with your SSO set-up, you can always access your Tribal Habits portal at yourdomain.tribalhabits.com/accounts/sign_in_without_sso using your normal Tribal Habits login credentials. You may need to do this if your SSO is misconfigured.

Navigate to Admin → Account → Security and then click 'Manage' next to 'Enable SAML Single-Sign-On (SSO)'. Look for the Identity Provider Config panel at the end of that page. You will need the SSO URL and Log Out URL later.

2 - Set up Tribal Habits as an Enterprise application

Create a new Enterprise Application for Tribal Habits. In Microsoft Entra ID, select Applications Enterprise applications and then + New application.


Then select + Create your own application and name your application (something like Tribal Habits LMS).


3 - Enter Basic SAML Configuration

Select your new enterprise application, then Single sign-on and then SAML.


Edit the Basic SAML Configuration panel on the Single sign-on tab. You need to copy in three URLs from your Tribal Habits portal from step 1 in this process. The SSO URL goes into Identifier (Entity ID) and Reply URL. The Log Out URL goes into Logout URL.

4 - Enter the User Attributes and Claims

We now need to create four claims. Stay on the Single sign-on page in the enterprise application and edit the second panel called Attributes & Claims.


There are two parts.

First is the Required claim, which will have the Unique User Identifier (Name ID). You need to edit this value and select the data you wish to send for the UserName field in Tribal Habits. We recommend using a fixed identifier where possible, such as a user ID number, employee number, or the Entra Object ID, rather than email. See our main SSO article for why this matters. Your IT team can advise about the best field in Microsoft Entra ID to use for this.

Note: If you have existing users in Tribal Habits, edit their Username fields to match whatever field you select for the Unique User Identifier (Name ID) in Microsoft Entra ID, or their SSO login will fail with a duplicate user error. See our troubleshooting article if you run into this.

Second are the Additional claims. We required three additional claims. You can delete any default claims and then use the + Add new claim button to add three new claims.

Note: Ensure you spell all the Names and Values correctly. Exactly as below with the same capitalisation.

  • Claim Name: Email

    • Value: The field which has the user's email address in Microsoft Entra ID. This may be user.email or may be user.primaryauthoratativeemail or something else.

  • Claim Name: FirstName

    • Value: The field which has the user's first name. Likely to be user.givenname.

  • Claim Name: LastName

    • Value: The field which has the user's last name. Likely to be user.surname.

You can leave all other settings as default in most cases. Your claims should look something like this.

5 - Save the SAML Signing Certificate

Now you need the SAML Signing Certificate. Save the Base 64 Certificate. Go to step 3 in the Single sign-on page in Microsoft Entra ID and download the Base64 certificate.


Open the downloaded CER file in a plaintext editor. It will start with -----BEGIN CERTIFICATE-----, then have a long randomised set of characters, and then end with ----END CERTIFICATE-----.

Copy the entire file, including the BEGIN and END parts, back to Tribal Habits and into the SSO settings again. Now edit the Settings panel and enable SSO.

Then paste the entire certificate into the space for the certificate.

6 - Add the Identity Provider information

Now we need to copy the URLs in step 4 of the Microsoft Entra ID Single sign-on process to the matching fields in your Tribal Habits SSO page.

  • Login URL → Identity Provider SSO URL

  • Microsoft Entra ID Identifier → Identify Provider Entity ID

  • Logout URL → Identity Provider SLO URL

Save your SSO settings in Tribal Habits and you should be ready to test. Logout from Tribal Habits and reload the login page. The SSO process should start from here.

7 - Before you go live

Once SSO is working, review the Authentication settings in Admin → Account → Security, covered in our main SSO article. In particular, decide whether to prevent auto-provisioning of new users via SSO, since Entra syncs and other integrations should usually create and populate users before their first SSO login.

Did this answer your question?