Search code examples
azurepowershellazure-active-directory

How to get list of recently created AD users from azure active directory using Azure CLI


I need the list of recently created AD users from azure active directory using Azure CLI

I need the users which is created in AD in the past 2 hours/24 hours. Is it possible to get it via CLI Command?


Solution

  • Try something like the following:

    az ad user list --filter "createdDateTime ge datetime'2020-06-10'"
    

    This will list the users created on or after 10th June 2020.