How to know who accesses cmdb tables?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 02:55 PM
Hi all,
It's possible to identify the users that access the CMDB tables? Which table can we use to extract this information?
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2022 05:22 AM
Hi Felipe,
Haven't tried it but can try to add an acl script to log on tables. Logging may decrease performance.
gs.info(gs.getUserName()); // log user name

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2022 05:47 AM
Hi
Access to any data is restricted by ACLs in ServiceNow. You mentioned as access to CMDB tables but what access? Read or write ?
You can check these details in ACLs. You can simply open any record in cmdb table, right click on form header, Configure > Security rules.
You can see list of all ACLs that has access restrictions over cmdb related tables.
You can open any record and see which role or has restriction.
You can also use canRead() and canWrite() functions to check if a user has access to a record or a particular field as well.
Mark as correct and helpful if it answered your query.
Regards,
Sumanth