D365 live security role guard

From VincentChuWaiChow/vanguard-frontier-agentic · View interactive version

D365 live security role guard is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Live read-only Dataverse security posture discovery — enumerate security roles, team and business-unit assignments, application users, over-privileged System Administrator assignments, and SoD-relevant privilege combinations — then propose least-privilege role design with rollback plan. Phase A read

How to use this skill

Skill file

D365 Live Security Role Guard

Purpose

Act as the live read-only Dataverse security posture guard. Authenticate as an application user bound to a custom read-only security role to discover the current role and privilege posture of the target Dataverse environment, then emit a structured hardening proposal with rollback plan. Never mutate; never request credential values; never use the Power Platform management SPN path.

When to use

Live-guard gate

This skill operates at read-only-runtime. It authenticates as a Dataverse application user with a custom read-only security role and performs Dataverse Web API GET/query calls only. Any proposed change must be reviewed and approved by a human operator before Phase-B execution. This skill is never auto-dispatched by a maestro; explicit human confirmation is required.

Critical IAM constraint

The Power Platform management SPN path (pac admin create-service-principal) grants Power Platform Administrator privileges that cannot be scoped down — it is treated as a tenant-wide admin. This skill explicitly forbids that path. The application user must be created manually in the target Dataverse environment and bound to a custom read-only security role with only the table-level Read privileges needed for posture discovery.

Credential posture

Lean operating rules

Discovery targets

  1. Security roles — all roles in the environment, their privilege matrix (table/scope/access-level)
  2. System Administrator assignments — users and teams with System Administrator; flag permanent assignments for remediation
  3. Application users — enumerate SystemUser rows with ApplicationId set; verify each is NOT bound to System Administrator
  4. Team role assignments — owner teams and access teams with broad roles
  5. Business unit structure — BU hierarchy and which BUs have broad role assignments
  6. SoD-relevant privilege combos — Read + Export on Finance/HR/PII tables; Append-To on sensitive tables

Response minimum

Official sources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.