Restricting records visible in reports.

rkreddy
Giga Expert

Hi All,

Hope everyone is staying safe.

I got requirements like,

1. For a custom table say XYZ, users named A,B,C create some records. Now when A log in to his instance ( or when i impersonate to user A) he needs to see records that are opened only by him and even breadcrumb shouldn't be visible to him, because if breadcrumb is visible he can edit that and can able to see all the records. So in order to restrict him from seeing all the records, what can we do to restrict him to see only records opened by him.

2. And the second thing is the report level access, while creating reports also he should not able to see all the records, he needs to have only records created by him.

Your valuable answers help me a lot.

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Rakesh,

 

For the filter/breadcrumb you can use fixed query. Refer link for a check. In addition to this you need a Query Business rule that runs on the Custom table that again restricts the visibility.

Since, Query business rule will run on Table it will take care of reporting as well.

View solution in original post

6 REPLIES 6

Hi Rakesh,

 

No need to have additional Query business rule for Report. If you create one for your Custom Table  & then you report on it system will take care of query business rule accordingly & display results.

Hi Rakesh,

once you create query BR no need to do anything on Report

Just create report with condition as

Opened By is dynamic Me

the query BR will restrict the records here as well even if user tries to remove the filter

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader