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" },