# addGroupMember {#addgroupmember}

## Syntax {#syntax}

`addGroupMember(userIds, groupIds)`

## Arguments {#arguments}

**userIds** is a STRING scalar/vector indicating a user name or multiple user names.

**groupIds** is a STRING scalar/vector indicating a group name or multiple group names.

*userIds* and *groupIds* cannot both be vectors.

## Details {#details}

Add a user to a group or multiple groups, or add multiple users to a group.

It can only be executed by an administrator.

## Examples {#examples}

```
addGroupMember(`AlexSmith`JoshAllen, `production);
```

