What we want to achieve:
Before
After
In order to change the user assignment a POST call should be made to
/api/projectserver/v2/projects/{projectId}/changeassignment
In the body of the call we need to send additional information about the LanguageFileId, PhaseId, Assigned Users.
How to get the PhaseId and Assigned Users parameters
- PhaseId can be retrieved by making a call to
/api/projectserver/v2/phases/{projectId}
- In order to get the name of the user you want to assign the file you need to make a call to the following endpoint
/api/management/v2/users
From the response "UserName" parameter must be used. You can assign the file to multiple users.
How assign body looks like
If the call was completed successfully you'll the the changes in GroupShare UI.