Skip to content

New command: aad user recyclebinitem restore #4500

@milanholemans

Description

@milanholemans

Usage

m365 aad user recyclebinitem restore [options]

Description

Restores a user from the recycle bin in the current tenant

Options

Option Description
--id <id> ID of the deleted user.

Examples

Restore user from the recycle bin

m365 aad user recyclebinitem restore --id 59f80e08-24b1-41f8-8586-16765fd830d3

Default properties

No response

Additional Info

API info: https://learn.microsoft.com/en-us/graph/api/directory-deleteditems-restore?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

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions