mirror of
https://github.com/Micke-K/IntuneManagement.git
synced 2026-11-27 09:22:26 +01:00
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:
co-authored by
Claude Opus 5.5
parent
2f16133572
commit
b579d55e58
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user