The CreatorCon Call for Content is officially open! Get started here.

How to retrieve knowledge articles thru REST API based on User access Rights

navdeep_singh
Giga Guru

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?

3 REPLIES 3

Shelby2
Giga Expert

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.

Thanks Shelby,

If I use table API, knowledge articles will be returned based on Integration user access instead of specific user access.

Aniket Sawant
Mega Expert

Hi,

Please go through the below link.

https://community.servicenow.com/community?id=community_question&sys_id=5da66930db9c2b048e7c2926ca96...

 

Kindly mark helpful or correct based on impact.

Regards,

Aniket Sawant