/powerplatform-core:security-rolesfrom powerplatform-core
Lists, inspects, creates, and updates Dataverse security roles and privilege sets as code-first desired state. Useful for role-based access control in Microsoft Power Platform.
Ships in powerplatform-core. 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.
This skill handles Dataverse security role inspection, creation, and updates as reviewable, code-first desired state rather than ad hoc portal clicks. It lists and inspects roles (including their privilege sets and business unit), creates custom roles — optionally seeded by copying a baseline role — and applies privilege-set and metadata deltas through structured JSON specs. It is solution-aware: when a role belongs to your app or managed delivery path, the change stays scoped to the owning unmanaged solution. It is intentionally generic about environment URL, business unit, publisher prefix, and solution name — discover those per task.
Route here from the powerplatform-core orchestrator. For broader solution packaging, versioning, or promotion of the owning solution, use the solution-alm-delivery sibling skill.
The helpers live in the plugin's scripts/ directory at the plugin root, not in this skill folder. Resolve the plugin root and invoke them like:
python "$CLAUDE_PLUGIN_ROOT/scripts/inspect_security_role.py" --spec <spec.json> (Claude Code)python "$CODEX_PLUGIN_ROOT/scripts/inspect_security_role.py" --spec <spec.json> (also exposed as $PLUGIN_ROOT)scripts/ folder sits beside this skill bundle — invoke by its path within the install.| Helper | Purpose |
|---|---|
inspect_security_role.py | List solution-scoped or business-unit roles, or inspect one role in detail, through the shared SDK helper. Drive it with a --spec whose mode is list or inspect; set includePrivileges to pull the current privilege set. Use this before editing when the business unit, system-generated status, or current privileges are unclear. |
create_security_role.py | Create a custom role from a --spec. Use copyFromRoleName/copyFromRoleId to seed from a baseline, then layer additionalPrivileges; supplying privileges replaces the baseline with that full desired set. Set solutionUniqueName to add the role to the owning unmanaged solution. |
update_security_role.py | Update role metadata and privilege sets from a --spec. Select by roleId or by name plus a business-unit selector; apply additionalPrivileges, removePrivileges, or a full privileges replacement, plus metadata fields like newName, description, appliesTo, and inheritanceMode. |
The shared SDK tool exposes the same surface as securityrole --mode list|inspect|create|update. Privilege specs are code-first: each entry carries privilegeId or privilegeName, a depth (basic, local, deep, global, or record-filter), and an optional recordFilterId.
inspect_security_role.py when the exact business unit is unclear, when you must confirm whether a role is system-generated, when you need the current privilege set for review, or when you need to confirm the role is already in the selected solution.copyFromRole...) and apply a small declarative delta, or include the required minimum privileges explicitly.create_security_role.py with a reviewable JSON spec. Set solutionUniqueName so the role ships through ALM, and prefer the same unmanaged solution for later updates to the same role.update_security_role.py with additionalPrivileges/removePrivileges for targeted changes, or a full privileges set when replacing the desired state. Treat privilege changes as configuration, not one-off UI clicks.powerplatform-core orchestrator before any role create or update. Do not restate the full preflight here — invoke it there.references/security-roles.md — default position, before-you-change checklist, privilege spec shape, create/update/inspect spec patterns, ALM and merge cautions, and the validation checklist.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dataverse, security-roles, privilege-management, power-platform, alm
npx claudepluginhub satriotsubasa/powerplatform-core --plugin powerplatform-core12 skills in this plugin
/code-appsUse for Power Apps Code Apps - the pro-code model where a standalone Vite-built React/Vue/TS single-page app uses the `@microsoft/power-apps` client library and is pushed into a Power Platform environment with no server to manage. Covers scaffolding from the official Vite template, initializing with `power.config.json`, adding Dataverse data sources that generate typed model/service files, local dev, building, and pushing via `npx power-apps push` (npm CLI) or legacy `pac code push`. Trigger whenever the user mentions a code app, `power.config.json`, `@microsoft/power-apps`, `pac code` / `power-apps` CLI, a `CodeApp/` folder, or wants to build, run, or push a custom SPA into Power Platform, even if no helper is named. Not for PCF controls embedded in model-driven forms (use pcf-and-web-resources) or Canvas/maker apps.
/custom-connectorsUse to DESIGN Power Platform custom connectors and integration wrappers - review an OpenAPI/Swagger description, choose the auth shape (API key, OAuth2, basic, none), inventory operations, and decide whether to expose an API as a direct custom connector or behind an Azure Function / API facade. Produces a connector name, auth approach, operation summaries, a recommended pattern, suggested environment variables, and solution-aware connection-reference guidance. Trigger whenever the user mentions a custom connector, OpenAPI/Swagger for Power Platform, connecting a flow or app to an external/REST API, an integration wrapper or facade, or whether an Azure Function should front an integration, even if no helper is named. Design-first - it does not publish the connector. Not for authoring the flow that calls it (use power-automate-flows) or server-side Dataverse logic (use plugins-server-extensions).
/data-operationsUse for Dataverse row/record DATA and queries - create, read, update, upsert, or delete rows, seed or sync reference/config data, and design and run queries. Trigger on "create a record/row", "read/retrieve this record", "get the value of a field on a row", "list/query the rows where", "how many rows match", "update this record", "upsert by alternate key", "delete this row", "seed config data", "import/sync these rows", "design an OData / FetchXML query", or "build the List rows filter for a flow", even when no helper is named. Covers keyed create/read/update/upsert/delete via the Dataverse SDK and query execution with bounded paging and total-count reporting, plus query design across OData, FetchXML, and Power Automate "List rows". Not for table/column/form/view/ribbon METADATA - use dataverse-schema.
/dataverse-schemaUse for Dataverse table METADATA - tables, columns, lookups/relationships, choices/option sets, alternate keys, main forms, public/lookup views, the form-level ribbon (RibbonDiffXml), form event handlers and script libraries, and table icons - plus up-front schema and query-shape design before metadata exists. Trigger on "create a table", "add a column/field", "add a lookup", "add a choice", "set an alternate key", "update the main form", "add a view / change view columns", "add a button to the form ribbon", "set the table icon", or "design a Dataverse schema", even when no helper is named. Prefer this over hand-edited customizations.xml. Not for row/record DATA, seeding config rows, or query authoring - use data-operations.
/document-generationUse for Dataverse document generation built on Word Templates - inventory the content controls in a `.docx`/`.dotx` template, map placeholders to data, and plan a template-aware change before editing blindly. Fires whenever the user mentions a Word Template, document generation, content controls, placeholder or merge-field mapping, document-definition records, "why is this field blank in the generated doc", "add a placeholder to the template", "what tags does this template use", or a document-generation plug-in, even if no helper is named. Treats `Word Templates/` as first-class source, surfaces duplicate tags, missing required placeholders, and unused controls, and points at the `*.Business`, `*.Plugins`, and `*.Data` touchpoints a placeholder change implies. Run the live-mutation preflight from the `powerplatform-core` orchestrator before any live template or component write.
/pcf-and-web-resourcesUse for the client-side surfaces of a model-driven app - Power Apps component framework (PCF) controls, web resources (JS/HTML/CSS/XML/image), client form scripts, and Power Fx formula review. Covers scaffolding a PCF control, binding it to a form control, building/deploying via wrapper solution or direct push, keeping manifest and wrapper-solution versions in sync, single and batch web resource sync/publish, OnLoad/OnSave/OnChange handler registration, and Xrm.WebApi code. Trigger whenever the user mentions PCF, pcfproj, ControlManifest, `pac pcf`, web resources, form scripts, ribbon JavaScript rules, Xrm/formContext, or wants a Power Fx / canvas formula debugged, even if no helper is named. Not for a standalone Vite SPA Code App - use code-apps.
Other plugins' skills for the same job