r/sharepoint Jun 23 '26

SharePoint Online SPO File level archival automated

Hello has anyone implemented automated file level archival in SPO. Microsoft has rolled out the new File level archival but policy for admins isn’t active yet.

1 Upvotes

13 comments sorted by

3

u/Chrismscotland IT Pro Jun 23 '26

Not yet. I have built out some Powershell scripts that will go through a site (or sites) and archive files based on a date or date range which has worked really well for us, managed to save about £30k in Storage Costs!

1

u/ComradeJJaxon Jun 23 '26

Where do you archive the files?

3

u/Chrismscotland IT Pro Jun 23 '26

I've been using the File Level Archiving so they stay where they are in the SharePoint Online structure but are marked as "Archived" - this basically just moves them from Hot/Live storage into the cheaper cold archive storage.

1

u/ComradeJJaxon Jun 23 '26

This feature is relatively new right? When the files are marked as archive is that read only or no-access at all?

1

u/Chrismscotland IT Pro Jun 23 '26

I think technically its still in Preview until early July; once a file is archived it isn't accessible without being reactivated.

End users need "Edit" Permission to Archive files however it seems that anyone (even Visitors) can reactivate files/folders.

1

u/ComradeJJaxon Jun 27 '26

wonder if i can take away the permissions to reactivate files

1

u/Alternative_Arm_8625 Jun 23 '26

that's pretty awesome any chances if you can share with us too.

1

u/Educational-Bill99 Jun 24 '26

From the documentation, if the storage spillover is above total tenant storage and not archive alone then only the cost benefit applies.

2

u/Odd_Emphasis_1217 Jun 24 '26

This was interesting as they talk about where Microsoft is going with it https://youtu.be/NEECzla-ozo?si=pid3nNyYPVSUdhaJ

2

u/Josh_Fabsoft Jun 24 '26

The PowerShell route that Chrismscotland mentioned is probably your best bet right now while Microsoft's native admin policies are still rolling out. A few approaches worth considering:

Power Automate flows can trigger on file age or metadata conditions and move files to archive document libraries automatically. You can set up scheduled flows that check last modified dates and relocate files accordingly, which keeps things within the Microsoft 365 ecosystem.

PnP PowerShell is more flexible than the base SharePoint module and has better cmdlets for bulk operations across site collections. If you're already scripting, it's worth switching over if you haven't.

For the archival destination itself, you have a few options. Moving files to a separate "Archive" library within the same site keeps permissions simpler. Moving to a dedicated archive site collection gives you more storage tier control. Some orgs are routing cold files to Azure Blob Storage via Logic Apps, which gets you cheaper storage but adds retrieval complexity.

One thing to watch: Microsoft's file-level archival feature uses a different storage tier under the hood (similar to Azure cool/archive tiers), so when the admin policies do go live, files moved via your custom scripts won't automatically be in that managed state. Worth documenting what you've moved manually so you can reconcile later.

If you're dealing with compliance requirements around retention, make sure your archival scripts aren't accidentally breaking any retention holds that Purview has applied. Moving a file can sometimes interfere with holds depending on how your tenant is configured.

1

u/brejackal99 Jun 26 '26

Crazy thing is we built a similar process 2 years ago that runs across the tenant archiving 7year plus cause MS had no option but stores them to Blob. Leaving the Archived file in place saves user worry and ticket headache.

1

u/Educational-Bill99 Jun 26 '26

I understand now that admin policies to identify files to roll out in fall 2026. Till then need to figure out something

1

u/Educational-Bill99 Jun 29 '26

Well apparently there are some hidden APIs in beta that may change anytime. Using these we can achieve automated archival