New-AzureADObjectSetting
This article provides migration details from New-AzureADObjectSetting command to Microsoft Graph PowerShell.
Important
This is a Beta command. The v1.0 version is also available as New-MgGroupSetting.
Summary
- Azure AD Command: New-AzureADObjectSetting
- Azure AD Module: AzureADPreview
- Microsoft Graph Command: New-MgBetaGroupSetting (Community Examples)
- Graph Module: Microsoft.Graph.Beta.Groups
- Graph Endpoint: POST /groupSettings (Create a tenant-wide setting) | /groups/{id}/settings (Create a group-specific setting)
Permissions
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | Directory.ReadWrite.All | Not available. |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | Directory.ReadWrite.All | Not available. |
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
DirectorySetting | NA |
TargetObjectId | GroupId |
TargetType | NA |