如何在 .NET 中获取分配给 BIM360 项目的用户
How to GET users assigned to a BIM360 project in .NET
是否可以 GET
分配给项目的用户?在 BIM 360 中,我可以手动将用户分配给项目,并且在 .NET 中有多种方法可以执行此操作 (https://forge.autodesk.com/en/docs/bim360/v1/reference/http/projects-project_id-users-import-POST/),但我如何知道哪些用户分配给了哪些项目。获取用户信息时,没有与用户分配到的项目相关的属性。
这是当前分配了两个用户的源项目的信息。
{
"id": "****************************",
"account_id": "****************************",
"name": "Sample Project",
"start_date": "2018-11-06",
"end_date": "2018-12-06",
"value": null,
"currency": null,
"status": "active",
"job_number": null,
"address_line_1": null,
"address_line_2": null,
"city": null,
"state_or_province": null,
"postal_code": null,
"country": "United States",
"business_unit_id": null,
"created_at": "2018-11-06T15:54:15.060Z",
"updated_at": "2019-02-20T10:04:20.035Z",
"project_type": "Demonstration Project",
"timezone": null,
"language": "en",
"construction_type": null,
"contract_type": null,
"last_sign_in": "2019-02-20T10:04:18.000Z"
},`
这是分配给上述项目的用户之一。我能看到的唯一关系是 role
和 access_level
,但它没有指定属于哪个项目。
{
"account_id": "****************************",
"role": "project_user",
"status": "active",
"company_id": "****************************",
"company_name": "Autodesk",
"last_sign_in": null,
"default_role": null,
"default_role_id": null,
"access_level": "project_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 API v2.
的一部分
请放心,这些端点正在接受内部审查,而且距离不会太远。请继续关注我们的 Forge Blog 更新。
现在您需要跟踪使用您自己的数据持久性添加的用户。
是否可以 GET
分配给项目的用户?在 BIM 360 中,我可以手动将用户分配给项目,并且在 .NET 中有多种方法可以执行此操作 (https://forge.autodesk.com/en/docs/bim360/v1/reference/http/projects-project_id-users-import-POST/),但我如何知道哪些用户分配给了哪些项目。获取用户信息时,没有与用户分配到的项目相关的属性。
这是当前分配了两个用户的源项目的信息。
{
"id": "****************************",
"account_id": "****************************",
"name": "Sample Project",
"start_date": "2018-11-06",
"end_date": "2018-12-06",
"value": null,
"currency": null,
"status": "active",
"job_number": null,
"address_line_1": null,
"address_line_2": null,
"city": null,
"state_or_province": null,
"postal_code": null,
"country": "United States",
"business_unit_id": null,
"created_at": "2018-11-06T15:54:15.060Z",
"updated_at": "2019-02-20T10:04:20.035Z",
"project_type": "Demonstration Project",
"timezone": null,
"language": "en",
"construction_type": null,
"contract_type": null,
"last_sign_in": "2019-02-20T10:04:18.000Z"
},`
这是分配给上述项目的用户之一。我能看到的唯一关系是 role
和 access_level
,但它没有指定属于哪个项目。
{
"account_id": "****************************",
"role": "project_user",
"status": "active",
"company_id": "****************************",
"company_name": "Autodesk",
"last_sign_in": null,
"default_role": null,
"default_role_id": null,
"access_level": "project_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 API v2.
的一部分请放心,这些端点正在接受内部审查,而且距离不会太远。请继续关注我们的 Forge Blog 更新。
现在您需要跟踪使用您自己的数据持久性添加的用户。