AlexSC
AlexSC

Reputation: 1923

What does it mean "Property has an invalid value"?

During the creation of a batch of users in Azure AD by using the Graph API version 1.0 I receive the followiing error message:

Property  has an invalid value

As you can see, there is not property name in the message, so I can't understand the real problem. What I can say is that those users have no particular conditions among the all others successfully created.

Any ideas?

Update 1:

As people asked, below are the post data. Since there is sensitive data, I have to changed names and som other personal data:

POST https://graph.microsoft.com/v1.0/users

And the JSON payload:

{
  "accountEnabled": false,
  "country": "BR",
  "displayName": "Jane Sagan",
  "givenName": "Jane",
  "mailNickname": "jane.sagan",
  "otherMails": [
    "[email protected]"
  ],
  "passwordProfile": {
    "forceChangePasswordNextSignIn": false,
    "password": "J@n3Sa8aN"
  },
  "surname": "Sagan",
  "usageLocation": "BR",
  "userPrincipalName": "[email protected]",
  "userType": "Member"
}

Upvotes: 0

Views: 6322

Answers (1)

Allen Wu
Allen Wu

Reputation: 16438

The property "otherMails" doesn't support the format "[email protected]".

Username cannot end with '.' in O365. You can have a try (create a user whose username ends with '.') in O365 portal to verify it.

Upvotes: 2

Related Questions