Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在office365中调用create user时,一个或多个属性包含无效值_Office365_Azure Ad Graph Api - Fatal编程技术网

在office365中调用create user时,一个或多个属性包含无效值

在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",

api
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不会报告错误