Slack v0.0.12 Slack.UserGroup

Functions for a team’s User Groups

Summary

Functions

Create a new user group

Disable a user group

Enable a user group

List user groups for the team

Update a user group

Functions

create(client, body \\ [])

Create a new user group.

https://api.slack.com/methods/usergroups.create

Examples

Slack.UserGroup.create(client, name: "usergroup")
disable(client, body \\ [])

Disable a user group.

https://api.slack.com/methods/usergroups.disable

Examples

Slack.UserGroup.disable(client, usergroup: "S0604QSJC")
enable(client, body \\ [])

Enable a user group.

https://api.slack.com/methods/usergroups.enable

Examples

Slack.UserGroup.enable(client, usergroup: "S0604QSJC")
list(client, query \\ [])

List user groups for the team.

https://api.slack.com/methods/usergroups.list

Examples

Slack.UserGroup.list(client)
update(client, body \\ [])

Update a user group.

https://api.slack.com/methods/usergroups.update

Examples

Slack.UserGroup.update(client, usergroup: "S0604QSJC", name: "newname")