Using Console
Using CLI
<guest-user-object-id>
with the object ID of the guest user you want to remove.
<object-id-of-the-external-users-group>
with the object ID of the group that contains all the external users in your Azure Active Directory tenant.
Using Python
pip install azure-mgmt-resource
.
ServicePrincipalCredentials
class from the Azure Python SDK. Here’s an example:
GraphRbacManagementClient
class from the Azure Python SDK. Here’s an example:RoleAssignmentsOperations
class from the Azure Python SDK. Here’s an example: