Attach users to a group by email
POST/groups/:group_id/users/by-email
Answers 200 with status: attached, or status: rejected-members and one rejection per email that matches no user (nothing attached). Newly attached users receive an email.
Requires grant:write and at least the org-admin role.
Request
Responses
- 200
- 400
- 401
- 404
- 422
The outcome, in data.status
An ID in the path is not a valid integer
UNAUTHORIZED: the token lacks the grant:read / grant:write ability, or the caller lacks the required role in the organization
GROUP_NOT_FOUND: the group does not exist in the current organization. A group of another organization is a 404 too, including for an admin of a member organization asking for its sponsor's group
Validation failed