Skip to content

Fix indirect permission letters: ri is indirect read plus insert - #199

Merged
Jesper Schulz-Wedde (JesperSchulz) merged 1 commit into
microsoft:mainfrom
Nikolaj1407:fix-indirect-permission-letters
Sep 29, 2026
Merged

Jesper Schulz-Wedde (JesperSchulz) merged 1 commit into
microsoft:mainfrom
Nikolaj1407:fix-indirect-permission-letters

Conversation

@Nikolaj1407

Copy link
Copy Markdown
Contributor

What is wrong

microsoft/knowledge/security/indirect-permissions-for-elevated-access.md presents ri, ii, mi and di as the indirect-permission tokens (in Best Practice and in the keywords), and its good sample gives a read-only "Report Runner" role:

Permissions = tabledata "G/L Entry" = ri;

Every letter of a permission value is one permission: R/r read, I/i insert, M/m modify, D/d delete, uppercase for direct and lowercase for indirect (Permissions property, Permissions on database objects). So ri is indirect read plus indirect insert, ii repeats insert, and mi and di each add indirect insert. The good sample therefore grants a read-only role indirect insert on G/L Entry, which is the kind of over-grant the article warns against. An author or reviewer following the article would reproduce it.

The change

  • Best Practice names the lowercase letters r, i, m, d, shows the read-only grant = r, and states that each letter is one permission.
  • Keywords: lowercase replaces ri, ii, mi, di.
  • Good sample: tabledata "G/L Entry" = r;
  • A short References section links the two Microsoft Learn pages.

The letters have meant the same thing since runtime 1.0, so this applies to all BC versions. The security domain owns it: this corrects the existing security article in place.

Checks

On this branch: validate_frontmatter.py (0 errors, 0 warnings), Test-KnowledgeIndex.ps1, Test-SkillIndex.ps1, Test-ReviewFixtures.ps1 (108 cases, 20 leaf domains) and Test-ReviewContract.ps1 all pass.

🤖 Generated with Claude Code

…access

Each letter of a permission value is one permission, so `ri` is indirect
read plus indirect insert. The good sample granted a read-only
"Report Runner" role indirect insert on G/L Entry. Use `r` in the sample,
name the lowercase letters in Best Practice, replace the ri/ii/mi/di
keywords and cite the Microsoft Learn pages that define the letters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Nikolaj1407

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="Allnet Nordic A/S"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed f31552f5dba1082ab1e0fe78852c85c3825cec24. The correction is sound: r grants indirect read, while ri grants indirect read plus indirect insert. The article and good sample now agree with Business Central permission-letter semantics, and no related erroneous guidance remains.

@JesperSchulz
Jesper Schulz-Wedde (JesperSchulz) merged commit 130d5de into microsoft:main Sep 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants