@DeepanshuBisht Yes, I am creating the create policy as below
{
"name": "SalesForce Provisioning Policy",
"description": null,
"usageType": "CREATE",
"fields": [
{
"name": "Alias",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "uid"
}
},
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "Username",
"transform": {
"name": "create username",
"type": "concat",
"attributes": {
"values": [
{
"type": "identityAttribute",
"attributes": {
"name": "email"
}
},
".gdw"
]
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "Email",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "email"
}
},
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "FirstName",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "firstname"
}
},
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "LastName",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "lastname"
}
},
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "TimeZoneSidKey",
"transform": {
"type": "static",
"attributes": {
"value": "Europe/Berlin"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "LocaleSidKey",
"transform": {
"type": "static",
"attributes": {
"value": "de_DE"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "IsActive",
"transform": {
"attributes": {
"input": {
"attributes": {
"name": "cloudLifecycleState"
},
"type": "identityAttribute"
},
"table": {
"active": "true",
"default": "false",
"special": "true"
}
},
"type": "lookup"
},
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "LanguageLocaleKey",
"transform": {
"type": "static",
"attributes": {
"value": "de"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "EmailEncodingKey",
"transform": {
"type": "static",
"attributes": {
"value": "UTF-8"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "FederationIdentifier",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "uid"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "UserType",
"transform": {
"type": "static",
"attributes": {
"value": "STANDARD"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "AccountName",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "uid"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "Country",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "country"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "UserPermissionsMarketingUser",
"transform": {
"type": "static",
"attributes": {
"value": "True"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
}
]
},
{
"name": "SalesForce Disable Provisioning Policy",
"description": null,
"usageType": "DISABLE",
"fields": [
{
"name": "Username",
"transform": {
"name": "create username",
"type": "concat",
"attributes": {
"values": [
{
"type": "identityAttribute",
"attributes": {
"name": "email"
}
},
"zzz"
]
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "FederationIdentifier",
"transform": {
"name": "create FederationIdentifier",
"type": "concat",
"attributes": {
"values": [
{
"type": "identityAttribute",
"attributes": {
"name": "uid"
}
},
"0"
]
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
}
]
}
]
I am trying to create an account with email.gdw value first and then when account is disabled just moving that value to junk value. So next time when user rejoins the organization username with email.gdw value account is created.
So currently user will have 2 accounts one with enabled and one with disabled with username zzz.
I want to modify this code in disabled to add dynamic value like email.zzz$uniqueencounter, however if i try to add it is creating new account and is erroring out.
Can you please suggest what i can use to achieve the creation of duplicate accounts with new usernames when user re-joins the system.