July 2025
This optional background‑job SiteCollectionAdminPromotionJob automatically assigns the ShArc service account as Site Collection Administrator to all SharePoint sites in the tenant. It helps ensure consistent access to files to be offloaded as well as .sharc files to be restored regardless of their location.
The job is disabled by default.
.sharc file can be restored regardless of site location.
Sites without explicit assignment:
.sharc files located there (i.e. due to copy or move) cannot be restored. Attempts will result in error, as ShArc cannot detect or access them.
Set a recurrence interval, with the following recommendations:
Important Hint: Only change this setting when no offload or restore job is currently running, as any active job will be canceled when the web app is stopped and restarted.
Configure using the environment variable SHARC_SiteCollectionAdminPromotionJob__DetectionInterval in your Web App settings with format d.hh:mm:
0 = disabled
3.00:00 = run every 3 days
Hint: When changing the environment variable via the Azure settings UI, you must confirm three times:
After adjusting this value:
| Feature | Enabled | Disabled |
|---|---|---|
| Admin rights across sites | Assigned on all site collections | Only on explicitly granted sites |
| Document library access | Full, tenant-wide | Limited to granted sites |
.sharc file restore capability |
Always possible | Fails on inaccessible sites |
| Recommended for tenants with frequent site creation | ✅ | ❌ |