add_user_to_usergroup
Facts
DescriptionAdd a user to a user group
Schema
Schema.slack.functions.AddUserToUsergroupSchema reference
slack#/functions/add_user_to_usergroupRequired scopes
Input Parameters
Required Input Parameters
user_idsSchema.types.arrayRequiredA list of user IDs to add to the User Group
Examples
["U111AAA111","U222BBB222"]usergroup_idSchema.slack.types.usergroup_idRequiredThe ID for the user group to add the user to
Examples
S123ABC456Output Parameters
Optional Output Parameters
usergroup_idSchema.slack.types.usergroup_idOptionalThe ID for the user group that now contains the added user(s)
Examples
S123ABC456Usage info
Your workspace has user groups and you want to automate adding users to them in workflows? This function is here to make your user groups grow!
Example workflow step
Here is an example of how to use this function in a workflow step.
const addUserToUsergroupStep = ExampleWorkflow.addStep(
Schema.slack.functions.AddUserToUsergroup,
{
usergroup_id: "S0123ABC456",
user_ids: ["U111AAA111", "U999ZZZ999"],
},
);