Search code examples
slackslack-api

Is team Id in Slack is tied to a workspace? Can we create multiple teams in a workspace?


admin.users.list [List users on a workspace]

users.list [Lists all users in a Slack team]

What will be the difference in these two response?


Solution


  • admin.users.list allows using same admin token to read members of different slack workspaces,
    whereas, when using users.list, you need different access token for getting members from each slack workspace.

    Also, the response of users.list method is more verbose:
    https://api.slack.com/methods/users.list#examples

    as compared to admin.users.list:
    https://api.slack.com/methods/admin.users.list#examples