Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article provides migration details from Get-AzureADMSDeletedDirectoryObject command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Get-AzureADMSDeletedDirectoryObject
- Azure AD Module: AzureAD
- Microsoft Graph Command: Get-MgDirectoryDeletedItem (Community Examples)
- Graph Module: Microsoft.Graph.Identity.DirectoryManagement
- Graph Endpoint: GET /directory/deletedItems | /directory/deletedItems/{directoryObject-id}
Permissions
Supported resource | Delegated (work or school account) | Delegated (personal Microsoft account) | Application |
---|---|---|---|
administrativeUnit | AdministrativeUnit.Read.All | Not supported. | AdministrativeUnit.Read.All |
application | Application.Read.All | Not supported. | Application.Read.All |
group | Group.Read.All | Not supported. | Group.Read.All |
servicePrincipal | Application.Read.All | Not supported. | Application.Read.All |
user | User.Read.All | Not supported. | User.Read.All |
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
Id | DirectoryObjectId |