Skip to content

Commit 8a3dc20

Browse files
authored
Adding PowerShell config
Adding PowerShell Configuration and Graph Explorer
1 parent ad58304 commit 8a3dc20

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,37 @@ You can also configure writeback settings for a group on the property page for t
4646

4747
:::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":::
4848

49+
## Read the Writeback configuration using PowerShell
50+
51+
You can use PowerShell to get a list of writeback enabled group using the following PowerShell Get-MgGroup cmdlet.
52+
53+
```powershell-console
54+
Connect-MgGraph -Scopes @('Group.Read.all')
55+
Select-MgProfile -Name beta
56+
PS D:\> Get-MgGroup -All |Where-Object {$_.AdditionalProperties.writebackConfiguration.isEnabled -Like $true} |Select-Object Displayname,@{N="WriteBackEnabled";E={$_.AdditionalProperties.writebackConfiguration.isEnabled}}
57+
58+
DisplayName WriteBackEnabled
59+
----------- ----------------
60+
CloudGroup1 True
61+
CloudGroup2 True
62+
```
63+
64+
## Reading the Writeback configuration using Graph Explorer
65+
66+
Open [Microsoft Graph Explorer](https://developer.microsoft.com/en-us/graph/graph-explorer) and use the following endpoint ```https://graph.microsoft.com/beta/groups/{Group_ID}```.
67+
68+
Replace the Group_ID with a cloud group id, the click on Run query.
69+
In the **Response Preview** scroll to the end to see the part of the JSON file
70+
```JSON
71+
"writebackConfiguration": {
72+
"isEnabled": true,
73+
```
74+
75+
4976
## Next steps
5077

5178
Check out the groups REST API documentation for the [preview writeback property on the settings template](../hybrid/how-to-connect-group-writeback.md).
5279

5380
For more about group writeback operations, see [Azure AD Connect group writeback](../hybrid/how-to-connect-group-writeback.md)
81+
82+
For more information about the writebackConfiguration resource, read [writebackConfiguration resource type](https://docs.microsoft.com/en-us/graph/api/resources/writebackconfiguration?view=graph-rest-beta)

0 commit comments

Comments
 (0)