Keep scope tags on import when the source tenant is unknown (#401)

- Always write MigrationTable.json on export so imports can tell same-tenant from cross-tenant
- When there is no migration table, keep exported scope tag IDs that exist in the target tenant instead of falling back to Default
- Add "Scope tag instead of Default" setting for admins whose role excludes the Default scope tag
- Apply scope tag handling to Update and Replace imports
- Exclude MigrationTable.json from import and assignment file discovery
- MSALInfo.md: remove Application.Read.All and DeviceManagementManagedDevices.ReadWrite.All from the permission list

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Mikael Karlsson
2026-11-22 21:25:26 +11:00
co-authored by Claude Opus 5.5
parent 2f16133572
commit b579d55e58
3 changed files with 223 additions and 25 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ function Get-EMIntuneAssignmentInfo
{
if($path -eq "$rootDir\Groups") { continue }
foreach($file in (Get-Item -path "$path\*.json" -Exclude @("*_settings.json","*_assignments.json")))
foreach($file in (Get-Item -path "$path\*.json" -Exclude @("*_settings.json","*_assignments.json","MigrationTable.json")))
{
$graphObj = (ConvertFrom-Json (Get-Content -LiteralPath $file.FullName -Raw))