Powershell Graph API SDK更新语句

问题描述

我正在探索msgraph-sdk-powershell模块以针对Azure AD执行一些自动化。我无法为Update-MgAdministrativeUnit cmdlet创建哈希表。我想更新一个管理单元的成员(添加删除成员),但是该帮助没有提供足够的信息来定义哈希表:

 MEMBERS <IMicrosoftGraphDirectoryObject[]>: Users and groups that are members of this Adminsitrative Unit.
    HTTP Methods: GET (list members),POST (add members),DELETE (remove members).
      [Id <String>]: Read-only.
      [DeletedDateTime <DateTime?>]:

有人有使用此命令的经验吗?

关于, 奥格尼(Ognyan)

解决方法

当前不支持添加或删除成员。