SCIM provisioning is available on the Business plan only. If your organisation is on a lower tier, upgrade before attempting to configure a SCIM integration.
Prerequisites
Before you configure SCIM, make sure the following are in place:- Your Knoq organisation is on the Business tier.
- Enterprise SSO is configured for your organisation. SCIM tokens are issued under your SSO settings, so SSO must be active first. Navigate to Admin → SSO to set this up if you haven’t already.
- You have Admin access to your Knoq organisation and to your Identity Provider’s admin console.
Generate a SCIM token
- Sign in to Knoq and navigate to Admin → SSO → SCIM.
- Click Generate Token.
- Copy the token immediately — it is shown only once. If you lose it, generate a new one (which invalidates the previous token).
Base URL
All SCIM requests target:Authentication
Include your SCIM token as a Bearer token in every request:401 Unauthorized response.
Supported operations
| Resource | Operation | Method | Path |
|---|---|---|---|
| Users | Provision (create) | POST | /api/scim/Users |
| Users | Read (single user) | GET | /api/scim/Users/{id} |
| Users | List all users | GET | /api/scim/Users |
| Users | Update profile | PUT | /api/scim/Users/{id} |
| Users | Deactivate (deprovision) | PATCH | /api/scim/Users/{id} |
| Users | Delete | DELETE | /api/scim/Users/{id} |
| Groups | List | GET | /api/scim/Groups |
PATCH or PUT request with "active": false, Knoq treats it as a full deprovision: OAuth tokens, agent memory, member profile, and the organisation membership are all deleted, and the member is removed from your organisation.
Example: provision a user
The following request creates a new user in your Knoq organisation. The user receives aviewer role by default and can be promoted to admin from the Knoq Admin panel.
Example: deprovision a user
Send aPATCH request with "active": false to remove a user from your organisation:
IdP setup guides
Okta
- In the Okta Admin Console, go to Applications → Applications and create a new app integration using the SCIM 2.0 template (or select your existing Knoq SAML app if you have one, and enable SCIM provisioning on its Provisioning tab).
- Set the SCIM connector base URL to
https://knoq.one/api/scim. - Set the Unique identifier field for users to
userName. - Under Authentication Mode, select HTTP Header and paste your Knoq SCIM token.
- Enable Push New Users, Push Profile Updates, and Push User Deactivation.
- Assign the Knoq app to the groups or users you want to provision.
Microsoft Entra ID (Azure AD)
- In the Microsoft Entra admin center, navigate to Enterprise applications and open your Knoq application (or create a new non-gallery app).
- Go to Provisioning and set the Provisioning Mode to Automatic.
- Under Admin Credentials, set the Tenant URL to
https://knoq.one/api/scimand paste your Knoq SCIM token in the Secret Token field. - Click Test Connection to verify the credentials.
- Under Mappings, confirm that
userPrincipalNamemaps touserName. - Save and set the Provisioning Status to On.