Using Console
Using CLI
objectId
of each inactive user.
<objectId>
with the actual objectId
of the inactive user.
az ad user show
command to check the accountEnabled status of each user:
<objectId>
with the actual objectId
of the user.
Using Python
pip install azure-identity
pip install azure-mgmt-authorization
disable_inactive_users
function with the specified number of inactive days: