Search code examples
autodesk-forgeautodesk-bim360

Import users to BIM 360 project using Forge V2 endpoint


I'm experimenting with the automatic setup of projects in BIM 360 Field using the Autodesk Forge API. The code is designed to run on internal systems and currently uses the two legged authentication method. I've managed to get a project setup, I'm now trying to add a project admin using the recommended V2 import endpoint:

POST projects/:project_id/users/import

As I'm using two legged authentication I'm specifying my x-user-id in the header. When I run this I receive the following error:

{fault.name} - The client_id specified does not have access to the api product

This happens no matter which V2 endpoint I use; even though all services are enabled in the Forge Dev Centre for the app. I've looked at this answer and Mikako's solution works, but this is by using the V1 endpoint, I'd like to be able to use this endpoint, and other V2 endpoints. What could be going wrong with my V2 implementations?


Solution

  • I think it is because your project is Field classic. Field classic is a pre-Forge era web services. It's not a part of Forge.

    You may try Field API: https://bim360field.autodesk.com/apidoc/index.html#api/v1/project_users_method_3

    The newer version of Field is under preview right now for customers who has Field.

    For more info about what is Forge, what is not, please refer to this post: https://fieldofviewblog.wordpress.com/2017/01/17/bim-360-and-forge-overview/

    or about Field classic in general: https://fieldofviewblog.wordpress.com/forge/