Manages Dataverse access via PAC CLI: assigns security roles to users and application users, handles business units, batch role grants across environments, verifies assignments, and performs tenant admin self-elevation.
Ships in dataverse. 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.
Assign security roles, grant application users access, and self-elevate as tenant admin. Use first-party CLIs only: PAC CLI changes roles, the Dataverse CLI verifies them. Do not write Python scripts for role operations.
| Need | Use instead |
|---|---|
| Create or modify tables, columns, relationships | dataverse-metadata |
| Org settings, audit, bulk delete, retention | dataverse-admin |
| Query or read records | dataverse-query |
| Create, update, or delete records | dataverse-data |
| Tenant-level governance (DLP, environment lifecycle) | pac admin --help |
pac auth create); check the active profile with pac auth listdataverse auth create) for verificationRole grants and self-elevation change security posture and are logged to Microsoft Purview. Before running anything, preview the action in plain prose — target user, role, environment(s) — with placeholders (<ENV_URL>, <USER_EMAIL>) for unknowns, and ask for confirmation and missing values in the same turn. Don't show the raw pac admin command; the user shouldn't need to read CLI syntax to approve a security change.
The user must be able to judge what will happen from your first response. A bare "which environment?" fails that test; a one-line preview passes it.
| Scenario | Weak response | Good response |
|---|---|---|
| Assign a role, environment missing | "Which environment should I target?" | "I'll assign System Administrator to [email protected] on <ENV_URL>. Confirm to proceed and give the environment URL (or 'all' to list and batch)." |
| Admin access on every environment | "Please provide your email address." | "I'll list your environments and assign System Administrator to <YOUR_UPN> on each in parallel. If assign-user fails anywhere, I'll stop and offer self-elevation (logged to Purview) for that environment. Confirm to proceed and give your UPN." |
pac admin assign-user --user <email-or-object-id> --role "System Administrator" --environment <url>
| Argument | Alias | Required | Description |
|---|---|---|---|
--user | -u | Yes | User email (UPN) or Microsoft Entra object ID |
--role | -r | Yes | Security role name (for example System Administrator, Basic User) |
--environment | -env | Yes | Target environment URL or ID |
--application-user | -au | No | Treat the user as an application user (service principal) |
--business-unit | -bu | No | Business unit ID; defaults to the caller's business unit |
pac admin assign-user exits 0 even when it fails (unresolved environment, wrong role name, unknown user).
environment ... not found or role ... does not exist. Stop if you see one.--environment you used. Don't re-resolve or shorten it — a different ID silently "succeeds" against the wrong org.# Resolve the user's systemuserid
dataverse api request --target dataverse --method GET \
--path "/api/data/v9.2/systemusers?%24select=systemuserid&%24filter=internalemailaddress eq '[email protected]'" \
--environment <same-url-as-assign>
# List the user's assigned roles
dataverse api request --target dataverse --method GET \
--path "/api/data/v9.2/systemusers(<systemuserid>)/systemuserroles_association?%24select=name" \
--environment <same-url-as-assign>
domainname (the Entra UPN) rather than internalemailaddress (primary email). Retry with %24filter=domainname eq '<upn>', or azureactivedirectoryobjectid eq '<objectid>' if you assigned by object ID. A missing row is not proof the grant failed.pac admin list — get all environments.
Filter by type if needed (for example Developer, Sandbox).
Show the target list and get confirmation.
Run all assignments in parallel in a single shell call — never sequentially:
pac admin assign-user --user [email protected] --role "System Administrator" --environment https://contoso-dev.crm.dynamics.com &
pac admin assign-user --user [email protected] --role "System Administrator" --environment https://contoso-test.crm.dynamics.com &
pac admin assign-user --user [email protected] --role "System Administrator" --environment https://contoso-uat.crm.dynamics.com &
wait
Verify each one landed (see above), then report, for example "Assigned and verified on 3/3 environments".
Self-elevation is materially different from assigning a role to someone else: pac admin assign-user <other> grants privilege to another user, while pac admin self-elevate grants privilege to the caller. The risk and audit posture differ, so the confirmation protocol is stricter.
Use it when pac admin assign-user fails with "user has not been assigned any roles":
pac admin self-elevate --environment https://contoso.crm.dynamics.com
--environment is omittedBefore running pac admin self-elevate you MUST:
<env>. The action is logged to Microsoft Purview with your identity and timestamp."assign-user fails, surface the failure first, then offer self-elevation under this protocol.Self-elevate in the Power Platform admin center: select the environment, then Access, then System Administrator role. This is still logged to Purview. Known issue: PAC CLI 2.6.4 fails with bolt.authentication.http.AuthenticatedClientException / ApiVersionInvalid because it sends an empty api-version= to the backend.
assign-user first; self-elevation is a gated fallback, never automatic.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/dataverse:dataverse-securityfrom dataverse
npx claudepluginhub atc-net/atc-agentic-toolkit --plugin dataverse8 skills in this plugin
/dataverse-adminEnvironment-level Microsoft Dataverse administration: bulk delete, retention and archival, organization settings, OrgDB settings, recycle bin, audit, and a hard allowlist of 37 Power Platform admin center toggles. USE FOR: bulk delete records, schedule bulk delete job, cancel or pause bulk delete, data retention policy, archive old records, enable auditing, audit retention, plugin trace log, org settings, pac org update-settings, OrgDB settings, enable MCP server, Dataverse search, TDS endpoint, recycle bin on or off, recycle bin cleanup days, app-level security roles toggle, multi-environment settings rollout. DO NOT USE FOR: record CRUD or sample data (use dataverse-data), tables and columns (use dataverse-metadata), reading records (use dataverse-query), solution export or import (use dataverse-solution), security roles and self-elevate (use dataverse-security).
/dataverse-connectOne-step, idempotent setup and connection diagnostics for a Microsoft Dataverse environment: installs tools, authenticates the Dataverse CLI and PAC CLI, writes `.env`, copies the Python auth helper into the project, registers the Dataverse MCP server, and verifies the connection. USE FOR: connect to Dataverse, set up a new Dataverse project, switch environment, fix Dataverse authentication, dataverse auth create, pac auth create, register Dataverse MCP server, MCP not working, allowlist MCP client, dataverse mcp allow, scripts/auth.py --check, privilege preflight. DO NOT USE FOR: creating tables or columns (use dataverse-metadata), reading or writing records (use dataverse-data), querying data (use dataverse-query), solution export or import (use dataverse-solution), environment settings (use dataverse-admin).
/dataverse-dataRecord-level writes to Microsoft Dataverse tables with the Python SDK, the dataverse CLI, or MCP tools: create, update, delete, upsert with alternate keys, bulk CreateMultiple/UpsertMultiple, CSV import, multi-table foreign-key loads, DataFrame write-back, and schema-driven sample data. USE FOR: create Dataverse record, update record, delete record, upsert, alternate key upsert, bulk import, CSV import, CreateMultiple, UpsertMultiple, @odata.bind lookup, associate records, file column upload, seed data, generate sample data, multi-table import with FK dependencies. DO NOT USE FOR: reading or analyzing records (use dataverse-query), tables, columns, relationships, alternate key definitions, forms, views (use dataverse-metadata), solution export or deployment (use dataverse-solution).
/dataverse-metadataAuthor and inspect the Microsoft Dataverse data model: tables, columns, choices, lookups, 1:N and N:N relationships, alternate keys, forms, and views. USE FOR: create table, add column, add choice column, create lookup, create relationship, many-to-many relationship, alternate key for upsert, create form, modify form, create view, publish customizations, list columns, list relationships, inspect schema, publisher prefix, metadata lock contention, EntityDefinitions errors. DO NOT USE FOR: creating, updating, or deleting records (use dataverse-data), reading or querying records (use dataverse-query), exporting or importing solutions (use dataverse-solution), security roles (use dataverse-security), environment settings (use dataverse-admin).
/dataverse-overviewBackground orientation for Microsoft Dataverse work: the dataverse skill map, hard rules, tool-capability matrix (MCP, Python SDK, dataverse CLI, PAC CLI, Azure CLI, GitHub CLI, Web API), SDK method cheat-sheet, and the safe change lifecycle. Load first for any Dataverse task, alongside the matching specialist dataverse-* skill. USE FOR: Dataverse, Dynamics 365, Dynamics 365 Customer Engagement, CRM, Power Platform, Power Apps model-driven apps, choosing between MCP / SDK / CLI / PAC, environment confirmation, solution-first changes, pulling solutions to the repo. DO NOT USE FOR: canvas apps, Power Automate flows, Business Central.
/dataverse-queryReading and analyzing Microsoft Dataverse records with the Python SDK, the dataverse CLI, or MCP tools: filtered reads, paging, lookups and $expand, SQL and FetchXML joins and aggregates, $apply, QueryBuilder, pandas DataFrames, and Jupyter notebook exploration. USE FOR: query Dataverse, read records, list records, filter, count, aggregate, group by, join tables, FetchXML, client.query.sql, $apply, $expand, formatted values, lookup display names, QueryBuilder, export to DataFrame or CSV, analyze data in pandas, Jupyter notebook, paging large tables. DO NOT USE FOR: creating, updating, deleting, or importing records (use dataverse-data), table, column, relationship, form, or view definitions (use dataverse-metadata), solution export or deployment (use dataverse-solution).