Skribble
User Management API

SCIM

SCIM (System for Cross-domain Identity Management) is a standard protocol that identity providers use to create, update, and remove user accounts in other applications. Skribble has a SCIM 2.0 interface. With it, your identity provider keeps the users and groups of your Skribble business in sync with your directory.

SCIM and the User Management API change the same users and groups. SCIM is for identity providers that call Skribble on their own. The User Management API is for your own code.

Skribble supports and tests SCIM with Microsoft Entra ID. For the step-by-step setup in Entra ID, see SCIM setup in the product documentation. This page describes the interface itself.

Availability

SCIM is available on the Scale plan. The Skribble team sets it up with you. To request it, contact support@skribble.com.

When Skribble enables SCIM for your business, you get a client ID and a client secret. The client ID identifies the SCIM client of your business. Keep the client secret in a secret store.

The tenant URL (the SCIM base URL) and the token endpoint depend on the data hosting region of your business:

RegionTenant URLToken endpoint
Switzerlandhttps://api.skribble.com/scim/v2https://kc.skribble.com/auth/realms/skribble/protocol/openid-connect/token
Germanyhttps://api.skribble.de/scim/v2https://kc.skribble.de/auth/realms/skribble/protocol/openid-connect/token

Use the URLs of the region in which your business is hosted. A token from one region does not work in the other region.

Authentication

SCIM uses the OAuth 2.0 client credentials grant. It does not use the API username and API key from Authentication. Your identity provider gets a token from the token endpoint and sends it as a bearer token with every SCIM request. The examples on this page use the Swiss region.

TerminalCode
TOKEN=$(curl -fsS -X POST "https://kc.skribble.com/auth/realms/skribble/protocol/openid-connect/token" \ --data-urlencode grant_type=client_credentials \ --data-urlencode "client_id=$CLIENT_ID" \ --data-urlencode "client_secret=$CLIENT_SECRET" | jq -er .access_token) curl -fsS "https://api.skribble.com/scim/v2/Users?filter=userName%20eq%20%22jane.doe%40example.com%22" \ -H "Authorization: Bearer $TOKEN" \ -H "Accept: application/scim+json"

Skribble accepts only tokens that were issued to a SCIM client. A token from the API login, or from a user's login, gets 401.

Protocol

The interface follows SCIM 2.0. The protocol, the endpoints, and the request and response formats are defined in two standards:

  • RFC 7643: SCIM core schema, the resources and their attributes
  • RFC 7644: SCIM protocol, the endpoints, filters, PATCH operations, and errors

All paths start with the tenant URL, for example https://api.skribble.com/scim/v2/Users. Skribble supports the resource types User (/Users) and Group (/Groups).

Discovery

The discovery endpoints from RFC 7644, section 4 describe what the interface supports. Read them to see the current state, because they always match the running service.

EndpointContent
GET /scim/v2/ServiceProviderConfigThe supported protocol features and limits
GET /scim/v2/ResourceTypesThe resource types User and Group, with their schemas
GET /scim/v2/SchemasOnly the attributes that Skribble reads
TerminalCode
curl -fsS "https://api.skribble.com/scim/v2/ServiceProviderConfig" \ -H "Authorization: Bearer $TOKEN" \ -H "Accept: application/scim+json"

Differences from the full standard

Skribble does not support every optional part of SCIM 2.0:

FeatureSupportedDetails
PATCHYesUsers return 200 with the user. Groups return 204 with no body.
PUTNoReturns 501 Not Implemented. Send changes with PATCH.
FilterOnly eqOne equality filter per request. Users: userName or externalId. Groups: displayName or externalId.
PaginationYesstartIndex and count. count is at most 200.
BulkNo
SortNo
ETagNo
Change passwordNoUsers sign in through SSO, or set a password on the Skribble login page.
Group members in listsNoGET /Groups returns groups without members. Read a group by id to get them.

User attributes

Skribble reads the attributes in the tables below. It accepts other attributes of the SCIM core User schema and of the enterprise extension, but ignores them. An attribute outside the User schema, or an invalid value, returns 400.

The attributes come from three schemas. In a request, the attributes of an extension go in an object named after the schema URN, as in the example below.

Core schema

Schema URN: urn:ietf:params:scim:schemas:core:2.0:User

AttributeSkribble fieldNotes
idUser IDSet by Skribble
externalIdexternal_idThe stable link to the user in your directory. Unique in your business.
userNameemailThe matching key and the user's Skribble email. Skribble changes it to lowercase.
activestatusfalse suspends the user, true reactivates the user.
name.givenNamefirst_name
name.familyNamelast_name
phoneNumbers[type eq "mobile"].valuemobileCountry code plus number, digits only, for example 41781122304. Other phone types are ignored.
preferredLanguagelangen, de, fr, or it. A region is removed, for example de-CH becomes de. Other languages are ignored.
roles[].valuerolesadmin, creator, or signer. See Roles.

Enterprise extension

Schema URN: urn:ietf:params:scim:schemas:extension:enterprise:2.0:User

AttributeSkribble fieldNotes
costCentercost_centerThe only attribute of this extension that Skribble reads

Skribble extension

Schema URN: urn:ietf:params:scim:schemas:extension:skribble:2.0:User

AttributeSkribble fieldNotes
defaultLegislationdefault_legislationzertes or eidas, in any case
defaultQualitydefault_qualityses, aes, or qes, in any case
lastLoginAtlast_login_atRead-only
lastInvitationAtlast_invitation_atRead-only

In attribute mappings, for example in Microsoft Entra ID, write an extension attribute as the schema URN, a colon, and the attribute name: urn:ietf:params:scim:schemas:extension:skribble:2.0:User:defaultQuality.

Values

Skribble takes the email only from userName. It ignores emails.

A Skribble user always has a first name, a last name, a language, and signature defaults. If you send an empty value for one of these, Skribble keeps the current value and applies the rest of the change. An empty mobile number or cost center clears the field.

Example: create a user

TerminalCode
curl -X POST "https://api.skribble.com/scim/v2/Users" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/scim+json" \ -d '{ "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:extension:skribble:2.0:User" ], "externalId": "8f1e4c2a-5b6d-4e7f-9a0b-1c2d3e4f5a6b", "userName": "jane.doe@example.com", "name": { "givenName": "Jane", "familyName": "Doe" }, "preferredLanguage": "en", "active": true, "roles": [{ "value": "creator", "primary": true }], "urn:ietf:params:scim:schemas:extension:skribble:2.0:User": { "defaultQuality": "qes" } }'

Roles

The roles attribute sets the Skribble role. The values are admin, creator, and signer. They mean the same as in the User Management API.

  • If a user has more than one role value, Skribble gives the user the highest role: admin, then creator, then signer.
  • A role without a value, for example the Entra ID role "Default Access", counts as signer.
  • Skribble ignores other role values.
  • To change a role, send the full list of roles with an add or replace operation. Skribble rejects a remove operation on roles.

Skribble does not store display, type, or primary of a role.

Group attributes

SCIM attributeSkribble fieldNotes
idGroup IDSet by Skribble
externalIdexternal_idThe stable link to the group in your directory. Unique in your business.
displayNamenameUnique in your business. The comparison ignores case. A duplicate returns 409 with scimType uniqueness.
members[].valueMemberThe SCIM id of a user in your business

A Skribble group has no role. Roles always come from the user's roles attribute.

A member must already be a user of your business. A user outside your business, or an invited user who did not accept the invitation yet, returns 400 with scimType invalidValue. Adding a user who is already a member succeeds.

Group changes need the groups feature in your plan. Without it, Skribble returns 400. The limits of your plan on the number of groups and members also apply.

Effect of each request

SCIM requestEffect in Skribble
POST /UsersSame as creating a user with the User Management API. On your managed domains, the user is added at once and gets no email. On other domains, the user gets an invitation email.
POST /Users with active: falseSkribble creates the user and then suspends them.
PATCH /Users/{id} with attributesSkribble updates the user.
PATCH /Users/{id} with active: falseSkribble suspends the user. The login is blocked. Open signature requests stay.
PATCH /Users/{id} with active: trueSkribble reactivates the user.
DELETE /Users/{id}Same as deleting a user with the User Management API. On your managed domains, Skribble deletes the account and its data.
DELETE /Groups/{id}Skribble deletes the group. Its members stay in your business.

Before you send DELETE /Users/{id} for a user on one of your managed domains, make sure that you want to delete the account. Skribble deletes the account and its data, and you cannot undo this. To only block access, set active to false.

For an invited user who did not accept the invitation yet, active: false withdraws the invitation, the same as suspending the user with the User Management API. The invitation link stops working, and Skribble returns 200 with the status suspended. DELETE /Users/{id} also withdraws the invitation.

Errors

Errors use the SCIM error format from RFC 7644 with the urn:ietf:params:scim:api:messages:2.0:Error schema.

StatusscimTypeCause
400invalidFilterThe filter is not one equality filter on a supported attribute.
400invalidValueA value has the wrong format, or a group member is not a user of your business.
401The token is missing, expired, or not from a SCIM client.
403The SCIM client has no access, for example because SCIM is not enabled for your business.
404The user or group does not exist in your business.
409uniquenessWhen you create a user, or create or rename a group: the email, externalId, or group name is already in use.
409Another conflict, for example cannot delete or remove the business's last admin. The detail field contains the message.
501PUT is not supported.
502Skribble is temporarily not available, or the rate limit was reached. Your identity provider retries in the next cycle.

Next steps