Token Generation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2015 03:13 AM
I am trying to generate the access token for an application which I have deployed over serviceNow,
Referred the link: http://wiki.servicenow.com/index.php?title=REST_API
Rest API : https://<InstanceName>.service-now.com/oauth_token.do
Request Body:
{"grant_type":"password","client_id":"33eb1705c75f3154400b1237989343b5","client_secret":4gE[IT#5qk,
"username":"UserName",
"password":"Password"}
Response:
Status Code: 401 Unauthorized
{
"error": "server_error",
"error_description": "access_denied"
}
Am I missing anything?
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2016 01:02 PM
Just wanted to let you know that I found out the solution to the issue that I was having. The resolution was that the {UserName} account I was using needed to have the "rest_service" role.