Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: aad user recyclebinitem restore #4500

Closed
Tracked by #4496
milanholemans opened this issue Feb 11, 2023 · 6 comments
Closed
Tracked by #4496

New command: aad user recyclebinitem restore #4500

milanholemans opened this issue Feb 11, 2023 · 6 comments

Comments

@milanholemans
Copy link
Contributor

milanholemans commented Feb 11, 2023

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
@milanholemans milanholemans added new feature needs peer review Needs second pair of eyes to review the spec or PR labels Feb 11, 2023
@Adam-it
Copy link
Contributor

Adam-it commented Feb 13, 2023

similar to the remove command I wonder if we could add a bit more logic here as well and more user friendly approach to allow to get the user by name and upn? what do you think?
other than that looks good ✔👍

@milanholemans
Copy link
Contributor Author

Answered your comment in the other issue.

@Adam-it
Copy link
Contributor

Adam-it commented Feb 13, 2023

also answered there as well to you answer 😅

@Jwaegebaert
Copy link
Contributor

Let's open this one up! Great job @milanholemans

@Jwaegebaert Jwaegebaert added help wanted and removed needs peer review Needs second pair of eyes to review the spec or PR labels Feb 17, 2023
@MathijsVerbeeck
Copy link
Contributor

Had one coffee too many, can I work on this one?

@milanholemans
Copy link
Contributor Author

Night is still young!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants