I am working on a small .NET Console App that uses the BIM 360 API to manage both Project and Account members using the two-legged authentication method. I am having trouble trying to import users to a BIM 360 Project using the hq/v2/accounts/:account_id/projects/:project_id/users/import endpoint.
In both a .NET Console App and Postman, I receive a 404 status code with the following body response:
{
"code": 1004,
"message": "this user doesn't exist."
}
Request Header:
Content-Type: "application/json";
x-user-id: "********-****-****-****-************";
Authorization: Bearer ****<two-legged token string>*****;
(x-user-id is the guid assigned to the account admin)
Request Body:
{
"user_id": "********-****-****-****-************",
"services": {
"project_administration": {
"access_level": "admin"
},
"document_management": {
"access_level": "admin"
}
},
"company_id": "********-****-****-****-************",
"industry_roles": []
}
In the request body, I have used both the user_id
fetched from the hq/v1/accounts/:account_id/users/:user_id id
property, and the email
. I have used a user who is already a member of the project, a user who is in the Admin directory but not a member of the project, and a completely new user who is neither. All three still return the same error.
I've came across similar questions here and here but still can't get it to work. Is there something else I am overlooking? Thanks in advance for the help.