Get group property action in Active Directory

The Get group property action in the Active Directory package enables you to retrieve a specific property value for the group.

Settings

  • Enter the same session name as the one you used in the Connect action.
  • Enter the group name.
  • Enter the property.
  • Assign the value to a string variable.

Example of using Get group property action

  1. Create a bot.
    1. On the left panel, click Automation.

      A list of available bots and forms is displayed.

    2. Click Create New > Bot.
    3. Enter a name for the bot: Active_Directory_group Operation.
    4. Click Create and Edit.
  2. Use the Connect action to establish a connection with an Active Directory server.
    1. Double-click or drag the Active Directory > Connect action.
    2. Enter Default in the Session name field.
    3. Enter the LDAP URL in the Parent path field: LDAP://ec2-192.168.2.60.us-east-1.compute.amazonaws.com/CN=Users,DC=aaetest,DC=net.
    4. In the Login username and Login password fields, enter your user name and password. For example, select Insecure string tab and enter the following values:
      • Login username: ksmith.doe
      • Login password: aa_testqwerty@123
      Note: Replace the values in the above fields with your LDAP URL, Username and password credentials.
  3. Use the Create group action to create a new group.
    1. Double-click or drag the Active Directory > Create group action.
    2. Enter Default in the Session name field.
    3. Enter AA_India_Documentation in the Group name field.
    4. Select the group scope as Global.
    5. Select the group type as Distribution.
  4. Use the Set group property to assign a value to a group property.
    1. Double-click or drag the Active Directory > Set group property action.
    2. Enter Default in the Session name field.
    3. Enter AA_India_Documentation in the Group name field.
    4. Enter displayName in the Property field.
    5. Enter writers in the Value field.
  5. Use the Get group property to retrieve a specific property value for the group.
    1. Double-click or drag the Active Directory > Get group property action.

      To understand the most commonly used Active Directory attributes list, see Active Directory package

    2. Enter Default in the Session name field.
    3. Enter AA_India_Documentation in the Group name field.
    4. Enter displayName in the Property field.
    5. Select SampleString variable to assign value.
  6. Use Message box action to print the values.
    1. Double-click or drag the Message box action.
    2. In the Enter the message to display field, select $SampleString$.
    3. Click Save and then Run.

      The bot retrieves the value as writers.