Start here · How it works · Reports · User guide · Technical guide · What's new
Author: Nicolas Fabert
Important
To use the tool, download the release package. Open the latest release, expand Assets, and download XTapSharingMigration-<version>.zip.
Do not choose Source code (zip), Source code (tar.gz) or the green Code button: those are for development. The release ZIP includes the ready-to-run files and offline HTML guides.
This page describes the current source. What's new lists the changes of each version.
You currently share calendars, availability or MailTips with another Microsoft 365 organization. Microsoft is moving these settings to X-TAP, the Microsoft 365 cross-tenant access policy (Microsoft migration guidance).
This tool helps you answer three questions: What do we share today? What will change? What was actually configured? It works on one tenant at a time. It does not configure the partner's tenant for you.
Exchange hybrid and partners hosted on Exchange Server are excluded. Anonymous calendar publishing is handled separately from sharing with named people; HTML/ICS publishing does not depend on EWS.
| Step | What you do | Changes the tenant? |
|---|---|---|
| Collect | Save the current Exchange Online and X-TAP settings; open Inventory.html |
No |
| Plan | Confirm partner tenant IDs, review users and detail levels; open Plan.html |
No |
| Apply -Phase Entra | Create the required security groups and partner collaboration trusts | Yes, after confirmation |
| Apply -Phase Exchange | Write the sharing capabilities, then read the settings back | Yes, after confirmation |
| Test with the partner | Check what users can actually see before retiring any legacy setting | Manual, separately agreed |
- Existing settings are kept by default. A difference is reported as a conflict, not silently overwritten.
- Calendar Sharing keeps each policy's users. A mailbox group is proposed for every Sharing Policy, even a single policy. Missing assignments or extra group members require review. Tenant-wide
Allremains an explicit choice. - No Exchange Online cutover is executed by the tool.
ManualCutover.txtcontains proposals to review, not a script to run blindly. Wildcard retirement commands are commented out to protect on-premises/hybrid dependencies. - A green configuration result is not a successful sharing test. Calendar Sharing X-TAP takes precedence when applicable: test with Sharing Policies enabled. Free/Busy and MailTips have different legacy precedence.
The technical guide explains feature mappings, All/group, scope groups and default/partner policies.
![]() Inventory.html · what exists today |
![]() Plan.html / Result.html · proposed or completed configuration actions |
These are illustrative screenshots. Current reports show the exact scope types and updated cutover warnings. Reports open locally in a browser, with light/dark themes, search and filters. Keep the Collect folder: Plan and Apply use its saved inventory.
Reports and logs can contain tenant IDs, mailbox addresses and configuration. Store them securely; do not attach them unredacted to a public issue.
| You need | Before starting |
|---|---|
| PowerShell 7.4+ | Open PowerShell 7, not Windows PowerShell 5.1 |
| Modules | Microsoft.Graph.Authentication 2.25+; ExchangeOnlineManagement 3.9+ for Collect (use 3.10.1+ when installing) |
| Read access | An Exchange role able to read sharing settings, plus the Graph read permissions listed in the user guide |
| Entra phase | Security Administrator and Groups Administrator when groups are created, or Global Administrator |
| Exchange phase | Exchange Administrator or Global Administrator |
| A partner contact | Confirm their tenant ID and coordinate tests; verify feature availability in both tenants |
The user guide explains the roles, permissions and first sign-in. You do not need to understand the internal Graph calls to follow it.
First goal: get an inventory without changing the tenant. Stop there if you only want an assessment.
- Download the latest release ZIP from Assets and extract it.
- Open PowerShell 7. Go to the extracted folder that directly contains
Invoke-XTapSharingMigration.ps1. Replace the example path below with yours.
Set-Location 'C:\Tools\XTapSharingMigration'
Get-ChildItem . -Recurse -File -Force | Unblock-File
$PSVersionTable.PSVersionExpected: version 7.4 or later. A release package runs from this folder; only a source checkout has an extra package folder.
- Install the modules once, then open the configuration file.
Install-Module Microsoft.Graph.Authentication -MinimumVersion 2.25.0 -Scope CurrentUser -Force
Install-Module ExchangeOnlineManagement -MinimumVersion 3.10.1 -Scope CurrentUser -Force
notepad .\config\XTapSharingMigration.config.psd1In the existing Tenant section, fill in your tenant ID and your xxx.onmicrosoft.com domain. Save the file. Do not paste configuration sections into the console or replace the entire file with a short example. Where to find these values.
- Run the read-only inventory. Sign in to your intended tenant when prompted.
.\Invoke-XTapSharingMigration.ps1Expected: the console prints a new Collect folder containing Inventory.html. Open it and review the findings. Nothing has been changed in Exchange Online or X-TAP.
Continue with the step-by-step guide for partner confirmation, Plan and the two Apply phases. Do not jump directly to Apply.
| Read this | When |
|---|---|
| User guide | Start here: where to run each command, which account to use, what to expect and when to stop |
| Technical guide | Detailed configuration, two-administrator handover, Selection.csv, feature-specific cutover, tests and troubleshooting |
| Changelog | Short, point-by-point changes and the observations behind them |
| Security | Private reporting and release-integrity guidance |
The release ZIP contains docs\XTapSharingMigration-UserGuide.html and docs\XTapSharingMigration-Guide.html. Double-click the first for offline reading. GitHub displays the linked Markdown guides; opening an HTML file's source on GitHub is not the same as opening the offline guide.
Developers run these from the source repository, not the downloaded runtime package:
Invoke-Pester -Path .\tests # Pester 5+, simulated tenant; no Microsoft 365 connection
.\tests\New-DemoReports.ps1 # example HTML reports from fictitious datatools\Build-Documentation.ps1 rebuilds the HTML guides. tools\New-ReadmeImages.ps1 generates the light/dark graphics. tools\New-XsmPackage.ps1 keeps the existing runtime package layout and removes private configuration values.
This Script is a Personal project. It's provided "AS-IS". It's not an official Microsoft product so no support can be expected from Microsoft.
As any scripts you must read carefully the documentation and test it first in a Test environment before any run in Production.
Coordinate every cutover with the partner organizations.

