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

Restricting characters in systemUserName in AD connection

Sitarasmi
Regular Contributor
Regular Contributor

Hi Team,

We have a requirement to send max 20 characters only for systemUserName in Active Directory while creating AD account.

Please check & share possible solution to achieve this.

Thanks,

Sitarasmi

2 REPLIES 2

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @Sitarasmi,

You may try using the substring,
For Example,
"sAMAccountName": "${user.systemUserName.length > 20 ? user.systemUserName.substring(0, 20) : user.systemUserName}"


Thanks,

If you find the above response useful, Kindly Mark it as "Accept As Solution".

Sitarasmi
Regular Contributor
Regular Contributor

Thanks Sudhesh, will try this.