gpt4 book ai didi

azure - "Property has an invalid value"是什么意思?

转载 作者:行者123 更新时间:2023-12-03 05:42:15 26 4
gpt4 key购买 nike

在使用 Graph API 版本 1.0 在 Azure AD 中创建一批用户期间,我收到以下错误消息:

Property  has an invalid value

正如你所看到的,消息中没有属性名称,所以我无法理解真正的问题。我可以说的是,这些用户在所有成功创建的用户中没有特殊条件。

有什么想法吗?

更新 1:

正如人们所问,以下是帖子数据。由于存在敏感数据,我必须更改姓名和其他一些个人数据:

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

以及 JSON 负载:

{
"accountEnabled": false,
"country": "BR",
"displayName": "Jane Sagan",
"givenName": "Jane",
"mailNickname": "jane.sagan",
"otherMails": [
"<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8de7ece3e8a3feeceaece3a3cdeae0ece4e1a3eee2e0" rel="noreferrer noopener nofollow">[email protected]</a>"
],
"passwordProfile": {
"forceChangePasswordNextSignIn": false,
"password": "J@n3Sa8aN"
},
"surname": "Sagan",
"usageLocation": "BR",
"userPrincipalName": "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a8c2c9c6cd86dbc9cfc9c6e8ddc6c1decddadbc1dcd186cada" rel="noreferrer noopener nofollow">[email protected]</a>",
"userType": "Member"
}

最佳答案

属性“otherMails”不支持格式“[email protected]”。

用户名不能以“.”结尾在O365。您可以在O365门户中尝试(创建一个用户名以“.”结尾的用户)来验证一下。

关于azure - "Property has an invalid value"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57805597/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com