Fixes for migration add accounts script
This commit is contained in:
@@ -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" }
|
||||
|
||||
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user