Forum Discussion

blue-man's avatar
blue-man
Iron Contributor
Nov 13, 2019
Solved

Applying OneDrive Retention Policy to a Group

I know you can create a One Drive retention policy against individual personal URLs, but I was wondering if there is anyway to automate this via an AD group or a specific AD attribute.

 

Basically we have a department that needs a specific retention policy set and I would like to see if we can automate adding them into the retention policy rather than having this as a manual process.

 

We sync our on-prem AD with AADC.

  • Sadly, even after years of us asking for simplifying the experience when it comes to stamping retention on ODFB sites, the controls in the portal still only accept URLs. But, you can do it easily via PowerShell.

4 Replies

  • Sadly, even after years of us asking for simplifying the experience when it comes to stamping retention on ODFB sites, the controls in the portal still only accept URLs. But, you can do it easily via PowerShell.

    • blue-man's avatar
      blue-man
      Iron Contributor
      Ok so could we query the users URL by a certain AD attribute, for example department attribute? Do you have any examples of how to do this via powershell please?

Resources