pub struct AdminUsergroups {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl AdminUsergroups
impl AdminUsergroups
Sourcepub async fn add_channels(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn add_channels(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /admin.usergroups.addChannels endpoint.
Add one or more default channels to an IDP group.
FROM: https://api.slack.com/methods/admin.usergroups.addChannels
Parameters:
token: &str– Authentication token. Requires scope:admin.usergroups:write.
Sourcepub async fn add_teams(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn add_teams(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /admin.usergroups.addTeams endpoint.
Associate one or more default workspaces with an organization-wide IDP group.
FROM: https://api.slack.com/methods/admin.usergroups.addTeams
Parameters:
token: &str– Authentication token. Requires scope:admin.teams:write.
Sourcepub async fn list_channel(
&self,
usergroup_id: &str,
team_id: &str,
include_num_members: bool,
) -> Result<Response<DndEndSchema>, ClientError>
pub async fn list_channel( &self, usergroup_id: &str, team_id: &str, include_num_members: bool, ) -> Result<Response<DndEndSchema>, ClientError>
This function performs a GET to the /admin.usergroups.listChannels endpoint.
List the channels linked to an org-level IDP group (user group).
FROM: https://api.slack.com/methods/admin.usergroups.listChannels
Parameters:
token: &str– Authentication token. Requires scope:admin.usergroups:read.usergroup_id: &str– ID of the IDP group to list default channels for.team_id: &str– ID of the the workspace.include_num_members: bool– Flag to include or exclude the count of members per channel.
Sourcepub async fn remove_channels(
&self,
) -> Result<Response<DndEndSchema>, ClientError>
pub async fn remove_channels( &self, ) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /admin.usergroups.removeChannels endpoint.
Remove one or more default channels from an org-level IDP group (user group).
FROM: https://api.slack.com/methods/admin.usergroups.removeChannels
Parameters:
token: &str– Authentication token. Requires scope:admin.usergroups:write.