Expand my Community achievements bar.

The Community Ideas review for H1 2025 is out now, see which ideas our Product team prioritized and let us know your thoughts.
SOLVED

How to Add a User to a newly created Project in Workfront Fusion

Avatar

Level 3

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!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

SveniX_0-1741858667163.png

 

View solution in original post

16 Replies

Avatar

Correct answer by
Community Advisor

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

SveniX_0-1741858667163.png

 

Avatar

Level 3

Thank you @Sven-iX! I will give this a try. I really appreciate you weighing in and providing a solution.

Avatar

Level 3

@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.Screenshot 2025-03-14 113159.pngScreenshot 2025-03-14 112627.png

Avatar

Level 3

@Sven-iX I adjusted the JSON body and still received an error:

RuntimeError

[400] APIModel V19_0 does not support action addUsersFromProject (PROJ)

Avatar

Community Advisor

@JessicaBCrum I am so sorry: 
You'll need the "internal" API

SveniX_0-1741982981672.png

 

Avatar

Level 3

@Sven-iX Now I am receiving this error:
[422] APIModel INTERNAL action addUsersFromProject does not support argument named {
"userIDs": [
"67c8bd320004760a3117d5618bf1072b"
]
}

Avatar

Community Advisor

Right - make sure you pass it like below

 

updates={"userIDs":["64dcc7480386dd0f8dde7c2e1ca1c62d"]}

 

Avatar

Community Advisor

@JessicaBCrum did you get it to work? 

Avatar

Level 3

Thanks for checking in @Sven-iX! I ran it and did not receive an error; however the result was null:
 { "body": { "data": { "result": null } }

Avatar

Community Advisor

That's what I get too. Did you check the people's tab in the project? Or just get projectUsers before and after? 

Avatar

Level 3

@svensvensven It worked! Thanks so much for your assistance. QQ - How would you remove a user or group of users if needed?

Avatar

Community Advisor

That was a different Sven : D

 

Similar call 

SveniX_0-1742381000447.png

 

Avatar

Level 3

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?

Avatar

Community Advisor

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. 

Avatar

Level 9

Hi @Sven-iX - How does api-internal differ from something like api/v19.0? Could you please explain?

Avatar

Community Advisor