---
id: change/bcapps/14470
type: change
title: "#14470 [Master Data Management] Bug bash fixes for cross-environment synchronization"
summary: Master Data Management cross-environment synchronization received security fixes addressing URL handling, audit logging with client credentials, indirect read permissions via source API, and preventing system table synchronization.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - permissionset mdm cross-env read
  - codeunit mdm cross-env data source
  - codeunit mdm cross-env source api
  - codeunit mdm http source transport
  - codeunit mdm source capabilities
  - codeunit master data mgt. setup default
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-12-06T00:54:11.813Z"
  flags: []
generated:
  at: "2026-12-06T00:14:19.053Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 0e02eba5e01899b27379c42714528bb95361ed5f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14470
    title: "microsoft/BCApps#14470: [Master Data Management] Bug bash fixes for cross-environment synchronization"
    date: "2026-12-01"
    commit: 0e02eba5e01899b27379c42714528bb95361ed5f
    t: null
    quote: Request URL is rebuilt at runtime, not read from the setup
links:
  learn: []
  objects:
    - object/permissionset/7242
    - object/codeunit/7249
    - object/codeunit/7241
    - object/codeunit/7247
    - object/codeunit/7246
    - object/codeunit/7230
    - object/page/7232
    - object/page/7233
    - object/table/7230
    - object/xmlport/7231
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/admin-sync-master-data
      title: Manage master data synchronization
      label: possibly related
      why: touches Page 7233 "Master Data Synch. Tables"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/admin-set-up-data-sync
      title: Set up companies to synchronize master data
      label: possibly related
      why: touches Page 7233 "Master Data Synch. Tables"
      by: code
number: 14470
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14470
kind: pr
base_branch: main
major: "30"
merged_at: "2026-12-01T16:27:39Z"
author: dcenic
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: true
files:
  count: 14
  additions: 717
  deletions: 119
  al: 10
apps:
  - MasterDataManagement
objects_touched:
  - key: permissionset/7242
    page: permissionset/7242
    type: permissionset
    id: 7242
    name: MDM Cross-Env Read
    app: MasterDataManagement
    status: modified
  - key: codeunit/7249
    page: codeunit/7249
    type: codeunit
    id: 7249
    name: MDM Cross-Env Data Source
    app: MasterDataManagement
    status: modified
  - key: codeunit/7241
    page: codeunit/7241
    type: codeunit
    id: 7241
    name: MDM Cross-Env Source API
    app: MasterDataManagement
    status: modified
  - key: codeunit/7247
    page: codeunit/7247
    type: codeunit
    id: 7247
    name: MDM Http Source Transport
    app: MasterDataManagement
    status: modified
  - key: codeunit/7246
    page: codeunit/7246
    type: codeunit
    id: 7246
    name: MDM Source Capabilities
    app: MasterDataManagement
    status: modified
  - key: codeunit/7230
    page: codeunit/7230
    type: codeunit
    id: 7230
    name: Master Data Mgt. Setup Default
    app: MasterDataManagement
    status: modified
  - key: page/7232
    page: page/7232
    type: page
    id: 7232
    name: MDM Connection Details
    app: MasterDataManagement
    status: modified
  - key: page/7233
    page: page/7233
    type: page
    id: 7233
    name: Master Data Synch. Tables
    app: MasterDataManagement
    status: modified
  - key: table/7230
    page: table/7230
    type: table
    id: 7230
    name: Master Data Management Setup
    app: MasterDataManagement
    status: modified
  - key: xmlport/7231
    page: xmlport/7231
    type: xmlport
    id: 7231
    name: ImportMDMSetup
    app: MasterDataManagement
    status: modified
objects_unjoined: []
obsoletions:
  - object: Master Data Management Setup
    member: Source Environment URL
    replacement: environment name-based URL construction
backports: []
fixes_issues: []
work_items:
  - 656413
  - 660382
  - 660384
  - 660386
  - 660388
systems:
  - integration
quote: Request URL is rebuilt at runtime, not read from the setup
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #14470 [Master Data Management] Bug bash fixes for cross-environment synchronization

> Master Data Management cross-environment synchronization received security fixes addressing URL handling, audit logging with client credentials, indirect read permissions via source API, and preventing system table synchronization.

[Pull request](https://github.com/microsoft/BCApps/pull/14470) · merged into `main` (BC30) on 2026-12-01 by dcenic · 14 files (+717 -119), 10 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Request URLs are now built at runtime from tenant ID and environment name instead of reading stored URL, with environment name validation matching admin center rules
- All cross-environment audit entries and telemetry events now include ClientId and CredentialType for better security tracking
- MDM Cross-Env Source API enforces indirect read permissions on synchronization tables, preventing direct access through standard APIs
- System tables (IDs 2000000000+) are blocked from synchronization through API checks and UI table picker filters
- Field 156 'Source Environment URL' is marked obsolete and replaced with environment name-based URL construction
- Breaking: existing extensions can stop compiling or working.

## AL objects touched

- [Permission set 7242 "MDM Cross-Env Read"](../../objects/permissionset/7242.md), MasterDataManagement: modified
- [Codeunit 7249 "MDM Cross-Env Data Source"](../../objects/codeunit/7249.md), MasterDataManagement: modified
- [Codeunit 7241 "MDM Cross-Env Source API"](../../objects/codeunit/7241.md), MasterDataManagement: modified
- [Codeunit 7247 "MDM Http Source Transport"](../../objects/codeunit/7247.md), MasterDataManagement: modified
- [Codeunit 7246 "MDM Source Capabilities"](../../objects/codeunit/7246.md), MasterDataManagement: modified
- [Codeunit 7230 "Master Data Mgt. Setup Default"](../../objects/codeunit/7230.md), MasterDataManagement: modified
- [Page 7232 "MDM Connection Details"](../../objects/page/7232.md), MasterDataManagement: modified
- [Page 7233 "Master Data Synch. Tables"](../../objects/page/7233.md), MasterDataManagement: modified
- [Table 7230 "Master Data Management Setup"](../../objects/table/7230.md), MasterDataManagement: modified
- [XMLport 7231 "ImportMDMSetup"](../../objects/xmlport/7231.md), MasterDataManagement: modified

## Obsoletions

- Master Data Management Setup: Source Environment URL, replaced by environment name-based URL construction

## Context

- Work items: AB#656413, AB#660382, AB#660384, AB#660386, AB#660388
- Labels: AL: Apps (W1), Team: Finance
- Systems: integration
- From the description: "Request URL is rebuilt at runtime, not read from the setup"

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Manage master data synchronization](https://learn.microsoft.com/dynamics365/business-central/admin-sync-master-data) — possibly related: touches Page 7233 "Master Data Synch. Tables"
- [Set up companies to synchronize master data](https://learn.microsoft.com/dynamics365/business-central/admin-set-up-data-sync) — possibly related: touches Page 7233 "Master Data Synch. Tables"

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