# Change Permissions on Recent Documents Job
Automatically disables permission inheritance on recently accessed documents and applies configured permissions.
Configuration class: ChangePermissionsOnRecentDocumentsJobCfg
Schedule base: IntervalScheduleCfg (runs at regular intervals)
# Purpose
This job helps secure documents that have been recently accessed by:
- Identifying recently modified or accessed documents
- Breaking permission inheritance on those documents
- Applying appropriate permissions based on matter or document type
Useful for:
- Securing sensitive documents after they've been accessed
- Enforcing document-level permission policies
- Managing compliance around recent activity
# Configuration
# Disabled
- Type:
bool? - Default: —
- Required: No
- Description: Disable this job without removing configuration
# CurrentState
- Type:
ChangePermissionsOnRecentDocumentsJobState - Default: —
- Required: No
- Description: System-managed — stores current job state
# Scheduling Properties
# Interval
- Type:
TimeSpan? - Default: —
- Description: How often to run. Example:
"00:30:00"for every 30 minutes.
# Example Configuration
{
"Disabled": false,
"Interval": "01:00:00",
"CurrentState": {}
}
# How It Works
- Job runs at intervals defined by the schedule
- Scans all documents across configured site collections
- Identifies documents modified within the lookback period
- For each recent document:
- Disables permission inheritance from parent library/folder
- Applies the configured permission set (if defined)
- Tracks state to avoid re-processing the same documents
# Notes
- Interval timing: Set to
00:30:00for hourly checks (good for active sites),04:00:00for less frequent updates - Performance: This job can be resource-intensive on large deployments. Test interval settings in staging first
- Permission application: Respects existing permissions on documents that already have custom permissions
# Related
- Permission Set Configuration — permissions applied to recent documents
- Jobs — other background jobs
- Scheduling Jobs — schedule configuration