LoginSignup
3
3

More than 5 years have passed since last update.

PowerShellで上司を設定する

Last updated at Posted at 2018-11-19

Office365のユーザの上司を設定する

管理者モードでPowerShellにログインします。
以下を1回だけ実行します。

Install-Module -Name AzureAD

その後AzureADに接続します。2回目以降はこのコマンドから実行します。

Connect-AzureAD

現在の上司を取得したい場合は以下のコマンド

Get-AzureADUserManager -ObjectId "<ユーザのObjectID>"

変更したい場合は以下のコマンド

Set-AzureADUserManager -ObjectId "<ユーザのObjectID>" -RefObjectId "<上司のObjectID>"

Set-AzureADUserManagerについてはMSのマニュアルを見てください。
https://docs.microsoft.com/ja-jp/powershell/module/azuread/set-azureaduser?view=azureadps-2.0

3
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3