skip to Main Content

Is there any way to retrieve information on a deleted user in Azure AD using Graph API?

I need the deleted date of that user.

2

Answers


  1. You can use /directory/deletedItems/microsoft.graph.user endpoint.

    https://graph.microsoft.com/v1.0/directory/deletedItems/microsoft.graph.user?$select=id,deletedDateTime,displayName
    

    deletedDateTime is not returned by default, so it must be specified in the $select.

    Users are permanently deleted automatically 30 days after they are deleted. The endpoint will return only users deleted in last 30 days.

    Resource:

    List deleted items

    Login or Signup to reply.
  2. Maybe you can try below:
    https://learn.microsoft.com/en-us/graph/api/directory-deleteditems-list?view=graph-rest-1.0&tabs=http

    GET /directory/deletedItems/microsoft.graph.user

    But if it is hard deletion, I don’t think you can retrieve the information

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search