Skip to main content

Usergroup object

A usergroup object contains information about a group of users.

{
"id": "S123ABC456",
"team_id": "T060RNRCH",
"is_usergroup": true,
"name": "Workspace Admins",
"description": "A group of all Administrators on your workspace.",
"handle": "admins",
"is_external": false,
"date_create": 1446598059,
"date_update": 1446670362,
"date_delete": 0,
"auto_type": "admin",
"created_by": "USLACKBOT",
"updated_by": "U060RNRCZ",
"deleted_by": null,
"prefs": {
"channels": [],
"groups": []
},
"users": [
"U060RNRCZ",
"U060ULRC0",
"U06129G2V",
"U061309JM"
],
"user_count": "4"
}

Usergroup object fields

FieldTypeDescription
auto_provisionBooleanWhether members are auto-provisioned into this group. Required field.
auto_typeString or nullCan be admins for a Workspace Admins group, owner for a Workspace Owners group or null for a custom group.
channel_countIntegerNumber of channels associated with this usergroup.
channelsArray of channel_idChannel IDs associated with this usergroup.
created_byString or nullUser ID of the member who created the user group.
date_createUnix timestampWhen the user group was created.
date_deleteUnix timestampNon-zero value for disabled groups.
date_updateUnix timestampWhen the user group was last updated.
deleted_byString or nullUser ID of the member who deleted the user group.
descriptionStringExplains the purpose of the group (optional).
enterprise_idString (enterprise_id)Enterprise organization ID this usergroup belongs to.
enterprise_subteam_idStringEnterprise-level subteam ID. Required field.
handleStringIndicates the value used to notify group members via a mention without a leading @ sign.
idStringThe ID of the usergroup.
is_editing_restrictedBooleanWhether editing the usergroup is restricted.
is_externalBooleanIndicates if the user group is external.
is_idp_groupBooleanWhether this usergroup is synced from an identity provider (SCIM/SSO).
is_membership_lockedBooleanWhether membership changes are locked.
is_org_levelBooleanWhether this is an org-level (enterprise-wide) usergroup.
is_sectionBooleanWhether this usergroup represents a sidebar section.
is_subteamBooleanWhether this is a subteam. Required field.
is_usergroupBooleanIndicates if the object is a user group.
is_visibleBooleanWhether the usergroup is visible to members.
nameStringIndicates the friendly name of the group.
prefsObjectContains default channels and groups (private channels) that members of this group will be invited to upon joining, in addition to file_id (string) and additional_channels (array of channel_id).
team_idStringThe ID of the team.
teamsArray of workspace_idWorkspace IDs this usergroup spans (for org-level groups).
updated_byString or nullUser ID of the member who updated the user group.
user_countIntegerIndicates the total number of users in a group.
usersArrayContains a list of user object id values which belong to the user group. This parameter is included if the include_users option is enabled on some API endpoints.