User Creation Templates - Options in Custom Attributes Tab

    Using the options in this tab, you can configure new custom attributes while you create new user accounts. The advantage here is that you can choose to add any custom attribute that you have configured in your Active Directory to ADManager Plus for only one operation or add it permanently to ADManager Plus.

    You also have the choice of running a custom script after a user account is created by specifying any custom script.

    Custom scripts allow you to perform tasks without disrupting your organization's pre-existing processes. You can add custom scripts, to perform any action like notifying a team manager whenever an employee has been added to their team, sending a welcome email that will be automatically triggered whenever a user account is provisioned, etc. Here are a few sample scripts.

    Add an Additional Attribute

    To configure an additional attribute specific to just one operation,

    1. Click on the Add Addition Attribute link.
    2. Enter the LDAP name of the new attribute.
    3. Enter the appropriate value for the attribute.
    4. Click on OK to save this attribute.

    Back to User Template Creation

    Configure A New Custom Attribute

    To configure a new or custom attribute from your Active Directory to ADManager Plus permanently,

    1. Click on the Configure Custom Attribute link.
    2. A confirmation window will pop up. If you click on OK, you will be redirected to LDAP Attributes section of Custom Settings in the Admin tab of ADManager Plus to configure a new attribute.
    3. Once you are in the admin tab, you will find the list of all available custom attributes in the Custom LDAP Attributes.
    4. Click on the Add Attribute button located in the top right corner just above the custom attributes list.
    5. In the Custom Attribute window that pops up, specify a display name and LDAP name for the new attribute, select an appropriate data type and finally, select the reports and management tasks that this attribute should be associated with.
    6. Click on Add to save this new custom attribute in your Active Directory.

    Back to User Template Creation

    Run A Custom Script On Successful User Creation

    ADManager Plus user templates also offer the option of executing a custom script as soon as a new user account is successfully created. To specify a custom script,

    1. Select the Run custom script on successful user creation option.
    2. In the Script Command text box that opens up on selecting the run custom script option, specify the location of the script.
    3. Following are the accepted / supported formats for specifying the script location:
      • cscript c:\dir1\scr.vbs %userName%
      • cscript c:\dir~1\scr.vbs %userName%
      • cscript scr.vbs %userName%
    4. Also, instead of specifying a naming format, you can explicitly specify the user name; in this case you must provide the path in the following format:
      • cscript "c:\dir 123\scr.vbs" testuser

    Use cases with sample scripts

    1. Sending welcome emails to newly provisioned users

      Welcome emails with the account password (with instructions to change them after they login, of course), seating information, or a warm welcome note, sent to new employees makes the induction process easy for both the HR team and the employees. ADManager Plus makes it easier by allowing you to automate the sending of welcome emails for newly provisioned users, through the custom script feature in user templates. The sample script for sending a welcome email can be downloaded from here.

    2. Automatically change the team members' 'Manager' attribute when the manager's title is modified

      Whenever a manager or a team lead's title attribute gets modified, ADManager Plus allows you to add a custom script to change the the manager attribute value for the team members too, instead of going through each of their direct reports one by one.The sample script for this can be downloaded from here.

    Note:

    • You can also run the custom script using either
      - PowerShell by specifying the script location as: powershell c:\dir1\scr.vbs %userName%, or
      - As a batch/cmd file by specifying the name of the file suffixed with '.bat/.cmd' in the 'script command' box.

    • The path name of the script file should not contain spaces if you use naming formats like %userName% in it. In case of space in the path or file name, use '~' since the string before and after the space would be taken as input parameters and result in erroneous operation.

     

    Back to User Template Creation