Skip to content

aad user recyclebinitem list

Lists users from the recycle bin in the current tenant

Usage

m365 aad user recyclebinitem list [options]

Options

-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is full.
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

List all removed users

m365 aad user recyclebinitem list

Response

[
  {
    "businessPhones": [],
    "displayName": "John Doe",
    "givenName": "John Doe",
    "jobTitle": "Developer",
    "mail": "john@contoso.com",
    "mobilePhone": "0476345130",
    "officeLocation": "Washington",
    "preferredLanguage": "nl-BE",
    "surname": "John",
    "userPrincipalName": "7e06b56615f340138bf879874d52e68ajohn@contoso.com",
    "id": "7e06b566-15f3-4013-8bf8-79874d52e68a"
  }
]
id                                    displayName  userPrincipalName
------------------------------------  -----------  -----------------------------------------------
7e06b566-15f3-4013-8bf8-79874d52e68a  John Doe     7e06b56615f340138bf879874d52e68ajohn@contoso.com
id,displayName,userPrincipalName
7e06b566-15f3-4013-8bf8-79874d52e68a,John Doe,7e06b56615f340138bf879874d52e68ajohn@contoso.com
# aad user recyclebinitem list

Date: 14/02/2023

## John Doe (7e06b566-15f3-4013-8bf8-79874d52e68a)

Property | Value
---------|-------
businessPhones | []
displayName | John Doe
givenName | John Doe
jobTitle | Developer
mail | john@contoso.com
mobilePhone | 0476345130
officeLocation | Washington
preferredLanguage | nl-BE
surname | John
userPrincipalName | 7e06b56615f340138bf879874d52e68ajohn@contoso.com
id | 7e06b566-15f3-4013-8bf8-79874d52e68a