Cannot set sensitivity label with PowerShell

Tanmoy Das 806 Reputation points
2021-05-03T11:56:58.407+00:00

Hi,

I am trying to set the sensitivity label using PowerShell

PS C:\WINDOWS\system32> Set-unifiedgroup -Identity "Team 656" -SensitivityLabelId $label.Guid
Error:
We failed to update the unified group. Please try again later.
+ CategoryInfo : NotSpecified: (:) [Set-UnifiedGroup], TaskException

Any idea what I am doing wrong

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,311 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JimmyYang-MSFT 53,851 Reputation points Microsoft Vendor
    2021-05-04T07:56:01.307+00:00

    anonymous user

    Did you create multiple labels in Microsoft 365 compliance?

    To apply published labels to groups, you must first enable the feature. These steps enable the feature in Azure AD. You could check if you have enabled it.

    Then you can follow these tips to convert classifications for Microsoft 365 groups to sensitivity labels.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.