Hi Scripted REST API - specific user does not show any logs

Tobias Persson_
Tera Expert

Hi all!

When testing one of our Scripted REST APIs I was wondering why one specific user didn't produce any logs in System Logs > All. After checking the Node Logs Download file I found my missing logs along with some interesting lines:

 

2023-09-21 14:22:07 (674) API_INT-thread-3 9944FC2BB7D1F5108EF0F78A0E8C02B9 txid=dd44fc2bb937 DEBUG DEBUG: x_<scope_name> (<ScriptIncludeName>): Successfully parsed import data
2023-09-21 14:22:07 (675) API_INT-thread-3 9944FC2BB7D1F5108EF0F78A0E8C02B9 txid=dd44fc2bb937 Security restricted: access for table: syslog_app_scope, user: <USER_NAME>, operation: create -- from class: ReadOnlyRoleAccessHandler

 

Basically everytime one of my logs showed up it was directly followed by a "Security restricted" message which seems to say that it can't log because the user has no access? Is that correct and how would I solve this issue?

 

Thanks and kind regards,
Tobias

1 ACCEPTED SOLUTION

SHARANsnow7
Tera Guru

Hii  @Tobias Persson_  the reason why you are not able to see logs was because of ACL and Role restriction

you can find the below thread usefull

https://www.servicenow.com/community/now-platform-forum/how-to-get-access-to-the-enitre-system-logs-...

 

View solution in original post

2 REPLIES 2

SHARANsnow7
Tera Guru

Hii  @Tobias Persson_  the reason why you are not able to see logs was because of ACL and Role restriction

you can find the below thread usefull

https://www.servicenow.com/community/now-platform-forum/how-to-get-access-to-the-enitre-system-logs-...

 

Well, I hate to admit that, but I didn't see a specific role set to that user. The user was the only one having the snc_read_only role. Note to myself: check twice! 😅