是否有 API 获取项目用户的服务访问权限?

Is there API to GET project users' services access?

有没有办法获取用户在 a/all project/s 中可以访问哪些服务?如果是这样,最好的方法是从帐户 -> 项目 -> 用户 -> 服务还是 Users/Members -> 项目 -> 服务?

谢谢!

我不太确定你想要实现什么,因为我对 BIM 360 不是很熟悉。 但是,您能否通过使用 Forge 数据管理中的论文获得您想要的东西 API?

从集线器 API,您应该能够获得用户有权访问的集线器列表: https://forge.autodesk.com/en/docs/data/v2/reference/http/hubs-GET/

您还可以使用 CheckPermission API 检查用户的权限: https://forge.autodesk.com/en/docs/data/v2/reference/http/CheckPermission/

另请查看 GET Account Users 角色。

更新 2020/03/30

项目用户 API 处于测试阶段 https://forge.autodesk.com/blog/get-project-users-bim-360-finally-here,请试一试,谢谢!

=========结束行=======

我不是 100% 确定您提到的服务,但这里有一个获取特定用户的项目列表的解决方法:

1.Call GET Account users 获得 uid 个用户

[
  {
    "id": "a75e8769-621e-40b6-a524-0cffdd2f784e",
    //...
    "name": "John Smith",
    "nickname": "Johnny",
    "first_name": "John",
    "last_name": "Smith",
    "uid": "L9EBJKCGCXBB",        //!<<< The value is going to pass to x-user-id
    //...
  }
]

2.Call GET hubs/:hub_id/projects 请求 header x-user-id 获取用户所属的项目

curl -X GET \
  https://developer.api.autodesk.com/project/v1/hubs/{HUD_ID}/projects \
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache' \
  -H 'x-user-id: L9EBJKCGCXBB' 

事实证明这是不可能的……但是。我收到了 Autodesk Forge 开发人员的回复:

“不幸的是,目前这还不太可能,但我要做的是向工程部门提出功能请求,希望如此

如果他们需要更多信息来评估我们的请求,我们会通知您。谢谢!"

谢谢大家的帮助!