#279 knowledge(testing): a changed permission set needs a test that runs an allowed operation under it
Permission set testing guidance now requires tests that verify allowed operations work under the modified set, catching missing or incomplete grants that only surface at customer sites.
- 6files
- 4AL files
- 0objects
Pull request · merged into main on 2026-11-30 by MichaelDieringer · 6 files (+61 -39), 4 AL · feature · tier official · reviewed (checked by Opus)
What changed
- Extends the permission-test article to the allow side: a set that grants too little
- When a change adds or modifies a permissionset or permissionsetextension, a test must lower the context to it, run an allowed operation and assert the result
- Removing a needed grant must make that test fail
- New good sample: a CUSTOMER EDITOR set and an EditorCanRunSetup test that runs Protected Setup Action Test under it
- Review skill and fixtures updated; evidence: none of 16 permission sets in three apps were run in a lowered context
AL objects touched
microsoft/knowledge/testing/permission-tests-must-lower-the-execution-context.bad.al: modified, not in the BC? snapshotmicrosoft/knowledge/testing/permission-tests-must-lower-the-execution-context.good.al: modified, not in the BC? snapshotmicrosoft/knowledge/testing/permission-tests-must-lower-the-execution-context.md: modified, not in the BC? snapshotmicrosoft/skills/review/al-testing-review.md: modified, not in the BC? snapshot
Context
- Systems: development
Source: metadata of a merged pull request in microsoft/BCQuality (bcquality): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).