Security Hierarchy Trace

Trace D365FO security from a Role all the way down to Entry Points, discover which roles reach a given object, or scaffold new security objects (privilege, duty, role, XDS policy). Use when the user asks about permissions, security coverage, roles, duties, privileges, "create a security privilege", "scaffold a security role", "generate a duty", or "create a security policy".

49 stars 26 forksSecurity

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add dynamics365ninja/d365fo-cli --skill security-hierarchy-trace
Manual install
git 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-hierarchy-trace ~/.claude/skills/security-hierarchy-trace

Personal 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 (`<AxClass>`, `<AxTable>`, `<AxForm>`, `<Methods>`, `<SourceCode>`) is proprietary — LLMs have not been trained on it reliably. **ALWAYS use `d365fo generate …` commands** to produce correct AOT XML. If `d365fo` is unavailable in PATH, stop and ask the user to install it.

# Tracing D365FO security hierarchies

## Workflow

0. **Do not know the kind?** `d365fo security <Name> --output json` (the same as
   `security any`) resolves a role, duty or privilege by that name, otherwise it
   returns coverage for every way the object is secured (entry-point types, the
   menu items that open it, the table's XDS state). `resolvedAs` says which,
   `alsoMatched` lists other kinds the name matched. Use the strict commands
   below when you need one specific answer.

1. **Top-down** — which entry points does a role reach? `security coverage`
   is a reverse/bottom-up lookup, not a forward one — `Role` is not a valid
   `--type` for it. Walk the hierarchy explicitly instead:
   ```sh
   d365fo security role <RoleName> --output json       # -> duties[] + privileges[]
   d365fo security duty <DutyName> --output json        # -> privileges[]
   d365fo security privilege <PrivilegeName> --output json  # -> entryPoints[] (objectName + objectType)
   ```

2. **Bottom-up** — which roles reach this object?
Read the full skill on GitHub

Details

Skill name
security-hierarchy-trace
Path
skills/anthropic/security-hierarchy-trace/SKILL.md
Repo updated
16 November 2026

FAQ

What does the Security Hierarchy Trace skill do?

Trace D365FO security from a Role all the way down to Entry Points, discover which roles reach a given object, or scaffold new security objects (privilege, duty, role, XDS policy). Use when the user asks about permissions, security coverage, roles, duties, privileges, "create a security privilege", "scaffold a security role", "generate a duty", or "create a security policy".

How do I install the Security Hierarchy Trace skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add dynamics365ninja/d365fo-cli --skill security-hierarchy-trace. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Security Hierarchy Trace popular?

It lives in dynamics365ninja/d365fo-cli, which has 49 GitHub stars and 26 forks.

Related skills

Analytics and Er

49

dynamics365ninja/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.

Data & Analytics26

Barcode Scanning

49

dynamics365ninja/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.

AI, LLMs & Agents26

Build Error Triage

49

dynamics365ninja/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.

AI, LLMs & Agents26

Security Review

32

joneqian/claude-skills-suite

Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.

Security

Vulnerability Chaining

49

mn-youssef/security-skills

Use when you have multiple findings and need to combine them into realistic end-to-end attack paths — turning several low/medium issues into a single critical-impact exploit chain. The red-team-lead skill that ties the specialists' findings together into business impact.

Security

Brain Search

43

inite-ai/inite-brain-service

Semantic search over the INITE Brain knowledge graph via the search_knowledge MCP tool. Use when the user wants to find facts, entities, or evidence about people/companies/objects in their tenant, especially when the question is fuzzy or natural-language. Supports bitemporal "as of" queries.

Security

Browse the most popular Claude skills, all security skills, or write your own with the skills generator.