[BUG] Remove-PnPDeletedMicrosoft365Group insufficient privileges error even though I am the owner with Group.ReadWrite.All permission #3839
Unanswered
kbeeveer46
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reporting an Issue or Missing Feature
EDIT: A comment on this Stack Overflow post says that app registrations cannot permanently delete objects. If that's the case, I think it would be helpful if that was mentioned in the cmdlet documentation https://stackoverflow.com/questions/74959445/how-to-delete-a-group-permanently
I am able to run Remove-PnPMicrosoft365Group but when I run Remove-PnPDeletedMicrosoft365Group to delete it from the deleted groups list I get "Insufficient privileges to complete the operation". Both of these cmdlets require the same permission according to the documentation. Why does one work and not the other? Does Remove-PnPDeletedMicrosoft365Group require more permission?
I am using a service principal with the following permissions and the service principal is an owner of the group. My cmdlets are in an Azure Function running PnP v2.1.1
Expected behavior
I expect the group to be deleted from the deleted groups list.
Actual behavior
Steps to reproduce behavior
What is the version of the Cmdlet module you are running?
2.1.1
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions