Set Up AWS IAM Identity Center (SSO) Directory
In this guide, you will configure AWS IAM Identity Center (formerly AWS SSO) as a SAML identity provider for Guardrails. This is a three-step process: create the SAML directory in Guardrails, configure a custom SAML application in AWS, then update the Guardrails directory with the AWS SSO metadata.
Prerequisites
- Signed in to Guardrails with
Turbot/Ownerpermissions at the Turbot (root) level. - Administrator access to the AWS organization management account containing IAM Identity Center.
Step 1: 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 AWS SSO. |
| Description | Optional. |
| Entry Point | Leave blank or enter a placeholder. You'll update this with the AWS SSO sign-in URL in step 3. |
| Issuer | Leave blank or enter a placeholder. You'll update this with the AWS SSO issuer URL in step 3. |
| Certificate | Leave blank. You'll add this in step 3. |
| Profile ID Template | Default {{profile.email}} works for most cases. Cannot be changed after creation. |
- Configure Advanced settings as needed:
| Option | Guidance |
|---|---|
| Allow IdP-Initiated SSO | Enable if users will launch Guardrails from the AWS access portal. |
| Require Signed Authentication Response | Enable if your organization requires it. |
| Strict Audience Validation | Only enable if the Issuer matches your workspace URL. |
-
Click Create.
-
Click the new directory to open its detail view. Copy the Callback URL.
Step 2: Configure the SAML Application in AWS
-
Sign in to the AWS management account and navigate to IAM Identity Center.
-
Go to Applications > Add a new application > Add a custom SAML 2.0 application.
-
Set the Display Name and Description (e.g.,
Turbot Guardrails). -
Under Application metadata, select If you don't have a metadata file, you can manually type your metadata values.
-
Paste the Callback URL from Guardrails into both:
- Application ACS URL
- Application SAML audience
-
Go to the Attribute Mappings tab and configure the following. Note that the attribute names in the first column are case-sensitive:

| Attribute | Maps to | Format |
|---|---|---|
Subject | ${user:email} | emailAddress |
email | ${user:email} | unspecified |
firstName | ${user:givenName} | unspecified |
lastName | ${user:familyName} | unspecified |
displayName | ${user:displayName} | unspecified |
nameId | ${user:email} | unspecified |
-
Click Save Changes.
-
Copy the following from the application's SSO configuration:
- AWS SSO sign-in URL (this becomes the Entry Point)
- AWS SSO issuer URL (this becomes the Issuer)
- Download the AWS SSO certificate
Step 3: Update the Guardrails Directory
-
Back in Guardrails, navigate to Workspace > Directories and click the AWS SSO directory to edit it.
-
Update the following fields:
| Field | Value |
|---|---|
| Entry Point | The AWS SSO sign-in URL. |
| Issuer | The AWS SSO issuer URL. |
| Certificate | The AWS SSO certificate contents. |
- Click Update.
Step 4: Activate and Test
-
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, and other fields are populated.
-
The user has no permissions until an administrator grants them.
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 Application SAML audience in AWS. |
| Profile fields are blank after login | Verify the attribute mappings in AWS IAM Identity Center. Attribute names are case-sensitive. Refer to the AWS SSO Attribute docs. |
| Login fails with a redirect error | Verify the Application ACS URL in AWS matches the Callback URL from the Guardrails directory exactly. |
| Directory doesn't appear on the login screen | Confirm the directory is Active on the Workspace > Directories page. |
Next Steps
- Grant a Permission: Give new users access after their first login.
- Profiles: Understand how profiles are created and managed.