From 65c63347938c625703765bba7fc239062086df77 Mon Sep 17 00:00:00 2001 From: Tero Date: Mon, 14 Sep 2026 21:16:10 +0300 Subject: [PATCH] Fixes for migration add accounts script --- migration/New-AccountPlan.ps1 | 2 +- migration/generate-account-plan.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/migration/New-AccountPlan.ps1 b/migration/New-AccountPlan.ps1 index 9a25b51..edc1702 100644 --- a/migration/New-AccountPlan.ps1 +++ b/migration/New-AccountPlan.ps1 @@ -49,7 +49,7 @@ foreach ($row in $rows) { "@type" = "User" name = $localPart domainId = "#dom" - credentials = @{ "pw" = @{ "@type" = "Password"; secret = $row.new_password } } + credentials = @{ "0" = @{ "@type" = "Password"; secret = $row.new_password } } memberGroupIds = @{} roles = @{ "@type" = "User" } permissions = @{ "@type" = "Inherit" } diff --git a/migration/generate-account-plan.sh b/migration/generate-account-plan.sh index 301035d..e10da45 100644 --- a/migration/generate-account-plan.sh +++ b/migration/generate-account-plan.sh @@ -51,7 +51,7 @@ while IFS=',' read -r email new_password old_password aliases quota_mb; do "@type": "User", name: $name, domainId: "#dom", - credentials: { pw: { "@type": "Password", secret: $secret } }, + credentials: { "0": { "@type": "Password", secret: $secret } }, memberGroupIds: {}, roles: { "@type": "User" }, permissions: { "@type": "Inherit" },