This is reference content about building functions and workflows. Learn more if you're not yet familiar with this new Slack platform paradigm.

create_usergroup

Create a new user group

Facts

Schema ID

Schema.slack.functions.CreateUsergroup

Schema reference

slack#/functions/create_usergroup

Required scopes

Related methods

Input parameters

Required parameters
The name of the user group to be created
  • Monetization Tiger Team
  • Scruffy-looking nerf-herders
The @usergroup handle that will be used to address the group in conversation
  • tiger-team-money
  • nerf-herders
Optional parameters
Select a team
  • T1234567890

Output parameters

Required parameters
The ID for the user group you just created
  • S123ABC456

Usage guide

Create a new user group. You can add members to it later.

Example workflow step

const createUsergroupStep = ExampleWorkflow.addStep(
  Schema.slack.functions.CreateUsergroup,
  {
    usergroup_name: "Baking enthusiasts",
    usergroup_handle: "cookies",
  },
);