Share via

Exchange Online PowerShell Error: “Cannot process argument transformation on parameter ‘Identity’. Cannot convert value “” to type “Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter””

Williams B 140 Reputation points
2025-09-23T09:42:23.6533333+00:00

We recently upgraded a client’s personal Office 365 account to a Microsoft 365 Business plan and added their custom domain to set up Exchange Online. Everything seems configured correctly in the Exchange Admin Center, and we’ve verified that all necessary rights and permissions are assigned there.

However, when trying to add or modify mailbox permissions (e.g., using cmdlets like Add-MailboxPermission) in PowerShell for the business setup, we encounter this error:

“Cannot process argument transformation on parameter ‘Identity’. Cannot convert value “” to type “Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter”. Error: “Parameter values of type Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter can’t be empty””

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.


Answer accepted by question author

Steven-N 25,305 Reputation points Microsoft External Staff Moderator
2025-09-23T10:23:26.9233333+00:00

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.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.