你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Remove-AzureADObjectSetting

本文提供从 Remove-AzureADObjectSetting 命令到 Microsoft Graph PowerShell 的迁移详细信息。

重要

这是一个 Beta 命令。 v1.0 版本也以 Remove-MgGroupSetting 的形式提供。

摘要

  • Azure AD 命令: Remove-AzureADObjectSetting
  • Azure AD 模块:AzureADPreview
  • Microsoft Graph 命令: Remove-MgBetaGroupSetting (社区示例)
  • Graph 模块:Microsoft.Graph.Beta.Groups
  • 图形终结点:DELETE /groupSettings/{groupSettingId} (删除租户范围的设置) |/groups/{groupId}/settings/{groupSettingId} (删除组特定的设置)

权限

权限类型 权限(按权限从低到高排序)
委托的(工作或学校帐户) Directory.ReadWrite.All
委托的(个人 Microsoft 帐户) 不支持。
应用程序 Directory.ReadWrite.All

更新“同意策略设置” 目录Setting 对象需要以下权限。

权限类型 权限(按权限从低到高排序)
委托的(工作或学校帐户) Policy.ReadWrite.Authorization
委托的(个人 Microsoft 帐户) 不支持。
应用程序 Policy.ReadWrite.Authorization

查看 有关权限的更多详细信息

属性映射

Azure AD 名称 Microsoft Graph 名称
ID NA
TargetObjectId GroupId
TargetType NA