-
Notifications
You must be signed in to change notification settings - Fork 362
Fix 6941-Added minimal permissions for 'entra m365group recyclebin' commands #7002
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
base: main
Are you sure you want to change the base?
Fix 6941-Added minimal permissions for 'entra m365group recyclebin' commands #7002
Conversation
…binitem' commands
Thanks, we'll try to review it ASAP! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @NishkalankBezawada 🚀
I have a couple of small comments, nothing major.
| Resource | Permissions | | ||
|-----------------|-----------------------------| | ||
| Microsoft Graph | Group.ReadWrite.All | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please improve formatting
| Resource | Permissions | | |
|-----------------|-----------------------------| | |
| Microsoft Graph | Group.ReadWrite.All | | |
| Resource | Permissions | | |
|-----------------|---------------------| | |
| Microsoft Graph | Group.ReadWrite.All | |
<TabItem value="Application"> | ||
|
||
| Resource | Permissions | | ||
|-----------------|-----------------------------| | ||
| Microsoft Graph | Group.Read.All | | ||
|
||
</TabItem> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove the application permissions. I've checked the doc and the endpoint called by the command doesn't support application permissions.
<TabItem value="Application"> | |
| Resource | Permissions | | |
|-----------------|-----------------------------| | |
| Microsoft Graph | Group.Read.All | | |
</TabItem> |
| Resource | Permissions | | ||
|-----------------|-----------------------------| | ||
| Microsoft Graph | Group.Read.All | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please improve formatting
| Resource | Permissions | | |
|-----------------|-----------------------------| | |
| Microsoft Graph | Group.Read.All | | |
| Resource | Permissions | | |
|-----------------|----------------| | |
| Microsoft Graph | Group.Read.All | |
| Resource | Permissions | | ||
|-----------------|-----------------------------| | ||
| Microsoft Graph | Group.Read.All | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please improve formatting
| Resource | Permissions | | |
|-----------------|-----------------------------| | |
| Microsoft Graph | Group.Read.All | | |
| Resource | Permissions | | |
|-----------------|----------------| | |
| Microsoft Graph | Group.Read.All | |
| Resource | Permissions | | ||
|-----------------|-----------------------------| | ||
| Microsoft Graph | Group.ReadWrite.All | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please improve formatting
| Resource | Permissions | | |
|-----------------|-----------------------------| | |
| Microsoft Graph | Group.ReadWrite.All | | |
| Resource | Permissions | | |
|-----------------|---------------------| | |
| Microsoft Graph | Group.ReadWrite.All | |
| Resource | Permissions | | ||
|-----------------|-----------------------------| | ||
| Microsoft Graph | User.DeleteRestore.All | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct permission for restoring soft-deleted group is Group.ReadWrite.All
| Resource | Permissions | | |
|-----------------|-----------------------------| | |
| Microsoft Graph | User.DeleteRestore.All | | |
| Resource | Permissions | | |
|-----------------|---------------------| | |
| Microsoft Graph | Group.ReadWrite.All | |
| Resource | Permissions | | ||
|-----------------|-----------------------------| | ||
| Microsoft Graph | User.DeleteRestore.All | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct permission for restoring soft-deleted group is Group.ReadWrite.All
| Resource | Permissions | | |
|-----------------|-----------------------------| | |
| Microsoft Graph | User.DeleteRestore.All | | |
| Resource | Permissions | | |
|-----------------|---------------------| | |
| Microsoft Graph | Group.ReadWrite.All | |
Added minimal permissions for 'entra m365group recyclebin' commands
Added minimal permissions for 'entra m365group recyclebin' commands.
Screenshots
m365 entra m365group recyclebinitem list
m365 entra m365group recyclebinitem restore --id 87casd23-4xxx-4as0-b23d-a1234561dbd8
m365 entra m365group recyclebinitem clear
m365 entra m365group recyclebinitem remove --id 87casd23-4xxx-4as0-b23d-a1234561dbd8
Closes #6941
Thanks,
Nish