Ofer1
ServiceNow Employee
Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
09-10-2024
06:15 PM
I was getting access denied when trying to get a Bearer token using OAuth Setup.
The missing piece for me was to set grant_type=client_credentials.
Here is a curl command:
curl -d "grant_type=client_credentials&client_id=[]&client_secret=[]&username=[]&password=[]" -X POST "https://[].service-now.com/oauth_token.do"
And postman screenshot:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.