Hi,
I’m experiencing the following error message while trying to create samaccountname in AD. I created a custom tranform that calculates different patterns for samaccountname. I’m currently testing the transform for identities with the same name but it seems that its only calculating the first pattern, as a results, creates the same samaccountname and failing since the object already exists in AD. Can you please advise.
error message:
Exception occurred while executing the RPCRequest: Errors returned from IQService. “The object already exists. 00000524: UpdErr: DSID-031A11DA, problem 6005 (ENTRY_EXISTS), data 0 . HRESULT:[0x80071392] For identity: CN=John Doe1,OU=testing, DC=Test, DC=testing, DC=Test”
Here’s the transform i created:
[
{
"name": "Account",
"description": null,
"usageType": "CREATE",
"fields": [
{
"name": "ObjectType",
"transform": {
"type": "static",
"attributes": {
"value": "User"
}
},
"attributes": {
"template": "CN=$(preferreddisplayname)$(uniqueCounter),OU=User Test,DC=Test,DC=Test,DC=Test",
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "distinguishedName",
"transform": {
"type": "rule",
"attributes": {
"name": "Create Unique Account ID"
}
},
"attributes": {
"template": "CN=$(preferreddisplayname)$(uniqueCounter),OU=User Test,DC=Test,DC=Test,DC=Test",
"cloudMaxUniqueChecks": "50",
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "sAMAccountName",
"transform": {
"attributes": {
"fi1": {
"type": "lower",
"attributes": {
"input": {
"type": "substring",
"attributes":{
"input":{
"type":"identityAttribute",
"attributes":{
"name": "preferredfirstname"
}
},
"begin": 0,
"end": 1
}
}
}
},
"fi2": {
"type": "lower",
"attributes": {
"input": {
"type": "substring",
"attributes":{
"input":{
"type":"identityAttribute",
"attributes":{
"name": "preferredfirstname"
}
},
"begin": 0,
"end": 2
}
}
}
},
"fi3": {
"type": "lower",
"attributes": {
"input": {
"type": "substring",
"attributes":{
"input":{
"type":"identityAttribute",
"attributes":{
"name": "preferredfirstname"
}
},
"begin": 0,
"end": 3
}
}
}
},
"ln": {
"attributes": {
"input": {
"attributes": {
"name": "preferredlastname"
},
"type": "identityAttribute"
}
},
"type": "lower"
},
"patterns": [
"$fi1$ln",
"$fi2$ln",
"$fi3$ln(uniqueCounter)"
],
"sourceCheck": false
},
"type": "usernameGenerator"
},
"attributes": {
"cloudMaxUniqueChecks": "50",
"cloudMaxSize": "20",
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "displayName",
"transform": {
"type": "identityAttribute",
"attributes": {
"name": "displayName"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "manager",
"transform": {
"type": "rule",
"attributes": {
"name": "Get Manager LDAP DN"
}
},
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "password",
"transform": null,
"attributes": {
"cloudRequired": "true"
},
"isRequired": false,
"type": "secret",
"isMultiValued": false
},
{
"name": "givenName",
"transform": {
"attributes": {
"name": "firstname"
},
"type": "identityAttribute"
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "sn",
"transform": {
"attributes": {
"name": "lastname"
},
"type": "identityAttribute"
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "pwdLastSet",
"transform": {
"attributes": {
"value": "false"
},
"type": "static"
},
"attributes": {},
"isRequired": false,
"type": "boolean",
"isMultiValued": false
},
{
"name": "IIQDisabled",
"transform": {
"type": "static",
"attributes": {
"value": "true"
}
},
"attributes": {},
"isRequired": false,
"type": "boolean",
"isMultiValued": false
},
{
"name": "CN",
"transform": null,
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
}
]
},
{
"name": "Create Group",
"description": null,
"usageType": "CREATE_GROUP",
"fields": [
{
"name": "distinguishedName",
"transform": null,
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "sAMAccountName",
"transform": null,
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
}
]
},
{
"name": "Update Group",
"description": null,
"usageType": "UPDATE_GROUP",
"fields": [
{
"name": "GroupType",
"transform": null,
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "GroupScope",
"transform": null,
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "description",
"transform": null,
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
},
{
"name": "mailNickname",
"transform": null,
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
}
]
}
]