User Provisioning
Let Okta or Microsoft Entra ID add members, archive them when they leave, and keep groups in step with managed roles.
QueryDesk speaks SCIM 2.0 for users and groups. Once it is on, your identity provider decides who is a member: assigning someone to the QueryDesk app makes them a member holding a seat, and unassigning or deactivating them archives the membership and frees the seat.
Turn on SCIM provisioning
A super admin opens Settings > OIDC and clicks Turn on SCIM provisioning. The SCIM setup dialog shows two values:
- Base URL, which is
https://<your QueryDesk>/scim/v2/orgs/<organization id>. - Token, which starts with
dhscim_.
Copy the token before you click Done. It is shown once, and the page only shows it masked afterwards. If you lose it, rotate it.
Each active member the directory adds takes a seat. When every seat is taken, QueryDesk buys one, as Invite user does. A person the directory sends as deactivated takes no seat. See Seats and billing.
Okta
In your QueryDesk app in Okta, turn on SCIM provisioning on the General tab. Then on the Provisioning tab, under Integration, enter:
| Field | Value |
|---|---|
| SCIM connector base URL | The base URL from the SCIM setup dialog |
| Unique identifier field for users | userName |
| Supported provisioning actions | Push New Users, Push Profile Updates, Push Groups |
| Authentication Mode | HTTP Header |
| Authorization | The token from the SCIM setup dialog, with or without Bearer in front |
Click Test Connector Configuration, then Save. Under Provisioning > To App, turn on Create Users, Update User Attributes and Deactivate Users.
Assign people to the app to add them. To keep roles in step, push groups from the Push Groups tab.
Microsoft Entra ID
In your QueryDesk enterprise application, open Provisioning and set Provisioning Mode to Automatic. Under Admin Credentials, enter:
| Field | Value |
|---|---|
| Tenant URL | The base URL from the SCIM setup dialog |
| Secret Token | The token from the SCIM setup dialog |
Click Test Connection, then Save. Leave the default mappings: users match on userName, and groups match on displayName. Set Provisioning Status to On.
QueryDesk takes a user's userName as the email they sign in with. Entra ID sends the user principal name there by default. If yours differ from people's email addresses, map mail to userName instead.
Seats and billing
Each active person the directory adds takes a seat. When every seat is taken, QueryDesk adds one to your bill, the same way Invite user does. Two people added at the same moment each get their own seat. A person the directory sends as deactivated joins under Archived with no seat, and takes one when the directory reactivates them.
On the Free plan, with its one seat taken, a request to add an active person is refused and nobody is added. Upgrade in Settings > Billing to add more.
An active person the directory adds shows under Members in Settings > Users with a SCIM badge, even before they first sign in. A person sent as deactivated shows under Archived with the same badge.
Deactivating and reactivating
When your identity provider deactivates or unassigns someone, QueryDesk archives their membership and frees their seat. They can no longer sign in to QueryDesk or connect an MCP client.
Reactivating them claims a seat, bought if none is free, and restores the membership. On the Free plan with no seat free, they stay archived.
Two cases are refused:
- The last active super admin. QueryDesk keeps at least one, so a directory mistake or a leaked token can't lock everyone out. Make someone else a super admin first. Group changes are held to the same rule, as Groups and managed roles says.
- A seat that can't be freed. If the licensing service can't be reached, nothing is archived and QueryDesk answers 503. Okta and Entra ID retry it.
Archive a provisioned member in your identity provider, not in QueryDesk. Its next sync may bring them back.
Groups and managed roles
Each group you push becomes a managed role with the group's name, and the role's members follow the group. Groups match on displayName, the default in Okta and Entra ID.
- A managed role of the same name is adopted, ignoring case, so a role sign-in created from your group claim carries on as the group's role.
- A role an admin made by hand with the same name is never taken over. The push is refused, and that role keeps its members and grants. Rename one of them to push the group.
- Removing a group takes everyone out of its role, and your identity provider no longer finds the group. The role and its grants stay, so an admin decides whether to delete it. Pushing the group again picks the role back up.
- Members come from your directory. A managed role's page has no Assign user. It says to add users to the group in your identity provider, and Invite user and a member's Roles dialog don't offer the role. Someone you take out of the role in QueryDesk comes back the next time your directory sends them in the group, or at their next sign-in while SCIM is off.
- The last active super admin keeps super admin. If removing a group, taking members out of it or replacing its members would leave no active super admin, the request is refused and nothing changes. Make someone else a super admin first. Replacing one super admin in the group with another goes through.
The directory never makes anyone a super admin, manager or billing admin. A member holds those only through a role an admin set up. If an admin gives a managed role super admin, everyone the directory puts in that group becomes a super admin.
While SCIM provisioning is on, sign-in no longer reads the group claim, so the claim and your pushed groups can't undo each other. Turn SCIM off and sign-in sets managed roles from the group claim again.
Names and emails
QueryDesk sets a person's name and email when the directory adds someone it has never seen. A person may belong to other organizations, so a later name or email change from the directory is accepted and ignored.
Just-in-time membership
On a self-hosted install, QueryDesk can also add people the first time they sign in. Turn on Add people automatically on sign in in Settings > OIDC and click Save, or set OIDC_JIT_MEMBERSHIP to true in the application config secret if the Helm chart sets your OIDC.
With it on, anyone who signs in through your instance's OIDC with no membership becomes a member with no roles, taking a seat as an invite does. When no seat can be had, they reach the no-license page, as they do with it off.
- Someone already a member, archived or not, is left as they are. An archived member stays archived.
- Signing in through an authenticating proxy header never adds a member.
- QueryDesk Cloud has no just-in-time membership. Its single sign-on goes through licensing, which adds nobody.
Everyone your identity provider allows to sign in can join. Keep this off if your provider accepts accounts from outside your company, such as guests or a multi-tenant Entra ID app.
Rotate or turn off the token
Rotate token replaces the token. The current one stops working immediately, and the SCIM setup dialog shows the new one once. Paste it into your identity provider. Until the identity provider uses it, the band reads No requests yet.
Turn off SCIM deletes the token, so your identity provider's next request is refused. Members and roles stay as they are.