Home > アプリ プロファイルの管理 > Exchange 管理者ロールのアプリへの割り当て方法 > アプリケーションへのカスタム Exchange Online ロール グループの割り当て
Export to PDFカスタム Exchange Online ロール グループを作成して、アプリケーションにカスタム Exchange Online ロール グループを割り当てるには、以下の説明を参照してください。
*Note: For more details on this method, refer to this .
Refer to the instructions in to create custom Exchange Online role groups. For more details on assigning roles to the Exchange Online role group, refer to the .
In Microsoft Graph PowerShell, run the Get-MgServicePrincipal command to store the details of the application.
Connect-MgGraph -Scopes 'Application.Read.All'
$AADApp = Get-MgServicePrincipal -Filter "DisplayName eq ''"
Replace with the application name, Cloud Governance for Exchange.
同じ PowerShell ウィンドウで、Exchange Online PowerShell に接続して以下のコマンドを実行します。
Run the New-ServicePrincipal command to create an Exchange Online service principal object for the application.
Run the Get-ServicePrincipal command to store the details of the service principal in a variable.
New-ServicePrincipal -AppId $AADApp.AppId -ObjectId $AADApp.Id -DisplayName ""
$SP = Get-ServicePrincipal -Identity ""
Replace with the application name, Cloud Governance for Exchange.
Exchange Online PowerShell で、以下のコマンドを実行して、カスタム ロール グループのメンバーとしてサービス プリンシパルを追加します。
Add-RoleGroupMember -Identity "" -Member $SP.Identity
Replace with the name of your custom Exchange Online role group.