我正在尝试创建一个" LocalAccount"在此处记录的B2C域中:MSDN
我正在使用azure-graph节点包,我的请求的有效负载在MSDN文章中看起来像。
请求是:
POST https://graph.windows.net/myorganization/users
{
"accountEnabled": true,
"creationType": "LocalAccount",
"displayName": "Alex Wu",
"passwordProfile": {
"password": "Test1234",
"forceChangePasswordNextLogin": false
},
"signInNames": [
{
"type": "userName",
"value": "AlexW"
},
{
"type": "emailAddress",
"value": "AlexW@example.com"
}
]
}
我得到的错误是:
错误:错误"' userPrincipalName'在参数中不能为空或未定义。'。"发生在序列化有效载荷
我认为错误来自节点包。节点图api客户端是否支持LocalAccounts?