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

Add -All parameter to Get-MgDirectoryDeletedItem #2393

Closed
worldsdream opened this issue Oct 29, 2023 · 2 comments
Closed

Add -All parameter to Get-MgDirectoryDeletedItem #2393

worldsdream opened this issue Oct 29, 2023 · 2 comments

Comments

@worldsdream
Copy link

It would be great if we can get a -All parameter to list all the deleted users.

@timayabi2020
Copy link
Contributor

Hi @worldsdream try and use this command Get-MgDirectoryDeletedItemAsUser.
See also the equivalent API documentation for the command. https://learn.microsoft.com/en-us/graph/api/directory-deleteditems-list?view=graph-rest-1.0&tabs=http

@worldsdream
Copy link
Author

Yes, that works. I will use that with my scripts. Thanks @timayabi2020.

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

No branches or pull requests

2 participants