Skip to main content

Add a user create action

App tutorial · Step 13 of 25

Build a three-form app that creates an Active Directory user and manages its group memberships.

In this step, we'll add a button to the name_generation form that launches an AD create user action.

  1. Drag a Button beneath the name-value list and configure it:

    PropertyValue
    AlignmentRight
    Button styleSuccess
    Button textCreate User
    Margin TRBL__3_
  2. With the button still selected, go to the Actions tab and add an action.

  3. In the Form Action dialog box, set the following options: - Action Type: Target System Function Execution - Description: Create AD User for {new_FirstName} {new_LastName} - System: AD - Function: UserCreate

  4. Configure these Input mappings:

    NameValue sourceConstant value or variable
    cnVariableng_cn
    pathConstantYour user OU path
    accountPasswordConstantTools4ever.Goes.4.The.Win
    employeeIDNone(blank)
    EnabledConstanttrue
    givenNameVariablenew_FirstName
    sAMAccountNameVariableng_sAMAccountName
    snVariablenew_LastName
    userPrincipalNameVariableng_userPrincipalName

  5. Click Save.

  6. We'll click Save to save our progress so far.