REST API account with read-only access to all tables

paulyams
Kilo Explorer

Hello,

We've been trying to use an SN account with rest api access to show information on our incidents/problems/etc within another application. However, when using this user, we only get empty search results, indicating that the user does not have the proper privileges assigned. How can we create a SN user that has read-only access to all tables?

 

Thanks,

Paul

7 REPLIES 7

Aditya Telideva
ServiceNow Employee
ServiceNow Employee

Hi Paul,



-Read only access is achieved in 2 ways:


---A global 'list-edit' access control to disable list editing for all tables


---A global client script to make all form fields read-only, disable form buttons, disable the context menu, and disable related links


-Faulty client scripts on a form can cause the above client script to fail, thus disabling read-only functionality.


- (In the below-mentioned script)The 'auditor' role piggy-backs on existing roles to provide visibility to records. It initially inherits the 'itil' role to provide standard process user visibility. Assign additional roles to the 'auditor' role in order to increase visibility.


-The 'admin' role overrides all created functionality.



*Creates all new entities within ServiceNow. No baseline tables or scripts are affected.



You can check the below script:


URL is ServiceNow Share



His script does the following:



Auditor is a new role in this instance that can be assigned to users to effectively provide read-only access to records in ServiceNow.


Cheers


Aditya telidevara


samlee
Tera Contributor

Any luck Paul?


Hi Samuel due to personnel changes the project has been put on hold. Thanks for asking i let you know once we back on it.



Br


Paul