You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory/hybrid/connect/how-to-connect-modify-group-writeback.md
+51-48Lines changed: 51 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,50 +32,54 @@ If the original version of group writeback is already enabled and in use in your
32
32
33
33
To configure directory settings to disable automatic writeback of newly created Microsoft 365 groups, use one of these methods:
34
34
35
-
- PowerShell: Use the [Microsoft Graph PowerShell SDK](/powershell/microsoftgraph/installation?view=graph-powershell-1.0&preserve-view=true). For example:
35
+
- PowerShell: Use the [Microsoft Graph Beta PowerShell SDK](/powershell/microsoftgraph/installation?view=graph-powershell-1.0&preserve-view=true). For example:
# Create a directory setting using the Template values hashtable including the updated value
75
+
$params = @{}
76
+
$params.Add("TemplateId", $Template.Id)
77
+
$params.Add("Values", @())
78
+
$TemplateValues.Keys | ForEach-Object {
79
+
$params.Values += @(@{Name = $_; Value = $TemplateValues[$_]})
80
+
}
81
+
New-MgBetaDirectorySetting -BodyParameter $params
76
82
}
77
-
New-MgDirectorySetting -BodyParameter $params
78
-
}
79
83
```
80
84
81
85
> [!NOTE]
@@ -88,23 +92,22 @@ To configure directory settings to disable automatic writeback of newly created
88
92
To disable writeback of all Microsoft 365 groups that were created before these modifications, use one of the following methods:
89
93
90
94
- Portal: Use the [Microsoft Entra admin portal](../../enterprise-users/groups-write-back-portal.md).
91
-
- PowerShell: Use the [Microsoft Graph PowerShell SDK](/powershell/microsoftgraph/installation?view=graph-powershell-1.0&preserve-view=true). For example:
95
+
- PowerShell: Use the [Microsoft Graph Beta PowerShell SDK](/powershell/microsoftgraph/installation?view=graph-powershell-1.0&preserve-view=true). For example:
92
96
93
97
```PowerShell
94
98
#Import-module
95
-
Import-module Microsoft.Graph
96
-
97
-
#Connect to MgGraph with necessary scope and select the Beta API Version
0 commit comments