Exchange Online PowerShell Error

Johnny Blaze 5 Reputation points
2025-11-22T10:58:33.0133333+00:00

Please help:

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. Specify a value, and try again. Parameter name: identity"

Exchange | Exchange Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jade-T 8,530 Reputation points Microsoft External Staff Moderator
    2025-11-22T12:37:57.2733333+00:00

    Hi @Johnny Blaze

    Thank you for posting your question in the Q&A Forum. 

    I understand you’re experiencing an issue with mailbox permissions. Based on my research, this error can occur if the -Identity parameter is empty or not receiving a valid mailbox identifier. The -Identity parameter is required and typically expects a mailbox, such as an email address, alias, or distinguished name. 

    To help resolve this, you might want to make sure that the -Identity parameter is provided with a valid mailbox value and that empty or null values are avoided.

    For example, if this command is run in a script or loop, check that the variable holding the mailbox identity contains a valid string before calling the cmdlet: 

    Add-MailboxPermission -Identity "******@yourdomain.com" -User "******@yourdomain.com" -AccessRights FullAccess 
    

    Providing a valid mailbox identifier in this way usually allows the cmdlet to run without the parameter transformation error. 

    You can find more details here: Manage permissions for recipients in Exchange Online | Microsoft Learn 

    I hope this information is helpful. If you continue to experience issues, please don’t hesitate to share the exact command you are using so that we can assist you further. 


    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. 


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.