Skip to main content
Question

AD Orchestration - Account name length and special chars

  • 12 July 2024
  • 1 reply
  • 23 views

Hi all,

as AD user creation is a critical step in the onboarding process, I want to avoid any technical limitations. Here espacially the samAccountName is limited to 20 characters. In the onboarding process, which will start at HR, the given name and surname is filled in without any restrictions.

As an additional challange in German language we have special characters like: ä, ö, ü and ß.

I would like somehow to use the expression builder to check the name for the charachters and replace them. Also check the lenght of given name + surname in the format: GivenName.SurName < 20 chars

Any idea how to create such expression?

1 reply

Badge

Okay, managed to use Liquid Filter for the special chars but how to use the truncate filter?

In my case the samAccountName is like:

{{ticket.onboarding_request.actor_1.cf_vorname | downcase | replace: "ä", "ae" | replace: "ü", "ue" | replace: "ö", "oe"}}.{{ticket.onboarding_request.actor_1.cf_nachname | downcase | replace: "ä", "ae" | replace: "ü", "ue" | replace: "ö", "oe"}}

How do I add the truncate filter here?

Reply