Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Error Provision while creating account in AD

Rizkiansyah
New Contributor II
New Contributor II

Hi Team,

i have some issue when try to provision account to AD. 
this for log error :

Error while creating account in AD - Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed: SimpleTemplateScript63.groovy: 1: unexpected char: ''' @ line 1, column 302. } else { 'CN='+user.firstname+' ^ 1 error


appriciated for any feedback on this.

Thankyou

MRM

 

4 REPLIES 4

DaanishJawed
Saviynt Employee
Saviynt Employee

Hi @Rizkiansyah ,

Thanks for reaching out.

Can you share your CreateAccount JSON?

Thanks

 

Hi Daanish,

Thankyou for you reply,
her for my CreateAccount JSON  :

{
"userPrincipalName":"${user.username+'@example.com'}",
"accountExpires": "0",
"cn": "${user.displayname}",
"co": "${user.country}",
"company": "${user.companyname}",
"department": "${user.departmentname}",
"displayname": "${user.displayname}",
"employeeID": "${user.employeeid}",
"employeetype": "${user.employeeType}",
"givenName": "${user.firstname}",
"l": "${user.city}",
"mail": "${user.email}",
"name": "${user.displayname}",
"objectClass": [
"top",
"person",
"organizationalPerson",
"user"
],
"physicaldeliveryofficename": "${user.location}",
"pwdLastSet": "0",
"sAMAccountName": "${task.accountName}",
"sn": "${user.lastname}",
"st": "${user.state}",
"streetAddress": "${user.street}",
"telephoneNumber": "${user.phonenumber}",
"mobile": "${user.secondaryPhone}",
"title": "${user.jobDescription}",
"manager": "${managerAccount==null?'':managerAccount.accountID}",
"userAccountControl": "544",
"description": "Account provisioned by Saviynt"
}


Thankyou

MRM

Hi @Rizkiansyah ,

Can you also share the Account Name Rule for this endpoint?

Thanks.

Rizkiansyah
New Contributor II
New Contributor II

Hi Daanish,

sory for late reply,
i just progress in another apps to integrate.

this is my account name rule : 
concat(replace(users.firstname, ' ', ''), substring('.',1,1),
replace(users.lastname, ' ', ''))###concat(replace(users.firstname, ' ',
''), substring('.',1,1), replace(users.lastname, ' ', ''),
'1')###concat(replace(users.firstname, ' ', ''), substring('.',1,1),
replace(users.lastname, ' ', ''), '2')###concat(replace(users.firstname,
' ', ''), substring('.',1,1), replace(users.lastname, ' ', ''), '3')


appriciate for your feedback.


Thankyou