Group Mappings
Group mappings connect identity provider (IdP) groups to Shoehorn teams. A mapped team follows its group: people in the group join the team, and people who leave the group leave the team, along with the roles the team gives them.
How It Works
Section titled “How It Works”- Map an IdP group to a Shoehorn team.
- Shoehorn reads the group’s members from your IdP every few minutes, and when you click Sync Now on the team’s Group Mappings tab.
- People in the group are added to the team, and anyone no longer in the group is removed from it.
Creating a Mapping
Section titled “Creating a Mapping”Via the UI
Section titled “Via the UI”- Go to Admin > People & Access > Teams and open a team.
- Go to the Group Mappings tab.
- Click Add Mapping and pick the IdP group.
Via the API
Section titled “Via the API”curl -X POST https://shoehorn.example.com/api/v1/admin/teams/<team-id>/mappings \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "idp_group_id": "00g1abcd2efgh3ijk4l5", "idp_group_name": "engineering-platform", "provider": "okta", "sync_enabled": true }'Viewing Mappings
Section titled “Viewing Mappings”curl https://shoehorn.example.com/api/v1/admin/teams/<team-id>/mappings \ -H "Authorization: Bearer <token>"Syncing Now
Section titled “Syncing Now”curl -X POST https://shoehorn.example.com/api/v1/admin/teams/<team-id>/mappings/sync \ -H "Authorization: Bearer <token>"Removing a Mapping
Section titled “Removing a Mapping”curl -X DELETE https://shoehorn.example.com/api/v1/admin/teams/<team-id>/mappings/<mapping-id> \ -H "Authorization: Bearer <token>"Removing a mapping also removes the people it added to the team, unless another of the team’s mappings still lists them.
Supported Identity Providers
Section titled “Supported Identity Providers”| Provider | Group Claim | Notes |
|---|---|---|
| Zitadel | groups |
Groups managed in Zitadel organizations |
| Okta | groups |
Okta group names sent via OIDC |
| Microsoft Entra ID | groups |
Azure AD security groups |
| Keycloak | groups |
Keycloak realm groups |
Mapping Rules
Section titled “Mapping Rules”- A team can have several group mappings. Someone stays on the team while any of them lists them.
- People you add to a team by hand stay until you remove them. A sync never removes them.
- If you remove someone that a mapped group still lists, the next sync adds them back. Take them out of the group in your IdP instead.
- A sync only removes people when your IdP has returned the full member list of every group mapped to the team. If your IdP can’t be reached, or one of the groups has more than 1,000 members, nobody on that team is removed.
- After the background sync removes someone, their roles can take up to five minutes to update. Sync Now updates them right away.
Tenant Configuration
Section titled “Tenant Configuration”The tenant ID strategy determines how Shoehorn extracts the tenant from JWT claims. This is configured via environment variables:
| Strategy | Env Var | Description |
|---|---|---|
provider_claim |
TENANT_ID_CLAIM_KEY=azp |
Use a specific JWT claim |
urn_claim |
TENANT_ID_CLAIM_KEY=urn:zitadel:iam:org:id |
Extract from URN claim |
group_prefix |
TENANT_GROUP_PREFIX=tenant: |
Extract from group prefix |
env_var |
DEFAULT_TENANT_ID=default |
Use environment variable |