https://forge.autodesk.com/en/docs/bim360/v1/reference/http/users-POST/#example
按照上面的链接,我正在尝试使用邮递员在BIM 360中创建一个新用户,但无法设置其名称。我试图在自己的帐户中创建一个类似的用户,如下所示。
URI: https://developer.api.autodesk.com/hq/v1/accounts/:account_id/users
方法:开机自检
授权:不记名**************************
内容类型:application/json
身体:
{
"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"
}
但是,发送此请求时的结果将创建一个名为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"
}
这是一个错误吗?当我检查BIM 360时,将使用名称“新成员”创建用户,并且无法使用自己的自定义名称创建任何成员。有什么解决办法吗?
答案 0 :(得分:1)
在用户首次登录之前,name
属性不会在BIM360和身份服务之间同步。
在此之前不会设置name
,并且默认设置为New Member
。