/iblai-vibe:iblai-api-scimfrom ibl.ai vibe
Provisions and manages an ibl.ai organization's directory via the SCIM 2.0 REST API — users (with Enterprise User extension) and RBAC groups, including group membership that auto-links users to platforms.
Ships in ibl.ai vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Provision and manage an organization's directory over the SCIM 2.0 REST API: users (modeled on the SCIM User schema plus the Enterprise User extension) and RBAC groups (exposed via the SCIM Group schema), including RBAC group membership that automatically links users to the platforms behind those groups. Use when standing up or syncing directory provisioning for an org — creating or deactivating users, managing RBAC group membership, or wiring an identity provider's SCIM provisioning.
Scope is exactly two resources:
UsersandGroups. The SCIM app in the DM service registers only these two — there are no Departments, DepartmentMembers, or GroupMembers SCIM endpoints. (Departments and non-RBAC groups still appear inside a user's Enterprise-extension response block, but they are read-only there; there are no SCIM routes to manage them.)
https://api.iblai.app/dm — these are Data Manager (DM)
endpoints, so the /dm prefix is required; the /api/orgs/…/scim/v2/…
paths below are appended to it (e.g.
https://api.iblai.app/dm/api/orgs/{platform_key}/scim/v2/Users).PlatformApiKeyAuthentication,
OAuth2ClientCredentialAuthentication):
Authorization: Api-Token $IBLAI_API_KEY — the Platform API Token used by
the other iblai-* skills; orAuthorization: Bearer <oauth2-token> — an OAuth2 client-credentials token.Content-Type: application/scim+json on every write
(the server also accepts plain application/json)./api/orgs/{platform_key}/scim/v2/... where
{platform_key} = $IBLAI_ORG (the org key). The token's scope must match the
platform_key in the URL.Users and Groups. Do not lowercase them./Users, /Groups); single-resource detail routes require a
trailing slash (/Users/{id}/, /Groups/{id}/). The group action routes
(/Groups/{id}/add_members, /Groups/{id}/remove_members) have no trailing
slash./iblai-api-login first to populate IBLAI_ORG,
IBLAI_USERNAME, and IBLAI_API_KEY.User resources use the SCIM core User schema
(urn:ietf:params:scim:schemas:core:2.0:User) with the Enterprise User
extension on responses
(urn:ietf:params:scim:schemas:extension:enterprise:2.0:User).
/api/orgs/{platform_key}/scim/v2/Users — list users (filtering,
sorting, and pagination supported — see Notes)./api/orgs/{platform_key}/scim/v2/Users/{id}/ — retrieve one user.Response — Enterprise extension. The extension block is returned under the
key urn_ietf_params_scim_schemas_extension_enterprise_2_0_User (underscores,
not colons) and carries:
edxData — edX-specific user data.userData — additional user metadata.departments — departments the user belongs to (id, name, $ref, isAdmin).groups — user-groups the user belongs to (id, name, $ref).rbacGroups — RBAC groups (id, uniqueId, name, description, platformKey).platforms — platforms the user can access (id, key, name, org).(On create/update/PATCH responses these lists are returned empty; the populated lists come back on GET list/retrieve.)
The Group resource maps to the platform's RBAC groups and is exposed via the
SCIM Group schema (urn:ietf:params:scim:schemas:core:2.0:Group). The SCIM id
field is the RBAC group's unique_id (not a numeric id). These endpoints
manage existing RBAC groups only — POST does not create a new group; if the
referenced group's unique_id does not exist you get a 404 SCIM error.
/api/orgs/{platform_key}/scim/v2/Groups — list RBAC groups
(filtering supported; pass excludedAttributes=members to omit the member list)./api/orgs/{platform_key}/scim/v2/Groups/{id}/ — retrieve one RBAC
group by unique_id./api/orgs/{platform_key}/scim/v2/Users — create (or, with
"update": true, modify an existing) user./api/orgs/{platform_key}/scim/v2/Users/{id}/ — replace a user's core
fields (userName, name.formatted, primary emails value, active); only
the fields present in the body are changed./api/orgs/{platform_key}/scim/v2/Users/{id}/ — patch a user. Accepts
either a SCIM PatchOp body (Operations with op/path/value; supported
paths: userName, name.formatted, emails[type eq "work"].value, active,
displayName, and externalId — where externalId is treated as an RBAC group
unique_id to add the user to) or a plain partial body (userName, name,
emails, active, displayName)./api/orgs/{platform_key}/scim/v2/Users/{id}/ — not supported;
returns 405 Method Not Allowed. (User deactivation is done by setting
active: false, not by DELETE.)Request body for POST (key attributes):
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"userName": "[email protected]",
"name": { "formatted": "John Doe", "givenName": "John", "familyName": "Doe" },
"emails": [{ "value": "[email protected]", "primary": true }],
"password": "securepassword123",
"provider": "google-oauth2",
"tpaUid": "[email protected]",
"isStaff": false,
"active": true,
"update": false,
"platformOrgs": ["org1", "org2"],
"departmentIds": [1, 2, 3],
"groupIds": [1, 2, 3],
"rbacGroupUniqueIds": ["students", "course_123_enrolled"]
}
Field notes: userName is the unique username/email (required); emails is
required; name is required (may be partly blank); password / provider /
tpaUid / isStaff are optional and forwarded to the LMS on create;
active toggles account activation (set false to deactivate); update: true
modifies an existing user instead of creating (skips the duplicate check);
platformOrgs links the user to those org platforms; departmentIds /
groupIds assign existing departments / user-groups by integer id (validated —
unknown ids return 400); rbacGroupUniqueIds assigns RBAC groups by unique id
and auto-links the required platforms (see Notes). On a create that finds the
user already exists, the API returns the existing user with HTTP 200 and still
applies the link fields, rather than erroring.
POST /api/orgs/{platform_key}/scim/v2/Groups — manage an existing RBAC
group: optionally update its displayName / description and set its full
member list. The group is located by id (or externalId), both of which map
to the RBAC group's unique_id.
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"],
"id": "students",
"displayName": "Students",
"description": "All enrolled students",
"members": [{ "value": "user-id-1", "display": "[email protected]" }]
}
members[].value is resolved as a user id, then username, then email; if no
user matches, one is created from the member data. The member list passed here
replaces the group's current membership.
PUT /api/orgs/{platform_key}/scim/v2/Groups/{id}/ — update an existing RBAC
group's displayName / description, and (if members is present) replace
its complete member list (same body shape as POST, without needing id in the
body — the id comes from the URL).
PATCH /api/orgs/{platform_key}/scim/v2/Groups/{id}/ — patch an RBAC group.
Accepts a SCIM PatchOp body whose Operations support
replace on displayName / description / members (replace whole list),
add on members, and remove with a members[value eq "<user-id>"] path —
or a plain partial body (displayName, description, members).
POST /api/orgs/{platform_key}/scim/v2/Groups/{id}/add_members — add members
via a SCIM PatchOp (only op: add, path: members operations are applied).
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{ "op": "add", "path": "members",
"value": [{ "value": "user-id-3", "display": "[email protected]" }] }
]
}
POST /api/orgs/{platform_key}/scim/v2/Groups/{id}/remove_members — remove
members via a SCIM PatchOp. Each operation must be op: remove with a path of
the form members[value eq "<user-id>"].
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{ "op": "remove", "path": "members[value eq \"user-id-1\"]" }
]
}
DELETE /api/orgs/{platform_key}/scim/v2/Groups/{id}/ — hard-delete the RBAC
group (returns 204). Confirm with the user first.
Create a SCIM user with RBAC groups (which auto-link the user's platforms):
curl -X POST \
"https://api.iblai.app/dm/api/orgs/$IBLAI_ORG/scim/v2/Users" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-H "Content-Type: application/scim+json" \
-d '{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"userName": "[email protected]",
"name": { "formatted": "Jane Smith", "givenName": "Jane", "familyName": "Smith" },
"emails": [{ "value": "[email protected]", "primary": true }],
"active": true,
"rbacGroupUniqueIds": ["students", "course_123_enrolled"]
}'
{"schemas": ["urn:ietf:params:scim:api:messages:2.0:Error"], "scimType": "invalidValue", "detail": "..."} with 404. Other failures return
a plain {"error": "..."} body. Standard HTTP codes apply: 400
invalid/missing fields (e.g. unknown departmentIds / groupIds /
rbacGroupUniqueIds), 401 missing/invalid auth, 404 not found, 405
on DELETE Users/{id}/, 409 the user already exists on create (on a local
match the API instead returns the existing user with 200 — use update: true
to modify), 500 server error.update: true,
or via PUT Users/{id}/ / PATCH Users/{id}/. Groups are edited via
PUT Groups/{id}/ (replaces the whole members list) or PATCH Groups/{id}/;
incremental membership changes go through the dedicated
add_members / remove_members actions, which take a PatchOp body
(urn:ietf:params:scim:api:messages:2.0:PatchOp with an Operations array of
op / path / value).rbacGroupUniqueIds on a user validates the groups exist, then automatically
creates platform links for any platforms behind those RBAC groups the user
isn't already linked to — so you can grant RBAC access without listing
platformOrgs explicitly. RBAC assignment runs after all other linking. Default
RBAC groups (server-configured) are applied to every user on platform link;
rbacGroupUniqueIds is additive on top of those.(unique_id, platform_key) first; if the server has strict platform matching
disabled, they fall back to matching unique_id on any platform.filter
expressions (e.g. userName eq "john.doe", displayName eq "Students"; user
filters support userName, name.formatted, emails.value, active, id,
externalId; group filters support displayName, id, description).
Users list also honors startIndex / count pagination (1-based;
defaults startIndex=1, count=50), sortBy (userName, name.formatted,
active) / sortOrder (ascending / descending), and attributes /
excludedAttributes. Groups list does not paginate (it returns all
matching groups) but does honor excludedAttributes=members.urn_ietf_params_scim_schemas_extension_enterprise_2_0_User —
not the colon-delimited URN.https://base.manager.iblai.tech/api-docs/#/scim.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub iblai/base --plugin iblai-vibe166 skills in this plugin
/iblai-api-agent-accessManage role-based access to an ibl.ai agent via the platform API — list role policies, search users/groups, and grant/revoke editor, chat, or analytics_viewer roles for users, groups, and emails. Use when controlling who can edit, chat with, or view analytics for an agent./iblai-api-agent-auditRead an ibl.ai agent's audit log via the platform API — a who-changed-what trail filterable by action, actor email, and date range. Read-only. Use when investigating configuration changes to an agent./iblai-api-agent-chatSet up live chat with a deployed ibl.ai agent by wiring the hosted iblai-api-agent-chat MCP server into the project (.mcp.json / claude mcp add) using the .env Api-Token and a chosen agent's unique id, or by signing in from claude.ai, ChatGPT or Claude Desktop with only the URL. Use to enable runtime conversations with an agent, and to list or disconnect the apps a user has connected. The actual chatting then happens through the MCP server's tools.Other plugins' skills for the same job