Set Up Entra ID (Azure AD) Directory
In this guide, you will configure Microsoft Entra ID (formerly Azure AD) as a SAML identity provider for Guardrails. This is a three-phase process: create a SAML enterprise application in Entra ID, create the directory in Guardrails, then update the callback URL in Entra ID.
If you want SAML group syncing after setup, see the group sync section at the end of this guide.
Prerequisites
- Signed in to Guardrails with
Turbot/Ownerpermissions at the Turbot (root) level. - Cloud application admin or application admin access in your Entra ID tenant.
Step 1: Create a SAML App in Entra ID
Add an Enterprise Application
-
Sign in to the Microsoft Entra admin center.
-
Navigate to Enterprise Applications > New application.
-
Select Create your own application.
-
Enter
Turbot Guardrailsas the display name. -
Choose Integrate any other application you don't find in the gallery and click Create.
Configure SAML Sign-On
-
On the application overview page, navigate to Manage > Single sign-on and select SAML.
-
In the Basic SAML Configuration section, click Edit and enter:
| Setting | Value |
|---|---|
| Identifier (Entity ID) | Your Guardrails workspace URL (e.g., https://your-workspace.cloud.turbot.com) |
| Reply URL (ACS URL) | Enter a placeholder for now (e.g., https://your-workspace.cloud.turbot.com/api/latest/directories/placeholder/saml/callback). You'll update this after creating the directory in Guardrails. |
| Sign on URL | Your Guardrails login URL (e.g., https://your-workspace.cloud.turbot.com/login) |
- Click Save.
Configure User Attributes and Claims
Guardrails requires specific SAML claims. The default Entra ID claims use schema-prefixed names that Guardrails doesn't recognize. You need to replace them.
-
In the Attributes & Claims section, click Edit.
-
Delete all default claims that start with
http://schemas.xmlsoap.org/. If these remain, Guardrails profiles will have blank data fields.

- Click Add new claim for each of the following. Attribute names are case-sensitive:
| Claim Name | Source Attribute | Notes |
|---|---|---|
email | user.userprincipalname or user.mail | Use user.mail if your users have mailboxes. Use user.userprincipalname if mail is not set. |
nameId | user.userprincipalname, user.mail, or user.samaccountname | Should uniquely identify the user. |
displayName | user.displayname | |
firstName | user.givenname | |
lastName | user.surname |
- Click Save.

Download the Certificate

-
In the SAML Signing Certificate section, download the Certificate (Base64) file. The contents start with
-----BEGIN CERTIFICATE-----. -
Also copy the Login URL from the Set up Turbot Guardrails section. This is the Entry Point.
Step 2: Create the SAML Directory in Guardrails
-
Navigate to Workspace > Directories.
-
Click Create Directory and select SAML.

- Fill in the directory details:
| Field | Description |
|---|---|
| Title | Displayed on the login screen. Example: Acme Corp Entra ID. |
| Description | Optional. |
| Entry Point | The Login URL from the Entra ID SAML configuration. |
| Issuer | Your Guardrails workspace URL (e.g., https://your-workspace.cloud.turbot.com). |
| Certificate | Paste the full Base64 certificate contents. |
| Profile ID Template | Default {{profile.email}} works for most cases. Cannot be changed after creation. |
- Configure optional settings:
| Option | Guidance |
|---|---|
| Name ID Format | Unspecified works for most setups. Switch to Email Address if needed. |
| Signature | Configure if your organization requires signed SAML requests. |
| Allow IdP-Initiated SSO | Enable if users will launch Guardrails from the Entra ID My Apps portal. |
| Require Signed Authentication Response | If enabled, set the Entra ID signing option to Sign SAML response and assertion. |
| Strict Audience Validation | Only enable if the Issuer matches your workspace URL exactly. |
-
Click Create.
-
Click the new directory to open its detail view. Copy the Callback URL.
Step 3: Update the Reply URL in Entra ID
-
Go back to the Entra ID SAML configuration for your Guardrails application.
-
In Basic SAML Configuration, click Edit.
-
Replace the placeholder Reply URL with the Callback URL from the Guardrails directory. The format is
https://{workspace-url}/api/latest/directories/{directoryId}/saml/callback. -
Click Save.
Step 4: Assign Users
-
In Entra ID, navigate to your Guardrails application > Users and groups.
-
Click Add user/group and assign the users or groups who should have access.
Step 5: Activate and Test
-
Back in Guardrails, navigate to Workspace > Directories.
-
Click the Activate action on the new SAML directory.
-
Open an incognito or private browser window.
-
Navigate to your Guardrails workspace URL.
-
Select the new directory from the login dropdown and sign in.
-
After signing in, verify the profile was created correctly. Check that the display name, email, first name, and last name are populated. If any fields are blank, adjust the SAML claims and sign in again.
-
The user has no permissions until an administrator grants them.
Group Sync (Optional)
To sync Entra ID groups to Guardrails profiles:
-
In the Guardrails directory settings, set Profile Groups Attribute to the attribute name you'll use for group claims, enable Allow Group Syncing, and optionally configure a Group Filter regex.
-
In Entra ID, go to Attributes & Claims > Add a group claim. Configure which groups to include and the attribute name to match what you set in Guardrails.

-
Ensure both users and groups are assigned to the enterprise application under Users and groups.
-
Groups sync on each user login, not proactively.
Troubleshooting
| Issue | Solution |
|---|---|
InResponseTo is missing from response | Enable Allow IdP-Initiated SSO in the Guardrails directory advanced settings. |
SAML assertion audience mismatch | Disable Strict Audience Validation, or ensure the Issuer matches the Identifier (Entity ID) in Entra ID. |
| Profile fields are blank after login | Delete the default schema-prefixed claims and add the required claims. Attribute names are case-sensitive. |
Signed authentication response is required | In Entra ID, set the signing option to Sign SAML response and assertion (not just the assertion). |
| User can sign in but can't see anything | Expected: they have no permission grants yet. Grant them permissions. |
Next Steps
- Grant a Permission, Give new users access after their first login.
- Profiles, Understand how profiles are created and managed.