JWT authentication - Grant access token to admin is not allowed
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2023 03:19 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 02:40 PM
use another email from another user as the subject of the jwt u created

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 07:42 PM
@Gauri Patekar We do not allow inbound JWT grant type with the subject as an admin user.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024 10:17 AM
Hi what would I need to do if I'm using an Admin user to fetch the token?