Skip to content

New command: aad user recyclebinitem list #4498

@milanholemans

Description

@milanholemans

Usage

m365 aad user recyclebinitem list [options]

Description

Lists users from the recycle bin in the current tenant

Options

Nothing!

Examples

List all removed users

m365 aad user recyclebinitem list

Default properties

  • id
  • displayName
  • userPrincipalName

Additional Info

Right now, this is already possible using aad user list --deleted. But if we follow the same design as with o365group, this should be another command.
Therefore I suggest we create this command, and remove the --deleted flag from aad user list in the next major release.

API info: https://learn.microsoft.com/en-us/graph/api/directory-deleteditems-list?view=graph-rest-1.0&tabs=http

Let's specify in the docs which roles you need to remove a user:

  • User Administrator
  • Privileged Authentication Administrator
  • Global Administrator

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions