Forum Discussion
Exchange Online New-Mailuser missing
- Sep 09, 2017
Also make sure you have the relevant permissions. By default, you need to have the "Mail Recipient Creation" role assigned in order to use this cmdlet.
I just ran New-MailUser and was able to create a new object. Are you absolutely sure that you have connected a session to Exchange Online?
Also make sure you have the relevant permissions. By default, you need to have the "Mail Recipient Creation" role assigned in order to use this cmdlet.
- Jürgen RöschSep 09, 2017Copper Contributor
Hey.. that was the problem... I was using a different user in the past. No I've changed back and it's working again.
Thanks
- TonyRedmondSep 09, 2017MVP
That's possible - maybe a different account is being used to run the script?
To add a little background, when you create a remote PowerShell session to Exchange, the set of cmdlets loaded into the session depends on the RBAC roles assigned to the account. As Vasil notes, if that account has not been assigned the Mail Recipient Creation role, it won't see the cmdlet.