【问题标题】:Fetch Project Users from BIM360 using Forge API使用 Forge API 从 BIM360 获取项目用户
【发布时间】:2021-11-16 17:52:26
【问题描述】:

大约一个月前,我能够使用 Forge API 检索 BIM 360 中项目的项目用户,使用 API 作为 GET - https://developer.api.autodesk.com/bim360/admin/v1/projects/:projectId/users。 自上个月以来,我无法获取用户并收到 403 响应。我已经尝试过使用两足和三足令牌,以及在请求中附加区域的标头,但仍然没有得到响应。 API链接:https://forge.autodesk.com/en/docs/bim360/v1/reference/http/admin-v1-projects-projectId-users-GET/ 如果有人知道 API 中所做的任何更改,请帮助我。

【问题讨论】:

    标签: autodesk-forge


    【解决方案1】:

    我尝试了这个请求,得到了这个 403 响应。

    {
      "developerMessage": "Token does not have the privilege for this request.",
      "moreInfo":"https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/error_handling/", 
      "errorCode": "AUTH-010"
    }
    

    正如我们所读到的,我在范围内缺少account:read。你能检查一下或者给我们你收到的developerMessage吗?

    【讨论】:

    • AlexAR-是的,我已经给出了,帐户:在获取令牌时读取范围,以下是我收到的响应:{“status”:403,“type”:“”,“id ": "fa6d6fbd45f9c6f2", "title": "Forbidden", "detail": "The 2 legged clientId does not have access" } 同样适用于三脚托克。大约一个月前它运行良好,但突然开始显示此问题。
    • 当您的 Forge App 无权访问 BIM360 项目(未添加到自定义集成部分)时,返回消息 The client_id specified does not have access to the api products。你能检查一下吗?使用相同的Forge Client ID 执行不同类型的 BIM360 请求时,您是否遇到同样的问题?
    • 我能够获取每个项目中所有文件的自定义属性参数、路径和位置,这很好,但用户的信息显示了这个问题。用户 API 在 Autodesk 网站上显示为测试版,因此,是否存在不稳定的可能性。 developer.api.autodesk.com/bim360/admin/v1/projects/:projectId/….
    • 嘿,请确保用户(User-Id 标头或 3LO)具有所需的权限吗?请参考forge.autodesk.com/en/docs/bim360/v1/reference/http/…
    猜你喜欢
    • 2021-02-09
    • 2020-07-23
    • 2020-08-21
    • 1970-01-01
    • 2021-05-24
    • 2019-03-23
    • 2021-10-11
    • 2019-07-13
    • 2020-08-10
    相关资源
    最近更新 更多