【问题标题】:Postman - POST users into BIM 360 bug?邮递员 - 将用户发布到 BIM 360 错误?
【发布时间】:2019-07-18 16:30:47
【问题描述】:

https://forge.autodesk.com/en/docs/bim360/v1/reference/http/users-POST/#example

按照上面的链接,我正在尝试使用 Postman 在 BIM 360 中创建一个新用户,但我无法设置他们的名称。我尝试在我自己的帐户中创建一个类似的用户,如下所示。

URI: https://developer.api.autodesk.com/hq/v1/accounts/:account_id/users

方法:POST

授权:承载**************************

内容类型: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 时,使用名称新成员创建用户,我无法使用我自己的自定义名称创建任何成员。有什么解决办法吗?

【问题讨论】:

  • 您能否再试一次,将name 字段留出,与端点文档中的示例相同?
  • 我删除了name,但它仍然创建了一个名为New Member的新用户。

标签: post postman autodesk-forge autodesk-bim360


【解决方案1】:

在用户第一次登录之前,name 属性不会在 BIM360 和 Identity 服务之间同步。

在此之前,name 不会被设置,默认为New Member

【讨论】:

    猜你喜欢
    • 2019-05-06
    • 2019-10-20
    • 2021-05-15
    • 2020-10-05
    • 2021-01-11
    • 2016-12-21
    • 2020-05-15
    • 2021-08-26
    • 2021-03-31
    相关资源
    最近更新 更多