Set-AzureADUserManager

更新使用者的管理員。

語法

Set-AzureADUserManager
   -ObjectId <String>
   -RefObjectId <String>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [<CommonParameters>]

Description

Set-AzureADUserManager Cmdlet 會更新 Azure Active Directory (AD) 中使用者的管理員。

範例

範例 1:更新使用者的管理員

PS C:\>Set-AzureADUserManager -ObjectId "df19e8e6-2ad7-453e-87f5-037f6529ae16" -RefObjectId "df19e8e6-2ad7-453e-87f5-037f6529ae16"

此命令會更新指定使用者的管理員。

參數

-InformationAction

指定此 Cmdlet 如何回應資訊事件。 此參數可接受的值為:

  • 繼續
  • 忽略
  • 詢問
  • SilentlyContinue
  • Stop
  • 暫止
類型:ActionPreference
別名:infa
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InformationVariable

指定資訊變數。

類型:String
別名:iv
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ObjectId

指定標識子 (為 Azure AD 中使用者的 UPN 或 ObjectId) 。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-RefObjectId

指定要指派為擁有者/管理員/成員的 Azure AD 物件識別符。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False