SAML group mapping assigns Apidog team access from the groups included in a user's SAML assertion. It reduces manual team membership work while keeping the identity provider as the source of group membership.
This tutorial uses Microsoft Entra ID. You will add a groups claim, map an Entra group to an Apidog team, and verify the initial project permissions assigned at sign-in.
Before you start
You need:
- an Apidog Enterprise organization with SAML SSO already configured;
- Organization Owner or Organization Admin access in Apidog;
- administrator access to the Microsoft Entra enterprise application used for Apidog;
- at least one Entra group and a test user assigned to that group.
If SAML is not configured yet, complete Configuring Microsoft Entra ID first.
SAML group mapping controls access to Apidog teams and projects. It does not grant access to production APIs or replace runtime authorization.
How initial project access is assigned
When a group matches, Apidog adds the user to the mapped team and derives initial project access from the selected team role.
| Mapped team role | Initial project role |
|---|---|
| Team Admin | Project Maintainer |
| Team Member | Project Readonly |
| Team Guest | Project Readonly |
Apidog creates missing project memberships or updates project memberships that do not yet have a role. An existing manually assigned project role is not overwritten during later SAML sign-ins.
Step 1: Add the groups claim in Microsoft Entra ID
- Sign in to the Microsoft Entra admin center.
- Go to Enterprise applications and open the application used for Apidog SSO.
- Select Single sign-on, then open Attributes & Claims.
- Select Add a group claim.
- Choose All groups.
- Enable Customize the name of the group claim and enter
groupsas the claim name. - Save the claim.
Configure the group claim so Apidog receives Entra group Object IDs in the groups attribute.
Apidog uses the group Object IDs in this claim. It does not retrieve other information about the groups from Microsoft Entra ID.
Step 2: Copy the Entra group name and Object ID
- In Microsoft Entra ID, open Groups.
- Select the group that should receive access in Apidog.
- Copy its Name and Object ID.
Use the Object ID shown on the Entra group page. Do not use an application ID, tenant ID, or display name in place of the Object ID.
Keep this page available while you configure the mapping in Apidog.
Step 3: Map the group to an Apidog team
- Open the organization in Apidog.
- Go to the organization's SAML Group settings.
- Add a group mapping.
- Enter the Entra group name and paste its Object ID.
- Select the Apidog team or teams the group should access.
- Choose the required team role for each mapped team.
- Save the mapping.
Map the Entra group Object ID to the required Apidog teams and team roles.
There is no separate project-role selector in SAML group mapping. The initial project role comes from the team role shown in the table above. Adjust a user's project role later from project member settings when different access is required.
Step 4: Test the mapping
Use a test account rather than an administrator account.
- Confirm that the test user belongs to the mapped Entra group.
- Sign out of Apidog.
- Sign in through the organization's SSO entry point.
- Open the mapped team and confirm that it is available.
- Check the user's team role.
- Open the team's projects and confirm the initial project role.
If the user already had a manually assigned project role, confirm that the role remains unchanged after another SSO sign-in.
Verify membership removal
Group removal should also be tested before rollout.
- Remove the test user from the mapped Entra group.
- Allow the identity-provider change to complete.
- Have the user sign in through SSO again.
- Check the corresponding team membership and project memberships.
When a user is no longer included in a mapped group, Apidog may remove the user from the corresponding team during SAML synchronization. If the team membership is removed, project memberships in that team are also removed.
Do not use a production account for the first removal test. Record the observed result for your identity configuration and offboarding procedure.
Troubleshooting
| Problem | What to check |
|---|---|
| The user signs in but is not added to the team | Confirm the claim is named exactly groups, the assertion contains the expected Object ID, and the Object ID in Apidog has no extra spaces. |
| The assertion has no group values | Confirm the user belongs to the group and the Entra enterprise application is sending group claims. For users with many group memberships, review Microsoft's group-claim overage guidance. |
| The user has the wrong project role | Check the mapped team role. Existing assigned project roles are not overwritten by later SAML synchronization. |
| A group change is not reflected | Confirm the change has reached Entra, then start a new SSO sign-in so Apidog can synchronize the current assertion. |
| The user remains in the organization | SAML group mapping manages mapped team access. Organization membership may also be managed through invitations, SSO, or SCIM. |
Important limitations
- Apidog does not create or delete identity-provider groups through SCIM.
- SAML group mapping does not provide a separate role setting for each project.
- Existing assigned project roles are not reset on later SSO sign-ins.
- If several mappings could apply to the same user and team, test the result before rollout rather than assuming a precedence rule.
- Workspace roles do not authorize calls to deployed APIs.
Related API governance tutorials:
These tutorials cover complementary controls for governing an enterprise API workspace:
- API Governance Framework — connect ownership, controls, evidence, and lifecycle decisions.
- SAML Group Mapping with Microsoft Entra ID — assign team access from identity-provider groups.
- Secret Scanner — review possible exposed credentials in supported Apidog assets.
- Audit Logs — investigate and export administrative organization activity.
- SCIM Provisioning — manage organization users through the identity lifecycle.
- Enterprise Policies — configure credential, membership, SSO-session, and invitation controls.
- Self-Service API Teams — allow member-created teams while retaining ownership oversight.
- GitHub Enterprise Cloud Integration — connect supported GHE.com repositories for OpenAPI workflows.
Related official documentation:



