Forum Discussion
EXCH_Enthusiast
Mar 10, 2022Copper Contributor
Script to give permissions to shared mailbox fails.
I want to use the below link to set permissions for shared mailbox. https://github.com/michevnew/PowerShell/blob/master/Remove_Folder_Permissions_recursive_BULK.ps1 However I am getting error “no ma...
- Mar 10, 2022Said error is thrown when the script cannot match the value(s) you provide for the -User parameter against the known security principals in your tenant. For that, it uses the Get-SecurityPrincipal cmdlet, which by default is only available to those assigned the "Role Management" role. Ask your admin to assign you said role, or update the script to use the Get-Recipient cmdlet instead.
VasilMichev
Mar 10, 2022MVP
Said error is thrown when the script cannot match the value(s) you provide for the -User parameter against the known security principals in your tenant. For that, it uses the Get-SecurityPrincipal cmdlet, which by default is only available to those assigned the "Role Management" role. Ask your admin to assign you said role, or update the script to use the Get-Recipient cmdlet instead.
EXCH_Enthusiast
Mar 11, 2022Copper Contributor
Amazing Vasil