---
id: change/bcquality/279
type: change
title: "#279 knowledge(testing): a changed permission set needs a test that runs an allowed operation under it"
summary: 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.
tier: official
language: en
tags:
  - feature
  - main
system: development
review:
  state: reviewed
  by: opus
  at: "2026-11-30T15:07:53.891Z"
  flags: []
generated:
  at: "2026-11-30T13:33:07.232Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 7fcef386fd6471f114a9106b746b2e512ed840dc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCQuality/pull/279
    title: "microsoft/BCQuality#279: knowledge(testing): a changed permission set needs a test that runs an allowed operation under it"
    date: "2026-11-30"
    commit: 7fcef386fd6471f114a9106b746b2e512ed840dc
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines:
    - guideline/microsoft/knowledge/testing/permission-tests-must-lower-the-execution-context
    - guideline/microsoft/skills/review/al-testing-review
  changes: []
number: 279
repo: microsoft/BCQuality
source_id: bcquality-prs
url: https://github.com/microsoft/BCQuality/pull/279
kind: pr
base_branch: main
major: null
merged_at: "2026-11-30T09:39:59Z"
author: MichaelDieringer
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 6
  additions: 61
  deletions: 39
  al: 4
apps: []
objects_touched: []
objects_unjoined:
  - path: microsoft/knowledge/testing/permission-tests-must-lower-the-execution-context.bad.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/permission-tests-must-lower-the-execution-context.good.al
    status: modified
    reason: not-in-snapshot
  - path: microsoft/knowledge/testing/permission-tests-must-lower-the-execution-context.md
    status: modified
    reason: not-in-snapshot
  - path: microsoft/skills/review/al-testing-review.md
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items: []
systems:
  - development
quote: null
joined_against:
  major: null
  commit: null
---

# #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.

[Pull request](https://github.com/microsoft/BCQuality/pull/279) · 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? snapshot
- `microsoft/knowledge/testing/permission-tests-must-lower-the-execution-context.good.al`: modified, not in the BC? snapshot
- [`microsoft/knowledge/testing/permission-tests-must-lower-the-execution-context.md`](../../guidelines/microsoft/knowledge/testing/permission-tests-must-lower-the-execution-context.md): modified, not in the BC? snapshot
- [`microsoft/skills/review/al-testing-review.md`](../../guidelines/microsoft/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).
