Skip to content

Restrict historic data query #1153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

SrijanPatwa
Copy link
Contributor

A specific Service account user is querying for records in the incident table, this Business Rule ensures that the query will only return records created within the past 10 years, thereby restricting their access to older data.

This script will help to get an idea of the size of tables present in ServiceNow instance and accordingly plan to reduce the instance database footprint.
This Business Rule restricts a specific service account user from accessing records older than 10 years. The user's id is retrieved from a system property, and if the current user matches the restricted service account, the query is modified to limit the results to records created within the last 10 years.
@snamjosh snamjosh self-assigned this Oct 4, 2024
@snamjosh snamjosh merged commit 6d11967 into ServiceNowDevProgram:main Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants