JWT authentication - Grant access token to admin is not allowed

Gauri Patekar
Tera Contributor
We're doing an integration with Microsoft to embed Teams Bot into ServiceNow Portal. I'm trying to implement JWT authentication so that end users doesn't have to login to ServiceNow again.
 
In Postman while testing JWT authentication, I'm getting following error when I use admin email. Can anyone tell me why would that be? And what is the solution for this?
 
Note : For non-admins, I'm able to get an access token with no problems.
 
{
    "error_description""Grant access token to admin is not allowed",
    "error""invalid_grant"
}
3 REPLIES 3

ajskrilla
Giga Contributor

use another email from another user as the subject of the jwt u created

Randheer Singh
ServiceNow Employee
ServiceNow Employee

@Gauri Patekar  We do not allow inbound JWT grant type with the subject as an admin user.

Hi what would I need to do if I'm using an Admin user to fetch the token?