Help Centre › Building Processes
This article describes the RPA Active Directory functionality to get a user's group memberships.
For a full list of available functions, please read ACTIVE DIRECTORY functions.
Description
The ACTIVE DIRECTORY Get user groups function retrieves all groups that a specified user belongs to.
Setting it up
To use the ACTIVE DIRECTORY Get user groups function, follow these instructions:
{{popups:rpas/add:action=ad-get-user-groups}}
Once on a process map:
- Navigate to the process where you would like to add the ACTIVE DIRECTORY Get user groups function
- Click on the green button's drop-down (right side of the green button labelled "Process")
- On the menu that appears, click on the "+ Activity" item
- From here you can select the ACTIVE DIRECTORY Get user groups option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Name | Yes | Text | - | The name of the Active Directory connection to use |
| User DN | Yes | Text | - | The distinguished name of the user |
| Variable | No | Text | groups | The variable name to store the results |
Output variables
The {groups} variable contains an array of group distinguished name strings.
Errors
| Error | Description |
|---|---|
| Connection not found | No connection exists with the specified name |
| User not found | No user was found with the specified DN |
Tips
- Returns direct group memberships including nested groups via the memberOf attribute