add_user_to_usergroup
Facts
Description
Schema
Schema reference
Required scopes
No additional scopes required
Input Parameters
Output Parameters
Usage 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"],
},
);