/selise-blocks:blocks-iam-access-controlfrom selise-blocks
Manages SELISE Blocks RBAC roles and permissions via the blocks CLI or blocksClient.iam SDK, covering permission-gated UI and role admin.
Ships in selise-blocks. 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.
When invoking a project-scoped blocks command, either use the resolved account's saved selection or pass --project <tenantId> for that one command without changing saved state. --project applies to CLI commands only, never SDK calls.
Local snapshot: blocks/iam/ holds a read-only snapshot of the project's roles, permissions, resource groups and features, written by blocks pull --only iam. Read it for context before listing things one by one; check its _meta.tenantId and _meta.pulledAt, and pull again if it's stale or after you change anything. Never edit it to change the project: editing does nothing, so use the commands below. Secret fields in it are ***.
This skill covers permission and role definitions in SELISE Blocks — the RBAC model itself, not who has which role (that's the blocks-iam-users skill). Everything goes through either blocks iam roles/permissions * (CLI) or blocksClient.iam.* from @seliseblocks/client, the single SDK instance every blocks new web scaffold wires up at src/lib/blocks/client.ts and exports as blocksClient. No raw fetch/curl for either surface.
For CLI work, if account or project context is unknown, use blocks-bootstrap first. Do not add login or project-selection logic to this skill.
import { blocksClient } from "../../lib/blocks/client";
Role and permission administration is not portal-only or app-UI-only — blocks has a full, working CLI surface for it too. There are two equally real surfaces for the same operations, and the choice is about where the human is, not which one is "allowed" — see flows/manage-roles-permissions.md for the full command reference and the CLI-vs-SDK decision.
Identity-provider/OIDC client provisioning is a different concern entirely — driven through blocks auth oidc-clients/auth idp (the portal is an alternative, not a requirement), and owned by the blocks-iam-sso-oidc-configuration skill. Unrelated to roles/permissions; do not bolt it onto this skill.
Keep the two facets below (read-only feature-gating vs. sensitive admin mutations) separate in your head (and in your code) — they have very different risk profiles regardless of which surface (CLI or SDK) you're using.
Read-only, scoped to whoever is signed in, needs no special confirmation. useCurrentUser() + iam.resources.features() + iam.roles.assignable().
→ Full walkthrough: flows/feature-gating.md
Legitimate only in direct response to a human's explicit, in-the-moment instruction — CLI (--dry-run reviewed, then --yes) or a signed-in admin's own in-app screen. Never something an agent decides to invoke on its own initiative.
Sensitive means confirmed, not refused: any permission the seeded clouduser system user holds is assignable to any role, with no restricted subset — isBuiltIn: true and clouduser in a permission's roles[] are never grounds to decline a grant. The judgement call is which permissions a given role needs (Endpoint for the APIs its users call, FrontendAction for the UI they see, DataProtection for unmasked fields), not whether built-ins may be granted.
→ Full command reference, SDK methods, choosing a role's permission set, 403 triage, and the confirm-before-mutating pattern: flows/manage-roles-permissions.md
blocks iam me prefers that token when a project resolves and uses the account token only without a resolved project.slug, not itemId.--type 1 Endpoint is gateway-enforced (missing ⇒ 403); --type 2 FrontendAction is SPA-gate-enforced (missing ⇒ control silently hidden). Most features need the type 1 and type 2 permission, plus any dependentPermissions.blocks auth oidc-clients/auth idp, not through roles and permissions.order::delete permission." → Facet 1content-editor role from the CLI with these permissions." → Facet 2support role get 403 calling the inventory API — fix the role." → Facet 2; find the --type 1 permission for that endpoint and grant it (plus its dependencies).manager role everything clouduser has." → assignable, but push back on scope: propose the least-privilege set for what managers actually do and confirm that list first.--dry-run), then run each blocks iam roles create/assign-permissions with --yes only after they say go — don't auto-provision without that per-change confirmation.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selisedigitalplatforms/blocks-skills --plugin selise-blocks25 skills in this plugin
/blocksStart here for any SELISE Blocks work. Routes a plain-language request — sign-in and projects, SSO, users, roles, MFA, data schemas and records, file storage, translations, mail, notifications, workflows, functions, proxies, secrets, deployments — to the right Blocks skill, and carries the rules every Blocks skill follows: the blocks CLI and @seliseblocks/client SDK only, never raw HTTP to the platform API; --dry-run before --yes; never read the CLI's credential files; when to report a finding. Use whenever work touches SELISE Blocks, the blocks CLI, or @seliseblocks/client./blocks-bootstrapGet a user from any starting state to a working SELISE Blocks setup — CLI installed, logged in, project selected — using the `blocks` CLI, never raw fetch/curl. Detects state from `blocks auth status --json` and `blocks doctor --json`, then routes to a flow: select or create a project, inventory a project that already exists, resolve the app's OIDC client, add a social identity provider, create the first end user, scaffold a new web app, or wire an existing one. Use for a new user, for `not_logged_in`/`project_not_selected`, or whenever login/project/app state is unclear./blocks-captchaConfigure the login captcha of a SELISE Blocks project through the blocks CLI ('captcha list/get/save/enable/disable/delete'): register a reCAPTCHA or hCaptcha site key and secret, switch it on or off, see which configuration blocks-iam actually enforces at login, and retire one. CLI-only, project-scoped; the captcha secret is stored server-side and never shown. Use for 'enable captcha on login', 'change the recaptcha keys', 'why is captcha not showing', 'turn captcha off'./blocks-data-gateway-configurationConfigure a SELISE Blocks project's data model via the blocks CLI — never raw fetch/curl against api.seliseblocks.com. Covers data-source config (data config get/create/update), schema authoring and push (data schema list/pull/push, plus granular get/fields/info/indexes commands), data-access policies (data rules pull/deploy/policy), field-level validation rules (data validation *), and reloading so changes go live (data reload, or the composed data sync). Use for defining, editing, securing, validating, or reloading a project's DATA MODEL — schema fields, access policies, and validation rules./blocks-data-gateway-crudImplement create/read/update/delete against a SELISE Blocks project's runtime Data Gateway using the @seliseblocks/client SDK. Use data.collection(schemaName) for straightforward per-item CRUD, data.graphql() for joins or custom query shapes, and data.schemas.*/data.validations.* for schema/validation metadata. Shows how to wire CRUD into the React 18 + Vite + TanStack Query app that blocks new web scaffolds. Use whenever the user wants to read or write actual records through a Blocks Data schema from app code./blocks-data-storageBuild file and document-management features on SELISE Blocks Data: upload/download, directory trees, cursor-paginated browsing and search, file versions, rename/move/copy, soft delete/trash/restore, sharing, access policies, and inheritance. Use for attachments, file browsers, folders, shared files, permissions, or version history. Use 'blocks data files *' for terminal/admin work and @seliseblocks/client data.files/data.directories/data.objects for app code.Other plugins' skills for the same job