Get group property action in Active Directory
- Updated: 2024/01/22
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
- Create a bot.
- On the left panel, click Automation.
A list of available bots and forms is displayed.
- Click .
- Enter a name for the bot: Active_Directory_group Operation.
- Click Create and Edit.
- On the left panel, click Automation.
- Use the Connect
action to establish a connection with an Active Directory server.
- Double-click or drag the action.
- Enter Default in the Session name field.
- 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
. - 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.
- Use the Create group
action to create a new group.
- Double-click or drag the action.
- Enter Default in the Session name field.
- Enter AA_India_Documentation in the Group name field.
- Select the group scope as Global.
- Select the group type as Distribution.
- Use the Set group property to assign a value to a group
property.
- Double-click or drag the action.
- Enter Default in the Session name field.
- Enter AA_India_Documentation in the Group name field.
- Enter displayName in the Property field.
- Enter writers in the Value field.
- Use the Get group property to retrieve a specific property
value for the group.
- Double-click or drag the action.
To understand the most commonly used Active Directory attributes list, see Active Directory package
- Enter Default in the Session name field.
- Enter AA_India_Documentation in the Group name field.
- Enter displayName in the Property field.
- Select SampleString variable to assign value.
- Double-click or drag the action.
- Use Message box
action to print the values.
- Double-click or drag the Message box action.
- In the Enter the message to display field, select $SampleString$.
- Click Save and then Run.
The bot retrieves the value as writers.