How to retrieve knowledge articles thru REST API based on User access Rights
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2020 05:06 AM
My requirement is to retrieve knowledge articles based on user access rights from ServiceNow via Rest interface.
Seems multiple challenges to check if user is able to Read the article or not.
1) How to validate user roles?
2) How to validate user criteria?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2020 05:24 AM
Typically to validate and test user roles and criteria, I would use ATF instead of REST API. However you may want to check out the REST API Explorer section of ServiceNow. Stay on the selected "Retrieve records from a table (GET)" and experiment there.
You should be able to pull from tables such as:
"Who Can Read Knowledge Base" - (kb_uc_can_read_mtom)
"Who Can Contribute to Knowledge Base" - (kb_uc_can_contribute_mtom)
This may give you some ideas.
Please mark helpful or correct if I have provided useful information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2020 11:36 PM
Thanks Shelby,
If I use table API, knowledge articles will be returned based on Integration user access instead of specific user access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2020 05:36 AM
Hi,
Please go through the below link.
Kindly mark helpful or correct based on impact.
Regards,
Aniket Sawant