Using slack oauth api i setup an app for user to login, the app is accessable to both admin & user, the problem is that even calling auth.access, i am able to get token details, but there i cannot find any way to find if the logined user is admin or not, response is same for both admin & normal user. response from auth.access
{
"ok": true,
"user_id": "UNxxxxxxx',
"access_token": "xoxp-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxxxx-......xx",
"bot": {
"bot_access_token": "xoxb-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx",
"bot_user_id": "Uxxxxxxxx"
},
"team_id": "Txxxxxxxxx",
"scope": "identify,bot,channels:read,users:read...",
"team_name": "Team Name"
}