/iblai-vibe:iblai-vibe-rbacfrom ibl.ai vibe
Reference for ibl.ai RBAC: default seeded roles, action-definitions endpoint, and SDK components (Admin, RolesTab, PoliciesTab) for drop-in Roles & Policies management UI.
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.
Read when SKILL.md points to them.
Reference skill for the ibl.ai role-based access control system. Lists
the default RBAC roles the platform seeds (Tenant Admin, Students,
Mentor Editor / Mentor Viewer, Analytics Viewer, Notification Manager,
Enrollment Manager, CRM roles, etc.) and points to the live endpoint
that returns every action definition. Use this when you need to
build, audit, or extend RBAC behavior — most apps only need the SDK's
drop-in management UI (<Admin> → Roles + Policies tabs) plus
per-resource gating via checkRbacPermission. Mention or open this
skill before writing custom RBAC UI from scratch.

Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
For 99% of apps the management UI doesn't need to be hand-rolled. The
SDK ships the components that the Account dialog uses (the screenshot
above is the Policies tab inside <Admin>):
| Component | Description |
|---|---|
<Admin> | Full management surface — Users, Groups, Roles, Policies, Teams, Alerts. Tabs are permission-gated via the has*TabPermission props (e.g. hasRolesTabPermission, hasPoliciesTabPermission). Pass enableRbac + rbacPermissions to drive those flags from checkRbacPermission results. Already mounted inside the SDK <Account> modal — most apps reach it via /iblai-vibe-account. |
<RolesTab tenant={key} /> | Standalone Roles tab — table of roles for the organization + create/edit/delete dialogs. The "actions" / "data_actions" pickers list every action definition from the endpoint below. |
<PoliciesTab tenant={key} /> | Standalone Policies tab — bind a role to a set of resources for users/groups. Resources are hierarchical (/platforms/<pk>/mentors/<pk>/) and the picker handles that. |
All three live in @iblai/iblai-js/web-containers. For agent-scoped
sharing (editor / chat roles on a single agent) use <AgentAccessTab>
from /iblai-vibe-agent-access instead — it wraps the underlying
Ibl.Mentor/ShareMentor/... API. For per-action permission gating in
your own UI use checkRbacPermission(rbacPermissions, path, enableRbac)
from @iblai/iblai-js/web-utils.
The full list of every action the platform recognizes:
GET https://api.$DOMAIN/dm/api/core/rbac/actions/definitions/
Authorization: Token <dm-token>
($DOMAIN is DOMAIN from iblai.env, default iblai.app.)
Use this when authoring a custom role's actions / data_actions
array or when validating that an action string is real before you ship
it in a policy migration. <RolesTab> calls this endpoint internally
to populate its action picker.
The seed bundles the platform ships with. Use them as starting points
when authoring new roles via <RolesTab> or POST rbac/roles/ (see
/iblai-vibe-agent-access → "Roles CRUD" for the REST contract).
Full Python definitions of every default role (with their actions and
data_actions arrays) live in
references/default-roles.py.
Open or copy that file when you need the exact action strings.
| Role | Summary |
|---|---|
TENANT_ADMIN | Ibl.* everywhere — full organization control. |
STUDENT | Chat + read settings/prompts/tools/disclaimers/MCP for agents granted to them; reads field-level agent + settings data. |
STUDENT_MENTOR_VIEWERS | List agents (filtered to what they have access to). |
MENTOR_VIEWER | Read-only agent + settings + prompts + documents + reports + chat. Apply to /platforms/{pk}/mentors/{pk}/. |
MENTOR_EDITOR | Agent read + write across settings, prompts, documents, artifacts, disclaimers, grader. Apply to /platforms/{pk}/mentors/{pk}/. |
MENTOR_CREATORS | Create new agents (Ibl.Mentor/Mentors/action). |
MENTOR_ANALYTICS_VIEWER | View per-agent analytics; subsumes STUDENT. |
ANALYTICS_VIEWER | View the analytics dashboard. Pair with Ibl.Analytics/Core/read or Ibl.Analytics/Reports/read on a user/team scope. |
READ_ANALYTICS | Per-target analytics + report reads. Apply to /platforms/{pk}/users/{pk}/ or /platforms/{pk}/usergroups/{pk}/. |
NOTIFICATION_MANAGER | Send notifications + manage templates (scope-gated). |
SEND_NOTIFICATIONS | Send notifications to a specific user / team. Apply to /platforms/{pk}/users/{pk}/ or /platforms/{pk}/usergroups/{pk}/. |
ENROLLMENT_MANAGER | Manage course / pathway / program enrollments and invitations. |
LIST_USERS / LIST_TEAMS | List users / teams for pickers. |
CREATE_TEAMS | Create a UserGroup (team). |
READ_TEAM / EDIT_TEAM | Per-team read / write. Apply to /platforms/{pk}/usergroups/{pk}/. |
GROUP_MENTOR_MANAGER | List + read RBAC groups. |
LLM_USERS / LLM_MODEL_ACCESS | List or read individual LLM providers / models the user is allowed to use. |
SELL_ITEMS | Gate that allows selling items on the platform. |
BILLING_MANAGER | Read + write platform credit settings. |
CRM_VIEWER / CRM_USER / CRM_MANAGER / CRM_INVITER | Tiered CRM access — read / use / administer / invite leads. |
WATCHED_GROUP_LIST / WATCHED_GROUP_READ | List / read watched groups for alerts. |
WATCHED_GROUP_WATCHER_GRANTS | Extra analytics grants given to watchers on a WatchedGroup. |
references/default-roles.py for known-good
examples). Use Ibl.* wildcards sparingly — they bypass field-level
reads./platforms/{pk}/.... Granting on
/platforms/{pk}/mentors/ covers every agent; granting on
/platforms/{pk}/mentors/{pk}/ scopes to one.<RolesTab> (UI) or POST rbac/roles/ (API).
Body: { name, platform_key, actions[], data_actions[] }. See
/iblai-vibe-agent-access → "Roles CRUD" for the full REST contract.<PoliciesTab> (UI) or
POST rbac/policies/. Body: { platform_key, name, role_id, resources[], user_ids[], group_ids[] }. Resources must start with
/platforms/ and end with /.checkRbacPermission(rbacPermissions, path, enableRbac) after calling POST rbac/permissions/check/ to
hydrate rbacPermissions. The permissions object on each resource
response also exposes per-field / per-object flags you can use
directly./iblai-vibe-agent-access -- agent-scoped sharing (editor / chat roles on
a single agent) via <AgentAccessTab>. Documents the underlying
REST contract (rbac/roles/, rbac/policies/, rbac/groups/,
rbac/mentor-access/, rbac/teams/access/, etc.)./iblai-vibe-account -- mounts the SDK <Account> modal that hosts the
<Admin> management UI (Users · Groups · Roles · Policies · Teams ·
Alerts).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