Skip to content

Commit 0ac2561

Browse files
authored
Merge pull request #95975 from farismalaeb/patch-1
Adding PowerShell config
2 parents 081d24e + d31f684 commit 0ac2561

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

articles/active-directory/enterprise-users/groups-write-back-portal.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,36 @@ You can also configure writeback settings for a group on the property page for t
5858
- Targeted the writeback type as a security group
5959

6060
:::image type="content" source="./media/groups-write-back-portal/groups-properties-view.png" alt-text="Screenshot of changing writeback settings in the group properties." lightbox="media/groups-write-back-portal/groups-properties-view.png":::
61+
62+
## Read the Writeback configuration using PowerShell
63+
64+
You can use PowerShell to get a list of writeback enabled group using the following PowerShell Get-MgGroup cmdlet.
65+
66+
```powershell-console
67+
Connect-MgGraph -Scopes @('Group.Read.all')
68+
Select-MgProfile -Name beta
69+
PS D:\> Get-MgGroup -All |Where-Object {$_.AdditionalProperties.writebackConfiguration.isEnabled -Like $true} |Select-Object Displayname,@{N="WriteBackEnabled";E={$_.AdditionalProperties.writebackConfiguration.isEnabled}}
70+
71+
DisplayName WriteBackEnabled
72+
----------- ----------------
73+
CloudGroup1 True
74+
CloudGroup2 True
75+
```
76+
77+
## Read the Writeback configuration using Graph Explorer
78+
79+
Open [Microsoft Graph Explorer](https://developer.microsoft.com/graph/graph-explorer) and use the following endpoint ```https://graph.microsoft.com/beta/groups/{Group_ID}```.
80+
81+
Replace the Group_ID with a cloud group id, and then click on Run query.
82+
In the **Response Preview**, scroll to the end to see the part of the JSON file.
83+
84+
```JSON
85+
"writebackConfiguration": {
86+
"isEnabled": true,
87+
```
6188

6289
## Next steps
6390

6491
- Check out the groups REST API documentation for the [preview writeback property on the settings template](/graph/api/resources/group?view=graph-rest-beta&preserve-view=true).
65-
- For more about group writeback operations, see [Azure AD Connect group writeback](../hybrid/how-to-connect-group-writeback.md)
92+
- For more about group writeback operations, see [Azure AD Connect group writeback](../hybrid/how-to-connect-group-writeback.md).
93+
- For more information about the writebackConfiguration resource, read [writebackConfiguration resource type](/graph/api/resources/writebackconfiguration?view=graph-rest-beta).

0 commit comments

Comments
 (0)