I have created a rule to calculate a unique SAMAccountName for Active Directory, which works great. This rule is referenced in the Account Provisioning Policy for AD. I want to use the result of this rule as the basis for other attribute values within the same provisioning policy. Does anyone have an idea how this can be done. I want to avoid running the same rule multiple times for different attribute transforms in the same provisioning policy as it is unnecessary and will just use processing power that’s not required. The code snippets shows How i generate the sAMAccountName, but i want to use the result to form the ‘mail’ attribute (code example doesn’t work. How can this be done without multiple calls to the rule itself?
{
"name": "sAMAccountName",
"transform": {
"type": "rule",
"attributes": {
"name": "sAMAccountName Generator"
}
},
"attributes": {
"SourceIds": [
"1a8c201f46eb47a3b597a13c8183d864"
]
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "mail",
"transform": {
"type": "static",
"attributes": {
"values": "$(sAMAccountName)@libertycloud.biz"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},