In create profile we are populating the home directory based on the below.
For example, if samaccountname is CCA0112 it will populate \comapany.org\assoc2\CCA0112, which works fine. But the Samaccountname is not always fixed in length. Sometimes, it will have more than 7 or 8 or 9 values like CCA026781
I need to get the Samaccountname last value always regardless of length.
Any way to do that?
{
"name": "homeDirectory",
"transform": {
"attributes": {
"value": "\\\\company.org\\assoc$sAMAccountName.substring(6,7)\\\\$sAMAccountName"
},
"type": "static"
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
}