A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Hi Williams B
Thanks for reaching out to Microsoft Q&A forum support
As far as I know, this error occurs because the -Identity parameter is either empty or not receiving a valid mailbox identifier. The Identity parameter is mandatory and expects a string that specifies the mailbox (such as an email address, alias, or distinguished name). When given an empty string or an uninitialized variable, the cmdlet cannot convert this value to the expected RecipientIdParameter type, resulting in the error shown.
That said, in order to resolve this error, ensure that the -Identity parameter is explicitly provided with a valid mailbox identifier string, and avoid passing empty or null values. For example, if running this command in a script or loop, verify that the variable holding the mailbox identity contains a valid string before invoking Add-MailboxPermission
For example:
Add-MailboxPermission -Identity "******@yourdomain.com" -User "******@yourdomain.com" -AccessRights FullAccess
By ensuring the -Identity parameter is never empty and always receives the correct mailbox identifier string, the cmdlet should run successfully without the parameter transformation error.
Link reference: https://learn.microsoft.com/en-us/exchange/recipients-in-exchange-online/manage-permissions-for-recipients
Hope my answer will help you
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.