Security & Compliance Command Not Recognized

Brass Contributor

I need to use the Set-AutoSensitivityLabelPolicy command, and I have v3.1.0 of Exchange Online PowerShell installed.  After successfully connecting with Connect-IPPSSession, I get an error that the Set-AutoSensitivityLabelPolicy isn't a command.  When I look up the command, it's supposed to be a part of Exchange Online PowerShell, but when I use get-command -module ExchangeOnlineManagement, it's not listed.  What am I missing?


I have also tried loading the older 2.0.5 version of ExchangePowerShell, but that did not help either.

2 Replies

If I connect as the service account, which is an Exchange Admin and a Security Admin, the command is not recognized.  If I connect as a global admin, it is.  What role is needed?




best response confirmed by Ukiman1014 (Brass Contributor)

Hello @Ukiman1014,

Sensitivity Labels are part of Microsoft Purview Compliance and the role you need is Compliance Administrator.

Hope that helps.