getting an error when doing oauth based authentication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2026 08:14 AM - edited 04-14-2026 08:19 AM
Hi all
getting below error of 'User Not Authorized' and 'Missing required API access scope: test' when doing OAuth based authentication. the bearer token used is correct because when i use an incorrect one, i get a different error.
below is the oauth setting in servicenow
Thanks
Ravish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2026 09:04 AM
Hi @Ravish Shetty ,
Navigate to the Authentication Scope table and create the following scopes:
- table_read
- table_read_write
refer: Restrict access available to OAuth Client using REST API Auth Scopes
Limit the access granted to an OAuth client by using REST API authentication scopes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2026 11:20 AM
Have you remembered to set baerer in the header?
Have you ensured to provide correct user access?