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.
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
You can use
/directory/deletedItems/microsoft.graph.user
endpoint.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
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