Ress
Ress

Reputation: 77

Set-Mailbox Exchange Online cmdlet doesn't recognize -CustomAttribute1 parameter

I'm creating a script that will update a user's Exchange Mailbox CustomAttribute1 via PowerShell. I connected to our O365 server and ran it. The documentation specifically says this attribute exists however it's not being recognized:

enter image description here

And this is very strange because on the documentation the parameter is clearly there:

enter image description here

Any idea why this is happening? We use a 100% cloud environment meaning I'm connected to an Exchange Online shell.

Upvotes: 0

Views: 2472

Answers (1)

Ress
Ress

Reputation: 77

Thank you @Robin! The parameter existed but the account I connected to Exchange Online didn't have enough permissions. After logging in with another account that has Global Admin it worked like a charm.

Upvotes: 1

Related Questions