Run query action in Active Directory
- Updated: 2024/01/22
Run query action in Active Directory
The Run query action in the Active Directory package enables you to run a specified Active Directory query. The query results are stored in a list variable, either for object names or LDAP paths, depending on the option selected.
Settings
- Enter the same session name as the one you used in the Connect action.
- Input the query.
Consider the following examples:
Input query Output (&(objectCategory=person)(objectClass=user)(cn=aa*)) List all users starts with aa (&(objectCategory=group)(cn=group-*)) List all groups starts with group- (&(objectCategory=group)) List all groups (&(objectCategory=person)(objectClass=user)(cn=John)) List the exact user whose name is John (&(objectCategory=person)(objectClass=user)(cn=John)(displayName:John Woods)) List the exact user whose name is John and displayName = John Woods. - Specify the return type. Select either the Object Name or LDAP Path option.
- Assign the value to a string variable.