Skip to content

Commit bb8eae0

Browse files
committed
[Azure AD GitHub issues] error in procedure when setting exists
1 parent 768542b commit bb8eae0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

articles/active-directory/enterprise-users/groups-assign-sensitivity-labels.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.service: active-directory
99
ms.subservice: enterprise-users
1010
ms.workload: identity
1111
ms.topic: how-to
12-
ms.date: 09/28/2021
12+
ms.date: 11/19/2021
1313
ms.author: curtand
1414
ms.reviewer: krbain
1515
ms.custom: it-pro
@@ -72,6 +72,14 @@ To apply published labels to groups, you must first enable the feature. These st
7272
Set-AzureADDirectorySetting -Id $grpUnifiedSetting.Id -DirectorySetting $setting
7373
```
7474
75+
If you’re receiving a Request_BadRequest error, it's because the settings already exist in the tenant, so when you try to create a new property:value pair, the result is an error. In this case, take the following steps:
76+
77+
1. Repeat steps 1-4 from [Enable sensitivity label support in PowerShell](#enable-sensitivity-label-support-in-powershell).
78+
1. Issue a `Get-AzureADDirectorySetting | FL` cmdlet and check the ID. If several ID values are present, use the one where you see the EnableMIPLabels property on the Values settings in step 4.
79+
1. Set the EnableMIPLabels property variable as instructed: `$Setting["EnableMIPLabels"] = "True"`
80+
1. Do NOT issue the `New-AzureADDirectorySetting -DirectorySetting $setting` cmdlet, but instead use `Set-AzureADDirectorySetting -DirectorySetting $Setting -ID, Use the ID that you retrieved in step 2.
81+
1. Confirm the value has been correctly updated by issuing `$Setting.Values` again.
82+
7583
You will also need to synchronize your sensitivity labels to Azure AD. For instructions, see [How to enable sensitivity labels for containers and synchronize labels](/microsoft-365/compliance/sensitivity-labels-teams-groups-sites#how-to-enable-sensitivity-labels-for-containers-and-synchronize-labels).
7684
7785
## Assign a label to a new group in Azure portal

0 commit comments

Comments
 (0)