[英]Postman - POST users into BIM 360 bug?
https://forge.autodesk.com/en/docs/bim360/v1/reference/http/users-POST/#example https://forge.autodesk.com/en/docs/bim360/v1/reference/http/users-POST/#example
Following the link above, I am trying to create a new user in BIM 360 using Postman but I am unable to set their name.按照上面的链接,我正在尝试使用 Postman 在 BIM 360 中创建一个新用户,但我无法设置他们的名称。 I tried to create a similar user into my own account as shown below.我尝试在我自己的帐户中创建一个类似的用户,如下所示。
URI: https://developer.api.autodesk.com/hq/v1/accounts/:account_id/users URI: https : //developer.api.autodesk.com/hq/v1/accounts/ :account_id/ users
Method: POST方法:POST
Authorization: Bearer **************************授权:承载****************************
Content-Type: application/json
内容类型: application/json
Body:身体:
{
"email": "john.smith@mail.com",
"company_id": ************************************,
"nickname": "Johnny",
"first_name": "John",
"last_name": "Smith",
"address_line_1": "The Fifth Avenue",
"address_line_2": "#301",
"city": "shanghai",
"postal_code": "20000",
"state_or_province": "Shanghai",
"country": "China",
"phone": "1234567",
"company": "Autodesk",
"job_title": "software developer",
"industry": "IT",
"about_me": "Nothing here"
}
However the result when sending this request creates a new user with the name New Member
as shown below.但是,发送此请求时的结果会创建一个名为New Member
的新用户,如下所示。
{
"account_id": ************************************,
"role": "account_user",
"status": "not_invited",
"company_id": ************************************,
"company_name": "Autodesk",
"last_sign_in": null,
"default_role": null,
"default_role_id": null,
"access_level": "account_user",
"id": ************************************,
"email": "john.smith@mail.com",
"name": "New Member",
"nickname": "Johnny",
"first_name": "New",
"last_name": "Member",
"uid": null,
"image_url": "http://static-dc.autodesk.net/etc/designs/v201412151200/autodesk/adsk-design/images/autodesk_header_logo_140x23.png",
"address_line_1": "The Fifth Avenue",
"address_line_2": "#301",
"city": "New York",
"postal_code": "10011",
"state_or_province": "New York",
"country": "United States",
"phone": "(634)329-2353",
"company": "Autodesk",
"job_title": "Software Developer",
"industry": "IT",
"about_me": "Nothing here",
"created_at": "2016-07-27T19:09:31.998Z",
"updated_at": "2019-02-19T08:59:57.852Z"
}
Is this a bug?这是一个错误吗? When I check BIM 360 the user is created with the name New Member and I am unable to create any members with my own custom names.当我检查 BIM 360 时,创建的用户名为 New Member,我无法使用我自己的自定义名称创建任何成员。 Are there any solutions to this?有什么解决办法吗?
The name
attribute will not be synced between BIM360 and Identity services until the user logs in for the first time.在用户第一次登录之前, name
属性不会在 BIM360 和 Identity 服务之间同步。
Before then name
won't be set and will default to New Member
.在此之前,将不会设置name
并将默认为New Member
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.