Set-AzureADObjectSetting

This article provides migration details from Set-AzureADObjectSetting command to Microsoft Graph PowerShell.

Important

This is a Beta command. The v1.0 version is also available as Update-MgGroupSetting.

Summary

  • Azure AD Command: Set-AzureADObjectSetting
  • Azure AD Module: AzureADPreview
  • Microsoft Graph Command: Update-MgBetaGroupSetting (Community Examples)
  • Graph Module: Microsoft.Graph.Beta.Groups
  • Graph Endpoint: PATCH /groupSettings/{groupSettingId} (Update a tenant-wide setting) | PATCH /groups/{groupId}/settings/{groupSettingId} (Update a group-specific setting)

Permissions

List tenant-wide settings

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Directory.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application Directory.ReadWrite.All

The following permissions are required to update the "Consent Policy Settings" directorySetting object.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Policy.ReadWrite.Authorization
Delegated (personal Microsoft account) Not supported.
Application Policy.ReadWrite.Authorization

View more details on permissions.

Property Mapping

Azure AD Name Microsoft Graph Name
Id NA
TargetObjectId GroupId
TargetType NA
DirectorySetting DirectorySettingId