Add users to group
Add one or more users to a group (no error for users already in it).
Command in the Active Directory toolkit · id ooa.active_directory/add_to_group · 4 inputs (2 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Username | String | Yes | Logon name (sAMAccountName or UPN), full name, or distinguished name. | |
| Group (distinguished name) | String | Yes | Group distinguished name, or its sAMAccountName or common name. | |
| Session | String | No | ad | Session name. |
| More usernames | List | No | More users to add in the same step (logon name, full name or distinguished name each). |
Outputs
| Output | Type | What it is |
|---|---|---|
| changed | Number | How many users were added (users already in the group are not counted). |