Remove-AzureADObjectSetting

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

Important

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

Summary

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

Permissions

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