I don’t know why it wasn’t backslashes in the code - i try markdown.
Attaching whole policy, but difference from default is only i one attribute:
{
"name": "account",
"description": null,
"usageType": "CREATE",
"fields": [
{
"name": "objectType",
"transform": {
"type": "static",
"attributes": {
"value": "user"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "familyName",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "lastname"
}
},
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "givenName",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "firstname"
}
},
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "password",
"transform": {
"type": "rule",
"attributes": {
"name": "Create Password"
}
},
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "secret",
"isMultiValued": false
},
{
"name": "primaryEmail",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "email"
}
},
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "relations",
"transform": {
"type": "static",
"attributes": {
"managersMail": {
"type": "firstValid",
"attributes": {
"values": [
"$identity.getManager().getStringAttribute('email')",
"no manager exists"
]
}
},
"value": "{\"value\": \"$managersMail\",\"type\": \"manager\"}"
}
},
"attributes": {
"cloudDelimiter": ",",
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": true
},
{
"name": "domainName",
"transform": {
"type": "static",
"attributes": {
"value": ""
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "projectId",
"transform": {
"type": "static",
"attributes": {
"value": ""
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "serviceAccountId",
"transform": {
"type": "static",
"attributes": {
"value": ""
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "displayName",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "displayName"
}
},
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
}
]
}