SCIM provisioning

Connect your identity provider with SCIM 2.0 so people are created, updated and removed in an organization, and groups keep teams in step.

Single sign-on lets people in. SCIM provisioning keeps the list of people right afterwards: when your provider creates, changes or deactivates a person, Wardn does the same in your organization, without anyone opening the web app. Groups in your provider can keep Wardn teams in sync.

Set up single sign-on and verify at least one domain first. SCIM uses the same domains and the same roles-from-groups rules.

Open Settings › Provisioning. Only an Owner can see and change it (sso:manage). The page shows Connected or Not connected, the provider's name with SCIM 2.0, and when it last synced.

Connect your provider

Make the connection

Under Connection, choose Connect. Wardn makes a token and shows it once, with the Base URL to give your provider:

FieldValue
Base URL<public url>/api/auth/scim/v2
TokenA bearer token, shown once at the moment you connect

<public url> is the address people open. Copy the token now: Wardn keeps only a digest, so it cannot show it again. The page shows a masked hint of it afterwards, with who made it and when.

Paste both into your provider

In your provider's SCIM or provisioning app, set the SCIM base URL, choose bearer-token authentication, and paste the token. Most providers have a Test connection button. Then assign people or groups to the app to start provisioning them.

Choose what the provider may do

Under What your provider can do, set the three switches below. Set them before you assign anyone.

An organization has one SCIM connection. It belongs to that organization alone: everything it creates, changes or removes happens inside it.

What your provider can do

Each switch limits what the provider's requests do.

SwitchWhen onWhen off
Create peopleNew people from your provider join the organization with the role their groups give them.The provider does not add people.
Remove peopleRemoving or deactivating someone in your provider removes them from your organization, ends their sessions here and revokes their tokens for it.Removing someone in the provider changes nothing here.
Push groups as teamsGroups the provider pushes keep the teams you map them to in sync.Team membership is not changed from groups.

Creating people

Creating a person is allowed only for an email on a domain your organization verified, and the address must pass the install's domain allowlist. The role comes from their groups exactly as in single sign-on: the highest matching role, else the Default role, set at Settings › Single sign-on › Roles.

An account that already exists on a verified domain is linked, never duplicated. The person keeps their memberships in other organizations.

The membership is recorded in Activity as scim.user.create.

Updating people

Each change in the provider is applied as the person's full state: whether they are active, and which groups they are in. Their role in your organization is worked out again from their groups, so moving someone from one group to another changes their role the next time the provider syncs. A role change is recorded in Activity as member.role, with the way it was made.

An Owner stays an Owner. Groups can never lower an Owner's role, so a change in your provider cannot lock the organization out of its own settings.

Removing people

Removal is scoped to your organization, and only to that:

  • Their membership and their places on teams in your organization are removed.
  • Their sessions whose active organization is yours end. Their other sessions are left alone.
  • API keys scoped to your organization are revoked.
  • The account, their other organizations and their sign-in methods are untouched.
  • Nothing bans an account. SCIM never bans anyone, and nothing in the open product does.

Each removal is recorded in Activity as scim.user.remove, with how many sessions ended and how many keys were revoked. With Remove people off, a removal in the provider changes nothing here.

Turn Remove people on only after you have checked which people and groups are assigned to the provider's SCIM app. Unassigning a person there removes them from your organization.

Groups and teams

When Push groups as teams is on, groups your provider pushes show under Groups and teams with the Group, the Team it keeps in sync, the number of People and the Last sync. Choose a team for each group in the Team column, or leave it as Not mapped.

  • A mapped group keeps its team's membership in step with the group. People who join the group are added to the team, and people who leave it are removed.
  • Only teams you mapped are changed. A person who joined another team by hand stays on it.
  • An unmapped group does nothing to teams. Nothing creates a team for you, and nothing deletes one.
  • A group can also give a role: map the same group name under Roles in single sign-on. Roles and teams are separate mappings.

Team roles such as Lead are still set by people; see Members and teams.

Recent events

Recent events lists what the provider asked for: When, Event, Person and Result. Use it to see why someone was not created, or to confirm a removal arrived. A link opens Activity, where the changes to members and teams are recorded.

Rotate the token

Choose Rotate, then Rotate token. The old token stops working at once and the new one is shown once. Paste it into your provider so syncing carries on. Rotate when someone who knew the token leaves, or if it may have been seen.

Creating, rotating and revoking the credential are each authorized and recorded in Activity. To stop provisioning, remove the SCIM connection in your provider.

API

The page reads and writes its settings through the API. The connection and the token themselves are managed by the sign-in service in the web app, which first asks Wardn to authorize and record the change.

api() { curl -fsS -H "Authorization: Bearer $WARDN_TOKEN" -H 'Content-Type: application/json' "$@"; }

api "$WARDN_API_URL/api/v1/scim"
api -X PUT "$WARDN_API_URL/api/v1/scim/settings" \
  -d '{"createPeople": true, "removePeople": true, "pushGroups": true}'
api -X PUT "$WARDN_API_URL/api/v1/scim/group-teams" \
  -d '{"items": [{"groupId": "g-1042", "groupName": "payments-eng", "teamId": "'"$TEAM_ID"'"}]}'

The provider itself talks to <public url>/api/auth/scim/v2 with the token, using the SCIM 2.0 protocol. All three Wardn endpoints need sso:manage.

Next

On this page