---
id: object/codeunit/20406
type: object
title: Codeunit 20406 "Qlty. Permission Mgmt."
summary: Codeunit 20406 "Qlty. Permission Mgmt." in Quality Management (Microsoft.QualityManagement.AccessControl). 17 public procedures. Introduced in BC29, still in BC30, changed in BC30.
tier: official
language: en
tags:
  - codeunit
  - quality management
versions:
  introduced: "29"
  last_changed: "30"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: b822b9c7f403bb6f32420076cdcca45070f57325933f416b9c7a060de44ee23a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Quality%20Management/app/src/AccessControl/QltyPermissionMgmt.Codeunit.al
    title: src/Apps/W1/Quality Management/app/src/AccessControl/QltyPermissionMgmt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11129
    - change/bcapps/10270
    - change/bcapps/10065
object_type: codeunit
object_id: 20406
name: Qlty. Permission Mgmt.
namespace: Microsoft.QualityManagement.AccessControl
app: Quality Management
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in:
  - "30"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 23
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 7
  implements: 0
---

# Codeunit 20406 "Qlty. Permission Mgmt."

> Codeunit 20406 "Qlty. Permission Mgmt." in Quality Management (Microsoft.QualityManagement.AccessControl). 17 public procedures. Introduced in BC29, still in BC30, changed in BC30.

Quality Management · Microsoft.QualityManagement.AccessControl · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Quality%20Management/app/src/AccessControl/QltyPermissionMgmt.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `VerifyCanCreateManualInspection()` (internal): Verifies the current user can create a manual inspection. Throws an error if not permitted.
- `VerifyCanCreateReinspection()` (internal): Verifies the current user can create a re-inspection. Throws an error if not permitted.
- `VerifyCanChangeOtherInspections()` (internal): Verifies the current user can change other users' inspections. Throws an error if not permitted.
- `CanChangeOtherInspections(): Boolean` (internal): Checks if the current user can change other users' inspections.
- `VerifyCanFinishInspection()` (internal): Verifies the current user can finish an inspection. Throws an error if not permitted.
- `CanFinishInspection(): Boolean` (internal): Checks if the current user can finish an inspection.
- `VerifyCanReopenInspection()` (internal): Verifies the current user can reopen an inspection. Throws an error if not permitted.
- `VerifyCanDeleteOpenInspection()` (internal): Verifies the current user can delete an open inspection. Throws an error if not permitted.
- `VerifyCanDeleteFinishedInspection()` (internal): Verifies the current user can delete a finished inspection. Throws an error if not permitted.
- `CanDeleteFinishedInspection(): Boolean` (internal): Checks if the current user can delete a finished inspection.
- `VerifyCanChangeItemTracking()` (internal): Verifies the current user can change item tracking on an inspection. Throws an error if not permitted.
- `CanChangeItemTracking(): Boolean` (internal): Checks if the current user can change the item tracking on an inspection.
- `VerifyCanChangeSourceQuantity()` (internal): Verifies the current user can change the source quantity. Throws an error if not permitted.
- `CanChangeSourceQuantity(): Boolean` (internal): Checks if the current user can change the source quantity on an inspection.
- `VerifyCanEditLineComments()` (internal): Verifies the current user can edit line comments. Throws an error if not permitted.
- `CanEditLineComments(): Boolean` (internal): Checks if the current user can edit line notes and comments.
- `GetShouldAutoAssign(var ShouldPrompt: Boolean): Boolean` (internal): Determines whether the current user can assign an inspection to themselves and whether to prompt before assignment.

Plus 6 local procedures.

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 152 "User Permissions"](../codeunit/152.md) (5 calls: `CanDeleteTableData → GetEffectivePermission`, `CanInsertTableData → GetEffectivePermission`, `CanModifyTableData → GetEffectivePermission`, …)

## Called by

- [Table 20405 "Qlty. Inspection Header"](../table/20405.md) (9 calls: `AssignToSelf → VerifyCanChangeOtherInspections`, `AssistEditLotNo → VerifyCanChangeItemTracking`, `AssistEditPackageNo → VerifyCanChangeItemTracking`, …)
- [Page 20406 "Qlty. Inspection"](../page/20406.md) (2 calls: `UpdateControlVisibilityStates → CanChangeItemTracking`, `UpdateControlVisibilityStates → CanChangeSourceQuantity`)
- [Page 20407 "Qlty. Inspection Subform"](../page/20407.md) (1 call: `OnOpenPage → CanEditLineComments`)
- [Page 20408 "Qlty. Inspection List"](../page/20408.md) (1 call: `OnAfterGetCurrRecord → CanChangeOtherInspections`)
- [Page 20413 "Qlty. Inspection Lines"](../page/20413.md) (1 call: `OnOpenPage → CanEditLineComments`)
- [Report 20400 "Qlty. Create Inspection"](../report/20400.md) (1 call: `AssistEditChooseRecord → CanChangeSourceQuantity`)
- [Table 20406 "Qlty. Inspection Line"](../table/20406.md) (1 call: `SetMeasurementNote → VerifyCanEditLineComments`)

## Recent changes

- 2026-10-05 [#11129 [Quality Management] Refactor permission management](../../changes/bcapps/11129.md) (main, BC30, refactor)
- 2026-08-20 [#10270 [Quality Management] Repair and improve XML documentation of procedures](../../changes/bcapps/10270.md) (main, BC30, refactor)
- 2026-08-17 [#10065 [Quality Management] Quality Inspection User assignment fixes](../../changes/bcapps/10065.md) (main, BC30, fix)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: BC30

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Qlty. Permission Mgmt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
