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.

     

    Add an Additional Attribute

    To configure an additional attribute specific to just one operation,

    • Click on the Add Addition Attribute link.
    • Enter the LDAP name of the new attribute.
    • Enter the appropriate value for the attribute.
    • 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,

    • Click on the Configure Custom Attribute link.
    • 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.
    • Once you are in the admin tab, you will find the list of all available custom attributes in the Custom LDAP Attributes.
    • Click on the Add Attribute button located in the top right corner just above the custom attributes list.
    • 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.
    • 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,

    • Select the Run custom script on successful user creation option.
    • In the Script Command text box that opens up on selecting the run custom script option, specify the location of the script.
    • 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%
    • 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

    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