1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-27 21:48:56 +02:00
OpenIntegrations/docs/en/md/Slack/Channel-management/Get-channel-user-list.md
Vitaly the Alpaca (bot) b4a9919e77 Main build (Jenkins)
2024-10-13 16:53:00 +03:00

1001 B

sidebar_position
2

Get channel user list

Gets a list of users in the specified channel

Function GetChannelUserList(Val Token, Val Channel, Val Cursor = "") Export

Parameter CLI option Type Description
Token --token String Bot token
Channel --channel String Channel ID
Cursor --cursor String Pointer from the previous request, if the result rows > 100

Returns: Map Of KeyAndValue - serialized JSON response from Slack


    Token   = "xoxb-6965308400114-696804637...";
    Channel = "C07R7MSSPDM";

    Result = OPI_Slack.GetChannelUserList(Token, Channel);
    
  oint slack GetChannelUserList --token %token% --channel "C070VPMKN8J" --cursor %cursor%

{
 "ok": true,
 "members": [
  "U06UG1CAYH2"
 ],
 "response_metadata": {
  "next_cursor": ""
 }
}