SOLVED

Add OneDrive location to an existing retention policy

%3CLINGO-SUB%20id%3D%22lingo-sub-2371978%22%20slang%3D%22en-US%22%3EAdd%20OneDrive%20location%20to%20an%20existing%20retention%20policy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2371978%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20an%26nbsp%3B%3CSTRONG%3Eexisting%3C%2FSTRONG%3E%20OneDrive%26nbsp%3B%3CEM%3Einclusion%3C%2FEM%3E%20retention%20policy%20that%20specifically%20designates%20specific%20OneDrive%20accounts%20to%20have%20a%20longer%20retention%20period%20than%20others.%20I%20would%20like%20to%20add%20additional%20users'%20OneDrive%20accounts%20to%20this%20policy.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20go%20to%20%3CU%3E%3CA%20href%3D%22https%3A%2F%2Fcompliance.microsoft.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcompliance.microsoft.com%2F%3C%2FA%3E%3C%2FU%3E%2C%20choose%20the%20existing%20policy%20and%20%3CSTRONG%3EEdit%3C%2FSTRONG%3E.%20On%20the%20%3CSTRONG%3ELocations%3C%2FSTRONG%3E%20tab%20under%20OneDrive%20accounts%2C%20select%20%3CSTRONG%3EEdit%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20see%20the%20existing%20accounts%20already%20selected.%20When%20I%20search%20for%20a%20new%20account%20by%20the%20username%20and%20actual%20OneDrive%20URL%2C%20the%20option%20to%20select%20it%20is%20not%20there.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20ideas%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2371978%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%20center%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2372427%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20OneDrive%20location%20to%20an%20existing%20retention%20policy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2372427%22%20slang%3D%22en-US%22%3EJust%20add%20it%20via%20PowerShell%3F%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fset-retentioncompliancepolicy%3Fview%3Dexchange-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fset-retentioncompliancepolicy%3Fview%3Dexchange-ps%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2388637%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20OneDrive%20location%20to%20an%20existing%20retention%20policy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2388637%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20following%20command%20worked%3A%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%222%22%3E%3CEM%3ESet-RetentionCompliancePolicy%20-Identity%20%3CPOLICYIDPARAMETER%3E%20-AddOneDriveLocation%20%3CMULTIVALUEDPROPERTY%3E%3C%2FMULTIVALUEDPROPERTY%3E%3C%2FPOLICYIDPARAMETER%3E%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3EHopefully%20the%20compliance%20admin%20portal%20will%20be%20updated%20in%20the%20future%20to%20allow%20edits%20there%20are%20well.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi:

 

We have an existing OneDrive inclusion retention policy that specifically designates specific OneDrive accounts to have a longer retention period than others. I would like to add additional users' OneDrive accounts to this policy. 

 

I go to https://compliance.microsoft.com/, choose the existing policy and Edit. On the Locations tab under OneDrive accounts, select Edit.

 

I can see the existing accounts already selected. When I search for a new account by the username and actual OneDrive URL, the option to select it is not there.

 

Any ideas?

 

Thanks

2 Replies
best response confirmed by terzogenito (New Contributor)

Thanks@Vasil Michev 

The following command worked:

Set-RetentionCompliancePolicy -Identity <PolicyIdParameter> -AddOneDriveLocation <MultiValuedProperty>

Hopefully the compliance admin portal will be updated in the future to allow edits there are well.