api https://graph.microsoft.com/v1.0/users
始终返回
One or more properties contains invalid values
POST getResponseHeader
标题:
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可用于调用。当前,只有创建用户将报告此错误。有人知道为什么吗?
答案 0 :(得分:1)
我找到了关键点。域 lhzc.cn 不是主域,请将其设置为主域,并且api不会报告错误