Forum Discussion
Gerry Morley
Jul 02, 2020Brass Contributor
Azure Information Protection - How to identify and reassign ownership to files when staff leave?
Hi there - just implementing Azure information protection for the first time and I'm trying to find out the best way to deal with the scenario where a users leaves a company and the business/IT admin...
Gerry Morley
Jul 03, 2020Brass Contributor
PeterRising Thanks for the reply.
I got told on answers.microsoft.com
"you may use the below cmdlet to get label and protection status for all files in a folder, and export the result to a CSV file, then you can filter the RMSOwner and RMSIssuer in the CSV file.
Get-AIPFileStatus -Path \\***\***\ | Export-Csv C:\***\AIP-status.csv"
Though I haven't tested this - it sounds like this may cover part (i)
So the next step, part (ii), would be then to figure out how to take that output and use it as input to a command to reassign ownership (if such is possible)?
kallaswamy
Microsoft
Mar 09, 2023PeterRising: Check this out: https://learn.microsoft.com/en-us/powershell/module/azureinformationprotection/get-aipfilestatus?view=azureipps