简体   繁体   中英

Not able to retrieve project users and companies from BIM360 API

After obtaining a 3-legged token I can retrieve hubs, projects, checklists, issues, and other related project data, but when I query the endpoints listed below using the same token I get back a 403 status accompanied with the following error:

*"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"*

https://forge.autodesk.com/en/docs/bim360/v1/reference/http/companies-GET/ https://forge.autodesk.com/en/docs/bim360/v1/reference/http/admin-v1-projects-projectId-users-GET/

Could you please give me some insights here?

Thanks,

Henrique Alexandre

You'll need a 2-legged token for the Get companies endpoint.

About Get Project users , please check the scopes of your token.

The successful endpoints (retrieve hubs , projects , checklists , and issues ) require data:read scope, while Get Project users require account:read scope.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM