IT and security
SCIM vs SAML: what each does, and where OIDC fits
By Yvion SpacePublished Updated 5 min read
Two problems, not one
SAML and OIDC are single sign-on protocols: they let an identity provider tell an application who a user is. SCIM is not a sign-in protocol at all. It creates, updates and deactivates the accounts themselves.
These three standards sit side by side on security questionnaires, so they are often treated as alternatives. They are not. Sign-in asks whether this is really the person. Provisioning asks whether this person should have an account here, and with what details. A complete setup needs both answers.
How SAML works
SAML 2.0 is the older of the two sign-in protocols and is common in established enterprises. The application sends the user to the identity provider. The provider signs the user in and posts a signed XML statement, called an assertion, back through the browser.
The application checks the signature, the issuer, the audience and the expiry before it lets the person in. Setup usually means exchanging metadata files between the two sides and agreeing which attribute carries the email address.
How OIDC works
OpenID Connect is built on OAuth 2.0 and uses signed JSON tokens. The application sends the user to the provider, the provider signs them in, and the application exchanges a one-time code for a token that names the person.
Newer cloud identity providers make OIDC quick to configure, often a few fields: an issuer address, a client identifier and a secret. It also suits mobile and single-page applications better than SAML. The same checks apply as for SAML: issuer, audience and expiry.
How SCIM works
SCIM is a standard web interface for managing users and groups. The identity provider calls the application to create a user when someone joins, update their details when they change role, and deactivate them when they leave.
Without SCIM, accounts appear on first sign-in or are made by hand, and leavers can keep dormant accounts that still count towards licences or hold personal data. With it, the directory is the source of truth and the application follows it.
Which to choose
The choice between SAML and OIDC is usually practical. If your identity system was set up around SAML, or a partner can only offer SAML, use SAML. If your provider is a modern cloud one, OIDC is usually quicker. Many products accept both, so check which your vendor offers.
SCIM is not a choice against either. Pair one sign-in protocol with SCIM so that access ends when the directory says it should. Single sign-on alone stops a leaver signing in through the provider, but their account, and anything attached to it, remains.
Plan for the awkward cases too. Contractors, partners and customers’ learners often sit outside your main directory, so decide whether they sign in through your provider, through another one, or with a separate login, and who removes them when the engagement ends.
What to ask a vendor
Ask which plan includes each feature, because single sign-on is sometimes held back for the most expensive tier. Ask whether SCIM covers groups as well as users, and whether groups can map to roles.
Ask whether the vendor has tested the setup with your identity provider, and what it does not yet do. Common gaps are role mapping at sign-in and single logout. A plain answer to those questions tells you more than a logo wall.
A worked example
Suppose a retailer sets up a learning platform. Its IT lead chooses OIDC for sign-in because the company’s cloud identity provider makes it a few fields of setup, and turns on SCIM so new store managers get an account when HR adds them to the directory.
When a manager leaves and HR closes the record, the identity provider tells the platform, which deactivates the account. A partner organisation whose own identity system only speaks SAML is connected separately. One person set it all up in an afternoon, and nobody has to remember to remove leavers.
Common mistakes
The most common mistake is turning on sign-in and stopping there. Single sign-on controls how people enter, not whether they still have an account, so leavers linger until someone notices.
Others are forgetting that the person’s email address is the join key, so a change of email in the directory can create a duplicate, and trusting a feature list instead of testing with a real directory. Create a test user, change their details, deactivate them, and check that each step shows up on the other side.
How Personal Academy handles it
Personal Academy offers single sign-on and SCIM from the Basic plan, with no separate enterprise tier. An administrator sets up OIDC in the admin area with an issuer, client identifier, secret and claim names. SAML 2.0 runs through the authentication service, and its registration is attempted there and reports clearly when it cannot complete.
The SCIM 2.0 endpoint creates, updates and deactivates users, manages groups, and maps groups to roles. Deactivation removes memberships and roles at once and keeps the account row for the audit trail.
Not yet built: role mapping at sign-in from SAML attributes or OIDC group claims, and single logout. Both features are built rather than verified with a named identity provider, so test with yours first.
Questions
What is the difference between SCIM and SAML?
SAML signs a person in by passing a signed statement from the identity provider to the application. SCIM manages the account itself, creating it when someone joins, updating it when they change and deactivating it when they leave.
Is OIDC better than SAML?
Neither is better in general. OIDC is usually quicker to set up with modern cloud providers and suits mobile apps. SAML is common in established enterprises, and some partners offer only SAML. Many products accept both.
Do I need SCIM if I already have single sign-on?
Single sign-on stops a leaver signing in through the provider, but their account remains. SCIM removes or deactivates it automatically when the directory changes, which protects licences and personal data.
Which does Personal Academy offer?
OIDC and SAML sign-in and SCIM 2.0 provisioning, from the Basic plan. Role mapping at sign-in and single logout are not yet built, and the setup is built but not verified with a named provider.