Directory Sync (SCIM)
Let your identity provider create, update, and deactivate Muin members automatically. Issue a provisioning token, map each directory group to a team, and the team's roles apply to its members.
Directory sync (Settings → Security → Directory sync) lets your identity provider manage who is in your Muin workspace. When someone joins, they appear. When they leave, their access ends, without anyone remembering to do it.
Directory sync is an Enterprise capability, and it builds on Single Sign-On (SAML): turn SSO on first.
Setting it up
- Turn on single sign-on. Directory sync provisions the accounts that SSO then signs in.
- Issue a provisioning token. The token is shown once, at the moment you create it. Muin stores only a hash, so it cannot be shown again. Copy it into your IdP then; if it is lost, rotate rather than hunt for it.
- Give your IdP the base URL shown beside the token.
- Map directory groups to teams. Under Map directory groups to teams, add each group by the name your identity provider sends and choose the team it fills, or Create a team for this group. Each row shows the roles the team gives and how many members are on it through directory sync.
- Turn directory sync on.
Groups fill teams
Each directory group fills one team, and the team’s roles apply to its members. Roles are set on the team’s page, not on the mapping, so a role reaches a member the same way whether they were added by hand or by your directory. On the member’s page those roles show From team and the team name.
- A group with no mapping grants nothing. Someone who is only in unmapped groups gets the default role and nothing more.
- A new team gives no roles until you add some on its page.
- A team can never give the Owner or Admin access level.
- Who is on a team a group fills is changed in your identity provider, not in Muin.
- A rule-based team cannot be filled by a group. Pick a hand-picked team.
- Each group fills one team; map a group name once.
Hand-added members stay. When someone leaves a group, Muin takes them off the team only if directory sync put them there, along with the roles the team gave them. People you added to the team by hand stay on it. Moving a group to a different team asks you to confirm first and says how many members leave the old team at the next sync.
What your IdP can do
| Your IdP does | Muin does |
|---|---|
| assigns the app to a person | creates the member |
| changes a name or email | updates the member |
| changes group membership | adds them to or takes them off the mapped team, and with it the team’s roles |
| unassigns or deactivates | deactivates the member and ends their sessions |
Deactivation is real
A deprovisioned member cannot sign in, and their existing sessions end. Their employment record is ended too: their end date is set and they stop counting as a current employee, so headcount, team lists, benefits eligibility and reporting all agree with your directory instead of showing somebody who has already left.
Their records stay: deactivating a person never deletes the work they did, which is what an audit of last year needs.
If your organization needs the employment side handled separately from the identity side, say so before you turn directory sync on: the two moving together is the default and it is deliberate.
Rotating and revoking the token
- Rotate issues a new token and invalidates the old one: use it when a token may have been exposed, or on your normal credential schedule.
- Revoke ends directory sync entirely. Your IdP stops being able to change anything, and existing members are left exactly as they are.
Both ask you to confirm first, because both interrupt provisioning until your IdP has the new value.
Related
- Single Sign-On (SAML): the sign-in half of the same IdP connection.
- Team: the member list, where directory-managed members are labelled as such.
- Teams: give a team its roles; a directory group fills it.
- Audit Logs & Security: every provisioning action is recorded.