Skip to main content

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​

InputTypeRequiredDefaultWhat it is
UsernameStringYesLogon name (sAMAccountName or UPN), full name, or distinguished name.
Group (distinguished name)StringYesGroup distinguished name, or its sAMAccountName or common name.
SessionStringNoadSession name.
More usernamesListNoMore users to add in the same step (logon name, full name or distinguished name each).

Outputs​

OutputTypeWhat it is
changedNumberHow many users were added (users already in the group are not counted).