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 Slack 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

Output parameters

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

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",
  },
);