groups_put_members {civis}R Documentation

Add a user to a group

Description

Add a user to a group

Usage

groups_put_members(id, user_id)

Arguments

id

integer required. The ID of the group.

user_id

integer required. The ID of the user.

Value

A list containing the following elements:

id

integer, The ID of this group.

name

string, This group's name.

createdAt

string, The date and time when this group was created.

updatedAt

string, The date and time when this group was last updated.

description

string, The description of the group.

slug

string, The slug for this group.

organizationId

integer, The ID of the organization this group belongs to.

organizationName

string, The name of the organization this group belongs to.

memberCount

integer, The number of active members in this group.

totalMemberCount

integer, The total number of members in this group.

defaultOtpRequiredForLogin

boolean, The two factor authentication requirement for this group.

roleIds

array, An array of ids of all the roles this group has.

defaultTimeZone

string, The default time zone of this group.

defaultJobsLabel

string, The default partition label for jobs of this group.

defaultNotebooksLabel

string, The default partition label for notebooks of this group.

defaultServicesLabel

string, The default partition label for services of this group.

lastUpdatedById

integer, The ID of the user who last updated this group.

createdById

integer, The ID of the user who created this group.

members

array, An array containing the following fields:

  • id integer, The ID of this user.

  • name string, This user's name.

  • username string, This user's username.

  • initials string, This user's initials.

  • online boolean, Whether this user is online.

  • email string, This user's email address.

  • primaryGroupId integer, The ID of the primary group of this user.

  • active boolean, Whether this user account is active or deactivated.


[Package civis version 3.1.2 Index]