Azure Information Protection - SharePoint Online - Onedrive

%3CLINGO-SUB%20id%3D%22lingo-sub-1343772%22%20slang%3D%22en-US%22%3EAzure%20Information%20Protection%20-%20SharePoint%20Online%20-%20Onedrive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1343772%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22thread-message-content-body-text%20thread-full-message%22%3E%3CP%3EIs%20it%20possible%20to%20use%20the%20get-AIPfileStatus%20and%20set-AIPfileLabel%20cmdlts%20on%20SPO%20and%20onedrive%20files.%26nbsp%3B%20The%20calls%20are%20consistently%20failing%20with%20an%20authentication%20error%2C%20%22unable%20to%20autheticate%20and%20setup%20microsoft%20azure%20information%20protection.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22x-hidden-focus%22%3EWe%20believe%20all%20the%20prerequisites%20to%20be%20correct%20and%20are%20able%20to%20use%20these%20cmdlts%20for%20file%20servers.%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1343772%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EInformation%20Protection%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1349203%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Information%20Protection%20-%20SharePoint%20Online%20-%20Onedrive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1349203%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F639811%22%20target%3D%22_blank%22%3E%40RE_SP_720%3C%2FA%3E%26nbsp%3BCan%20you%20give%20an%20example%20of%20the%20powershell%20command%20that%20you%20use%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20be%20clear%3A%20do%20you%20try%20this%20on%20SharePoint%20Online%20or%20do%20you%20have%20on-prem%20SP%20servers%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E*For%20SharePoint%20paths%3A%20SharePoint%20Server%202019%2C%20SharePoint%20Server%202016%2C%20and%20SharePoint%20Server%202013%20are%20supported.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1359900%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Information%20Protection%20-%20SharePoint%20Online%20-%20Onedrive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1359900%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F470541%22%20target%3D%22_blank%22%3E%40JanBakker330%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESet-AIPFileLabel%20-Path%20%24fileName%20-LabelId%20%24ConfidentialLabelID%20-PreserveFileDetails%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhere%20the%20%24fileName%20is%20either%20a%20onedrive%20or%20SPO%20path.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20the%20case%20then%20that%20AIP%20labels%20can%20be%20used%20for%20SPO%20and%20ondrive%20files%20but%20these%20cmdlts%20to%20set%20them%20only%20support%20sharepoint%20(onprem)%20and%20fileservers%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20can%20be%20used%20for%20the%20same%20functionality%20in%20SPO%20and%20onedrive%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Is it possible to use the get-AIPfileStatus and set-AIPfileLabel cmdlts on SPO and onedrive files.  The calls are consistently failing with an authentication error, "unable to autheticate and setup microsoft azure information protection. 

 

We believe all the prerequisites to be correct and are able to use these cmdlts for file servers.

2 Replies

@RE_SP_720 Can you give an example of the powershell command that you use?

 

To be clear: do you try this on SharePoint Online or do you have on-prem SP servers?

 

*For SharePoint paths: SharePoint Server 2019, SharePoint Server 2016, and SharePoint Server 2013 are supported.

@JanBakkerOrphaned 

 

Set-AIPFileLabel -Path $fileName -LabelId $ConfidentialLabelID -PreserveFileDetails

 

Where the $fileName is either a onedrive or SPO path.

 

Is it the case then that AIP labels can be used for SPO and ondrive files but these cmdlts to set them only support sharepoint (onprem) and fileservers?

 

What can be used for the same functionality in SPO and onedrive?