Check if user has access to certain resources using ServiceNow REST API.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2019 03:21 AM
I have credentials of service now user.
Is there any way to check over REST API if this user has access to read/write operations on certain table?
For read operation I can just request for resource and in case of insufficient privileges I have appropriate HTTP status code, but I still don't know if user can write.
Best regards, Tomasz Bar
- Labels:
-
Service Portal Development
- 3,245 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2019 07:22 AM
If you have an XML parser then the SOAP WSDL should tell you whether the user has read/write permissions to a table. This assumes that the user has been granted SOAP role. The WSDL will provide two field lists for the table: a read list and a write list. In some cases you should find that the write list is shorter than the read list, meaning that the ACLs allow you to read fields which you cannot write.