slack list-users
list slack users in channel
Description
List slack users in channel
Synopsis
Arguments
name
- (string)
Channel name to list users from
Example: --name "#slack-channel"
Default: _None_
Attributes: required
Examples
Input:
Output:ID NAME REAL NAME IS BOT
USLACKBOT slackbot Slackbot false
U039635B6HM maira true
U039F27EN0K sbansal sbansal false
U039M3JRGBD github GitHub true
U03G357P7GS prabhsimran Prabhsimran Singh false
[
{
"id": "USLACKBOT",
"team_id": "T039F26ULP4",
"name": "slackbot",
"deleted": false,
"color": "757575",
"real_name": "Slackbot",
"tz": "America/Los_Angeles",
"tz_label": "Pacific Standard Time",
"tz_offset": -28800,
"profile": {
"first_name": "slackbot",
"last_name": "",
"real_name": "Slackbot",
"real_name_normalized": "Slackbot",
"display_name": "Slackbot",
"display_name_normalized": "Slackbot",
"email": "",
"skype": "",
"phone": "",
"image_24": "https://a.slack-edge.com/80588/img/slackbot_24.png",
"image_32": "https://a.slack-edge.com/80588/img/slackbot_32.png",
"image_48": "https://a.slack-edge.com/80588/img/slackbot_48.png",
"image_72": "https://a.slack-edge.com/80588/img/slackbot_72.png",
"image_192": "https://a.slack-edge.com/80588/marketing/img/avatars/slackbot/avatar-slackbot.png",
"image_512": "https://a.slack-edge.com/80588/img/slackbot_512.png",
"image_original": "",
"title": "",
"status_expiration": 0,
"team": "T039F26ULP4",
"fields": []
},
"is_bot": false,
"is_admin": false,
"is_owner": false,
"is_primary_owner": false,
"is_restricted": false,
"is_ultra_restricted": false,
"is_stranger": false,
"is_app_user": false,
"is_invited_user": false,
"has_2fa": false,
"has_files": false,
"presence": "",
"locale": "",
"updated": 0,
"enterprise_user": {
"id": "",
"enterprise_id": "",
"enterprise_name": "",
"is_admin": false,
"is_owner": false,
"teams": null
}
}
]
Access Control
To use this command, you need access to the following:
Field | Value |
---|---|
Action | "read" |
Service Type | "slack" |
Service Instance | |
Namespace | |
Object Type | "channel" |
Object ID | name |
Please see Access Control for details.