---
id: change/bcapps/9966
type: change
title: "#9966 Harden Contact Sync delta URL and ownership checks"
summary: Contact Sync now validates delta URLs against the approved Microsoft Graph endpoint and enforces record ownership checks to prevent malicious URL manipulation or cross-user record access.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page contact sync
  - table contact sync user
  - codeunit contact sync user subscriber
  - codeunit o365 bidirectional sync
system: crm
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:33.570Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ebccffb1b40534e5606f1d27c5f5635b3aeb6e7a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9966
    title: "microsoft/BCApps#9966: Harden Contact Sync delta URL and ownership checks"
    date: "2026-08-27"
    commit: ebccffb1b40534e5606f1d27c5f5635b3aeb6e7a
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/page/7100
    - object/table/7121
    - object/codeunit/7100
    - object/codeunit/7106
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9966
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9966
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-27T13:35:44Z"
author: Naveen26423
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 8
  additions: 460
  deletions: 34
  al: 4
apps:
  - Base Application
objects_touched:
  - key: page/7100
    page: page/7100
    type: page
    id: 7100
    name: Contact Sync
    app: Base Application
    status: modified
  - key: table/7121
    page: table/7121
    type: table
    id: 7121
    name: Contact Sync User
    app: Base Application
    status: modified
  - key: codeunit/7100
    page: codeunit/7100
    type: codeunit
    id: 7100
    name: Contact Sync User Subscriber
    app: Base Application
    status: added
  - key: codeunit/7106
    page: codeunit/7106
    type: codeunit
    id: 7106
    name: O365 Bidirectional Sync
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 645036
systems:
  - crm
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9966 Harden Contact Sync delta URL and ownership checks

> Contact Sync now validates delta URLs against the approved Microsoft Graph endpoint and enforces record ownership checks to prevent malicious URL manipulation or cross-user record access.

[Pull request](https://github.com/microsoft/BCApps/pull/9966) · merged into `main` (BC30) on 2026-08-27 by Naveen26423 · 8 files (+460 -34), 4 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Delta URLs are validated before persisting to ensure they match the https://graph.microsoft.com/v1.0/ prefix
- Invalid delta URLs trigger fallback to full sync instead of failing
- Record ownership enforcement prevents users from inserting or modifying other users' sync records
- User ID field changes on existing records are blocked
- Install and upgrade contexts bypass ownership checks to avoid regressions
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 7100 "Contact Sync"](../../objects/page/7100.md), Base Application: modified
- [Table 7121 "Contact Sync User"](../../objects/table/7121.md), Base Application: modified
- [Codeunit 7100 "Contact Sync User Subscriber"](../../objects/codeunit/7100.md), Base Application: added
- [Codeunit 7106 "O365 Bidirectional Sync"](../../objects/codeunit/7106.md), Base Application: modified

## Context

- Work items: AB#645036
- Labels: Team: SCM
- Systems: crm

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