I am trying to figure out how to add users to a project using Fusion. I have tried a Custom API call: Post and a Create Record for Project User. Neither work and produce a 422 error: [422] PRTU is not a top level object and can't be requested directly. I am trying to add a few users that will not be assigned to tasks to the new project and at the same time I need to remove the owner of the request from the converted request and add them to the project. Any help would be extremely appreciated!
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @JessicaBCrum
ProjectUser is a linking object, much like objectCategory and you can't modify those records directly.
Using a customAPI call you can add a user to a project like so
Hi @JessicaBCrum
ProjectUser is a linking object, much like objectCategory and you can't modify those records directly.
Using a customAPI call you can add a user to a project like so
Thank you @Sven-iX! I will give this a try. I really appreciate you weighing in and providing a solution.
Views
Replies
Total Likes
@Sven-iX Unfortunately I received an error. I have included a few screenshots of my input for the custom API call and the error I received.
Views
Replies
Total Likes
@Sven-iX I adjusted the JSON body and still received an error:
[400] APIModel V19_0 does not support action addUsersFromProject (PROJ)
Views
Replies
Total Likes
@Sven-iX Now I am receiving this error:
[422] APIModel INTERNAL action addUsersFromProject does not support argument named {
"userIDs": [
"67c8bd320004760a3117d5618bf1072b"
]
}
Views
Replies
Total Likes
Right - make sure you pass it like below
updates={"userIDs":["64dcc7480386dd0f8dde7c2e1ca1c62d"]}
Views
Replies
Total Likes
@JessicaBCrum did you get it to work?
Views
Replies
Total Likes
Thanks for checking in @Sven-iX! I ran it and did not receive an error; however the result was null:
{ "body": { "data": { "result": null } }
Views
Replies
Total Likes
That's what I get too. Did you check the people's tab in the project? Or just get projectUsers before and after?
Views
Replies
Total Likes
@svensvensven It worked! Thanks so much for your assistance. QQ - How would you remove a user or group of users if needed?
Views
Replies
Total Likes
That was a different Sven : D
Similar call
Thanks again for you help, @Sven-iX. I have a follow-up question, how would I include or remove a team instead of specific users on the converted project?
Views
Replies
Total Likes
Hi Jessica,
You can't use teams with this call - kinda makes sense because projectUsers are by definition, type USER.
In fusion you'd have to retrieve the team members and then iterate from them, addding/removing them.
Views
Replies
Total Likes
Hi @Sven-iX - How does api-internal differ from something like api/v19.0? Could you please explain?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies