Groups.addMembers (Method)
Adds members to a group. These new members can be users or other groups.
Returns:
Void
Arguments:
Name | Type | Required | Description |
---|---|---|---|
groupID | GroupID_Deletable_NonVisitorContext | Required | A group's ID. |
userGroupIDList | UserGroupIDList | Required | A comma-delimited list of user and group IDs. |
ignoreWarnings | Boolean | Optional. Defaults to 'false'. | Boolean value indicating that you understand the security risk of adding visitor context groups to other groups. Command throws an error if visitor context groups are being added and it's not true. |
Context:
License Requirements | None |
Permission Requirements | Group:Admin |
Deny Context | None |
Require Context | AuthoringEnabled |
Author Lock | (not required) |
Transaction Logging | If transaction logging is enabled at the customer level, calls to this method will be logged |
Customization | Customization is not supported for this method. |
Error Codes:
Code | Error Message |
---|---|
24001 | One or more of the specified member groups is already a parent or an ancestor of the specified group. |
24004 | You cannot add members to a group because you are not an administrator for the group. |
24006 | UserGroupID $1 is already a member of the group whose ID is $2. |
24007 | A group cannot be member of itself. |
24023 | You cannot add an expired user as a member to the group. |
Notes:
None