Database View access permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017 05:35 AM
Dear All,
I have a database view which joins 3 tables. I am using Rest API to call the DB View.
All works fine when I use admin account to call the DB view using Rest API.
We have also have a dedicated API user account. But we get the below error when we use this account. Is there any role permissions this account is missing. If yes, how we can add the missing role permissions?
{"error":{"message":"User Not Authorized","detail":"User is unauthorized to access table: u_vw_clients"},"status":"failure"}
Any help is greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017 05:41 AM
Hello gkr
Maybe the following is helpful to you:
Create a read ACL directly on the database view table to allow non-admin users to view database view records.
- Type Access Control in the navigation filter.
- Select the Access Control (ACL) module.
- Select the New action at the top of the list.
- Under Operation, select Read, and under Name, select the name of the database view i.e. Incident SLA
- Add the required roles needed to access the database view and click Submit.
Reference:
Use a Read ACL on Database Views when Reporting in Fuji
ServiceNow KB: Determining if a user has permissions to create, read, and write on an extended table... Database view access for a new role.
Database view access for a new role.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017 07:55 AM
Perfect. Works! Dravvy, your reply is much appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017 07:57 AM
Hello gkr
I am glad it worked.
Please mark it as correct/answered so that it does not appear in the unanswered list.