在office365中调用create user时,一个或多个属性包含无效值
api在office365中调用create user时,一个或多个属性包含无效值,office365,azure-ad-graph-api,Office365,Azure Ad Graph Api,apihttps://graph.microsoft.com/v1.0/users始终返回 One or more properties contains invalid values 职位 标题: Authorization:Bearer xxxx Content-Type:application/json 正文: { "accountEnabled": true, "displayName": "lh lh", "mailNickname": "lhzc226",
https://graph.microsoft.com/v1.0/users
始终返回
One or more properties contains invalid values
职位
标题:
Authorization:Bearer xxxx
Content-Type:application/json
正文:
{
"accountEnabled": true,
"displayName": "lh lh",
"mailNickname": "lhzc226",
"userPrincipalName": "lhzc226@lhzc.cn",
"passwordProfile": {
"forceChangePasswordNextSignIn": true,
"password": "@MvYE8177"
}
}
返回:
{
"error": {
"code": "Request_BadRequest",
"message": "One or more properties contains invalid values.",
"innerError": {
"request-id": "e54a9d33-e9ec-4e9a-a867-2fc87d5ba807",
"date": "2019-06-28T09:59:43"
}
}
}
可以调用其他API。当前,只有创建用户将报告此错误。有人知道为什么吗?我找到了关键点。域lhzc.cn不是主域,请将其设置为主域,api不会报告错误