Table of Contents
At a glance
Don't have the time to read the entire post? Our human writers will be sad, but we understand. Summarize the post with your preferred LLM here instead.
Before an identity provider (IdP) can provision users into an app over System for Cross-domain Identity Management (SCIM), it needs to know what the app’s SCIM server manages, which fields it accepts, and whether it handles partial updates. Schema discovery is how the IdP finds out. Instead of relying on someone to read the app’s docs and configure everything by hand, the IdP asks the server directly.
The SCIM protocol specification defines three endpoints for this, each answering one question. Together, they do roughly what the discovery document does for OpenID Connect (OIDC): describe a server well enough that a client can work with it.
At a glance
SCIM schema discovery lets a SCIM client, usually an IdP, learn what a SCIM server supports at runtime.
It uses three read-only endpoints, which describe the server’s features, its resource types, and its schemas.
OIDC puts its discovery in one document at a fixed address. SCIM splits it across three endpoints under the server’s base URL.
Clients usually already know the standard user and group schemas, so discovery matters most for custom attributes.
IdPs vary in how much of discovery they use. Okta relies on it for integrations with entitlements, and Microsoft Entra ID uses it for certain gallery applications.
The three discovery endpoints
Each endpoint answers a different question. The table runs from the most general to the most specific. All three are read-only and sit under the server’s base URL.
Endpoint | The question it answers |
|---|---|
/ServiceProviderConfig | How does this server behave? |
/ResourceTypes | What does this server manage? |
/Schemas | What fields does each of those things have? |
Not every client calls every endpoint. Many skip the parts they already know.
/ServiceProviderConfig: how the server behaves
This endpoint tells the client which optional SCIM features the server supports, such as PATCH (partial updates), bulk operations, filtering, and sorting, and how the client should authenticate.
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"
],
"patch": {
"supported": true
},
"bulk": {
"supported": false
},
"filter": {
"supported": true,
"maxResults": 200
},
"sort": {
"supported": false
},
"authenticationSchemes": [
{
"type": "oauthbearertoken",
"name": "OAuth Bearer Token"
}
]
}From this example (simplified for readability), a client learns that it can send partial updates and filter queries, but should send changes one request at a time rather than in bulk.
/ResourceTypes: what the server manages
This endpoint lists the kinds of resources the server handles, usually users and groups, along with where each one lives and which schema describes it.
{
"id": "User",
"endpoint": "/Users",
"schema": "urn:ietf:params:scim:schemas:core:2.0:User",
"schemaExtensions": [
{
"schema": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User",
"required": false
}
]
}Here the client learns that users live at /Users, follow the standard core User schema, and can optionally carry the enterprise extension. Those schema URIs are what the client looks up next.
/Schemas: what fields each resource has
This endpoint turns those URIs into full field definitions. For each attribute, it says what type of data it holds, whether it’s required, whether it can hold more than one value, and whether the client is allowed to change it. A client can fetch all schemas at once or ask for one by its URI.
For the standard schemas, many clients don’t need this call at all, because the user and group schemas are defined in the SCIM core schema specification, so every server shares them. /Schemas matters when a server adds fields of its own.
Core schemas and extensions
The SCIM standard keeps the core User schema small: things like username, name, and email addresses. Fields that only some organizations need, such as department, cost center, and manager, live in the standard enterprise extension instead. Servers can also define custom extensions for app-specific fields.
In a user record, extension fields sit under the extension’s URI rather than mixed in with the core fields:
{
"userName": "jordan@example.com",
"name": {
"givenName": "Jordan",
"familyName": "Lee"
},
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
"department": "Finance"
}
}This is why custom extensions are where discovery matters most. A client can’t know about fields that only exist on one app’s server unless that server describes them.
How identity providers use discovery
Discovery is part of the standard, but each IdP decides how much of it to use.
Okta uses /ResourceTypes and /Schemas as part of its SCIM integrations with entitlements. Because Okta already knows the core and enterprise User schemas, a server only needs to describe the extensions Okta doesn’t know. Okta Support has to enable user schema discovery for an org, and an app with no custom extensions can skip /Schemas.
Microsoft Entra ID uses schema discovery on certain gallery applications and doesn’t currently support it for custom, non-gallery SCIM apps. Where it does run, newly discovered attributes show up in the admin’s attribute mapping. Discovery only adds attributes and never removes them.
Servers vary, too, and don’t always publish all three endpoints. Descope’s inbound SCIM server, for example, receives users and groups provisioned from IdPs such as Okta and Entra ID. It documents /ServiceProviderConfig and /ResourceTypes under its SCIM base URL in the SCIM API reference. For how provisioning fits into tenant management, plus setup guides for Okta and Entra ID, see Descope’s SCIM documentation. To try SCIM provisioning in your own app, sign up for a Free Forever account or book time with our auth experts.



