Remove-EntraGroupAppRoleAssignment
グループ アプリケーション ロールの割り当てを削除します。
構文
Default (既定)
Remove-EntraGroupAppRoleAssignment
-AppRoleAssignmentId <String>
-GroupId <String>
[<CommonParameters>]
説明
Remove-EntraGroupAppRoleAssignment コマンドレットは、グループ アプリケーション ロールの割り当てをMicrosoft Entra IDから削除します。
例
例 1: グループ アプリロールの割り当てを削除する
Connect-Entra -Scopes 'Directory.ReadWrite.All'
$group = Get-EntraGroup -Filter "displayName eq 'Contoso Marketing'"
$appRoleAssignment = Get-EntraGroupAppRoleAssignment -GroupId $group.Id | Where-Object {$_.ResourceDisplayName -eq 'Box'}
Remove-EntraGroupAppRoleAssignment -GroupId $group -AppRoleAssignmentId $appRoleAssignment.Id
この例では、指定したグループ アプリケーション ロールの割り当てを削除する方法を示します。 GroupId - グループのオブジェクト ID を指定します。 AppRoleAssignmentId - グループ アプリケーション ロールの割り当てのオブジェクト ID を指定します。
パラメーター
-AppRoleAssignmentId
グループ アプリケーション ロールの割り当てのオブジェクト ID を指定します。
パラメーターのプロパティ
| 型: | System.String |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
(All)
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | True |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
-GroupId
Microsoft Entra IDのグループのオブジェクト ID を指定します。
パラメーターのプロパティ
| 型: | System.String |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
| Aliases: | オブジェクト識別子 |
パラメーター セット
(All)
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | True |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
CommonParameters
このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。