CmdID / az / az documentdb / az documentdb mongocluster / az documentdb mongocluster microsoft-entra-user
az documentdb mongocluster microsoft-entra-user remove
Remove a Microsoft Entra ID principal's access from a mongo cluster. Azure CLI extensions reference
1 example 2 options Its page in the Azure CLI extensions reference
Examples
Remove an Entra ID user's access by object ID.
az documentdb mongocluster microsoft-entra-user remove --object-id 11111111-1111-1111-1111-111111111111 --cluster-name MyCluster -g MyResourceGroupIdentify--object-idObject ID (client ID) of the Microsoft Entra principal.--cluster-nameThe name of the mongo cluster.-gName of resource group.Options
--cluster-nameThe name of the mongo cluster.--object-id, --name, -nObject ID (client ID) of the Microsoft Entra principal.