Slack v0.2.1 Slack.UserGroup View Source

Functions for a team's User Groups

Link to this section 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.

Link to this section Functions

Create a new user group.

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

Examples

Slack.UserGroup.create(client, name: "usergroup")

Disable a user group.

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

Examples

Slack.UserGroup.disable(client, usergroup: "S0604QSJC")

Enable a user group.

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

Examples

Slack.UserGroup.enable(client, usergroup: "S0604QSJC")

List user groups for the team.

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

Examples

Slack.UserGroup.list(client)

Update a user group.

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

Examples

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