---
id: change/bcapps/11561
type: change
title: "#11561 [Permissions] Fix read-only error in obsolete permission cleanup"
summary: The Remove Obsolete Permissions action now deletes only from the Tenant Permission table instead of the read-only system Permission table, ensuring cleanup works correctly on SaaS infrastructure.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page permission sets
system: administration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:03:54.058Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 87118091602861415529165d1e57630b22583ce1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11561
    title: "microsoft/BCApps#11561: [Permissions] Fix read-only error in obsolete permission cleanup"
    date: "2026-09-23"
    commit: 87118091602861415529165d1e57630b22583ce1
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/page/9802
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11561
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11561
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-23T10:46:44Z"
author: darjoo
author_type: User
community_contribution: false
labels:
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 137
  deletions: 22
  al: 1
apps:
  - Base Application
objects_touched:
  - key: page/9802
    page: page/9802
    type: page
    id: 9802
    name: Permission Sets
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 581176
systems:
  - administration
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11561 [Permissions] Fix read-only error in obsolete permission cleanup

> The Remove Obsolete Permissions action now deletes only from the Tenant Permission table instead of the read-only system Permission table, ensuring cleanup works correctly on SaaS infrastructure.

[Pull request](https://github.com/microsoft/BCApps/pull/11561) · merged into `main` (BC30) on 2026-09-23 by darjoo · 2 files (+137 -22), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Cleanup is now tenant-only, affecting both user-defined and extension-owned permission sets
- System permissions remain untouched on all environments
- Action no longer attempts to modify the read-only Permission table on SaaS
- Tooltip and result messages updated to reflect tenant scope
- Tests updated to write only to tenant permissions
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 9802 "Permission Sets"](../../objects/page/9802.md), Base Application: modified

## Context

- Work items: AB#581176
- Labels: Team: Integrations
- Systems: administration

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
