CreationRule for the userPrincipalName

I created a CreationRule for the userPrincipalName in the pnServer.config.xml.

<changeConfiguration>
  <activeDirectory>
    <PropertiesDetails>
      <userPrincipalName. CreationRule>{givenname}. {sn}@[fqdn]</userPrincipalName. CreationRule>
    </PropertiesDetails>
  </activeDirectory>
</changeConfiguration>

Now I would like certain letters to be replaced (e. g. ä,ö,ü,ß). I tried it with <subst>, but that didn't work.

How do I change the pnServer.config.xml?

  • Hi Dirk,

    maybe you can adapt from the following:

    {
            "Name": "samaccountname",
            "IsHiddenFromRequester": false,
            "Definition": {
              "Type": "TextField",
              "IsEnabled":true,
              "Label": "SAM-Account-Name",
              "IsRequired": true,
              "Constraints": {
                "CreationRule":"<subst>({sn})<toUpperCase>(<subst>(<firstLetter>({givenname})))",
                "ForbiddenChars": ["ö","ä","ü","ß"],
                "ValidationInformation": "keine Umlaute!"
              }
             }
          },

    This is a snippet from one of our templates for account creation and how we build the SAMAccountName.

    Cheers,

    Matthias.