Security Modeling
Model D365FO security — the role → duty → privilege → entry-point chain, XDS policies, runtime access checks, and configuration keys as the compile-time counterpart. Invoke when the user asks to create or extend a privilege, duty or role, restrict access to a form or table, add an XDS policy, or gate functionality with a configuration key.
Install
npx skills add dynamics365ninja/d365fo-cli --skill security-modelinggit clone --depth 1 https://github.com/dynamics365ninja/d365fo-cli.git /tmp/d365fo-cli
mkdir -p ~/.claude/skills
cp -r /tmp/d365fo-cli/skills/anthropic/security-modeling ~/.claude/skills/security-modelingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
> ⛔ **NEVER write X++ AOT XML files directly** via PowerShell, terminal file commands (`Set-Content`, `Out-File`, `New-Item`), editor write tools, or any raw text approach. The XML schema is proprietary. **ALWAYS use `d365fo generate …` commands** to produce correct AOT XML. If `d365fo` is unavailable in PATH, stop and ask the user to install it.
# Security modelling
> Security in D365FO is a four-level chain. Each level has its own AOT folder, and
> mixing them up produces XML that deploys but grants nothing.
```
Role (job function, assigned to a user)
└── Duty (business function)
└── Privilege (one operation)
└── Entry point (menu item / service operation / form)
```
## 1. Privileges — always in pairs
Every object worth protecting gets **two** privileges: a read-only *View* variant
and a *Maintain* variant with create/update/delete.
- Entry point = the menu item name, plus its type
(`MenuItemDisplay` / `MenuItemAction` / `MenuItemOutput`) and an access level:
`Read | Create | Update | Delete | Correct | View | NoAccess`.
- Table permissions on the privilege give column-level access; field permissions
handle column masking.Details
- Skill name
security-modeling- Repository
- dynamics365ninja/d365fo-cli
- Path
skills/anthropic/security-modeling/SKILL.md- Repo updated
- 16 November 2026
FAQ
What does the Security Modeling skill do?
Model D365FO security — the role → duty → privilege → entry-point chain, XDS policies, runtime access checks, and configuration keys as the compile-time counterpart. Invoke when the user asks to create or extend a privilege, duty or role, restrict access to a form or table, add an XDS policy, or gate functionality with a configuration key.
How do I install the Security Modeling skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add dynamics365ninja/d365fo-cli --skill security-modeling. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Security Modeling popular?
It lives in dynamics365ninja/d365fo-cli, which has 49 GitHub stars and 26 forks.
Related skills
Analytics and Er
49dynamics365ninja/d365fo-cli
Model the D365FO analytical and document-generation surfaces — aggregate measurements and the entity store, tiles/cues and KPIs, and Electronic Reporting (ER). Invoke when the user asks about a workspace tile, a KPI, an aggregate measurement, the entity store, Power BI content, or running/binding an ER format.
Barcode Scanning
49dynamics365ninja/d365fo-cli
Barcodes and scanner input in D365FO — printing vs scanning are unrelated code paths, GS1-128 application identifiers, item-barcode resolution, and where the platform parses a scan for you. Invoke when the user mentions barcodes, GS1, GTIN, SSCC, scanning, scanners, item barcodes, or barcode setup.
Build Error Triage
49dynamics365ninja/d365fo-cli
Turn a D365FO compiler, best-practice, or runtime error into the specific fix it calls for. Invoke when the user pastes a build log, an xppc message, a BP violation, or an infolog stack trace and asks what it means or how to fix it.
Ssrs Report Authoring
49dynamics365ninja/d365fo-cli
Author or extend an SSRS report in D365 Finance & Operations — the TmpTable → Contract → DP → Controller → AxReport stack, RDL designs, and Print management integration. Invoke when the user asks to create a report, add a dataset, change a report design, or wire a report into Print management.
Report Print Destinations
49dynamics365ninja/d365fo-cli
Sending an SSRS report somewhere other than the screen from X++ — SRSPrintDestinationSettings, the SRSPrintMediumType values, and setting the destination on a controller before it runs. Invoke when the user asks to email, print, archive or save a report to file from code, or when a destination set in code is ignored at run time.
Sysoperation Batch Patterns
49dynamics365ninja/d365fo-cli
Scaffold batch jobs, SysOperation triplets (DataContract + Service + Controller), RunBase/RunBaseBatch classes, or data migration scripts in D365 Finance & Operations. Invoke when the user asks to "create a batch job", "scaffold a SysOperation", "create a RunBase class", "build a batch class", "generate a migration script", "migrate data between tables", or "create a scheduled batch".
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.