Remove-AzureADDeviceRegisteredUser
This article provides migration details from Remove-AzureADDeviceRegisteredUser command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Remove-AzureADDeviceRegisteredUser
- Azure AD Module: AzureAD
- Microsoft Graph Command: Remove-MgDeviceRegisteredUserByRef (Community Examples)
- Graph Module: Microsoft.Graph.Identity.DirectoryManagement
- Graph Endpoint: DELETE /devices/{device-id}/registeredUsers/{directoryObject-id}/$ref
Permissions
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | Directory.AccessAsUser.All | Not available. |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | Not supported. | Not supported. |
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
ObjectId | DeviceId |
UserId | DirectoryObjectId |