Usergroup Args
data class UsergroupArgs(val channels: Output<List<String>>? = null, val description: Output<String>? = null, val handle: Output<String>? = null, val name: Output<String>? = null, val users: Output<List<String>>? = null) : ConvertibleToJava<UsergroupArgs>
Manages a Slack User Group.
Required scopes
This resource requires the following scopes:
usergroups:read The Slack API methods used by the resource are:
usergroups.users.update If you get
missing_scope
errors while using this resource check the scopes against the documentation for the methods above.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.slack.Usergroup;
import com.pulumi.slack.UsergroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myGroup = new Usergroup("myGroup", UsergroupArgs.builder()
.channels("CHANNEL00")
.description("Test user group")
.handle("test")
.users("USER00")
.build());
}
}
Content copied to clipboard
Import
slack_usergroup
can be imported using the ID of the group, e.g.
$ pulumi import slack:index/usergroup:Usergroup my_group S022GE79E9G
Content copied to clipboard