As we all know you can create an Active Directory User account with RES Automation Manager. But in Europe a challenge will come to create user accounts without spaces. We get a lot of requests on how you can achieve this. So let’s take the steps to achieve this.

The first steps are to create a logonname based on the following rules. The logonname should be based on last name concatenated with the first character of the first name. To give an example Anne Plancius should get the logonname PlanciusA.

In RES Automation Manager you can achieve this with the following steps:

  1. Create a set of parameters which the user needs to fill when he schedules the job with the following names:
    1. FirstName to store the first name of the user you want to create
    2. LastName to store the last name of the user you want to create
    3. Create a parameter in which you only store the first character of the first name. You can create this parameter based on the parameter FirstName, so you do not have to ask the user to give it when he schedules the job.
      1. FirstCharacterOfFirstName:@substring($[FirstName],1,1)
    4. Create a parameter LogonName which will be filled automatically with the following value, so you do not request input from the user who schedules the job:
      1.   $[LastName]$[FirstCharacterOfFirstname]

Now you are able to create the following logonname PlanciusA based upon the input FirstName Anne and LastName Plancius. But you will have a problem when you want to create a logonname for Rob de Korte.

So how will you get rid of the space in the name ‘de Korte’, and get the following logonname: deKorteR.

  1. Create a set of parameters which the user needs to fill when he schedules the job with the following names:
    1. FirstName to store the first name of the user you want to create
    2. LastName to store the last name of the user you want to create
    3. Create a parameter in which you only store the first character of the first name. You can create this parameter based on the parameter FirstName, so you do not have to ask the user to give this in when he schedules the job.
      1. FirstCharacterOfFirstName:@substring($[FirstName],1,1)
    4. Create a parameter in which you store the last name without spaces. You can create this parameter based on the parameter LastName, so you do not have to ask the user to give this in when he schedules the job:
      1. LastNameWithoutSpaces:@replace($[LastName], ,)
    5. Create a parameter LogonName which will be filled automatically with the following value, so you do not request input from the user who schedules the job:
        1. $[LastNameWithoutSpaces]$[FirstCharacterOfFirstname]

Of course you can do this in less parameters and then you will get the following steps:

So how will you get rid of the space in the name ‘de Korte’, and get the following logonname: deKorteR.

  1. Create a set of parameters which the user needs to fill when he schedules the job with the following names:
    1. FirstName to store the first name of the user you want to create
    2. LastName to store the last name of the user you want to create
    3. Create a parameter LogonName which will be filled automatically with the following value, so you do not request input from the user who schedules the job:
        1. @replace($[LastName], ,)@substring($[FirstName],1 ,1)

Now you can create your own accounts automatically, based on the first name and the last name