Skip to main content

Project User Assignments

Information pertaining to retrieving, creating, editing, and deleting user assignments. Admin or project manager permissions required. Project managers can only see user assignments of projects they manage.

Link to documentation

List all user assignments

Returns a list of your projects user assignments, active and archived. The user assignments are returned sorted by creation date, with the most recently created user assignments appearing first.

The response contains an object with a user_assignments property that contains an array of up to per_page user assignments. Each entry in the array is a separate user assignment object. If no more user assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your user assignments.

Link to documentation

hrvst projects user-assignments list
OptionDescriptionRequired
--is_activePass true to only return active user assignments and false to return inactive user assignments.false
--updated_sinceOnly return user assignments that have been updated since the given date and time.false
--pageThe page number to use in pagination. Use all to retrieve all pages.false
--per_pageThe number of records to return per page. Can range between 1 and 2000.false
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

List user assignments for a specific project

Returns a list of user assignments for the project identified by PROJECT_ID. The user assignments are returned sorted by creation date, with the most recently created user assignments appearing first.

The response contains an object with a user_assignments property that contains an array of up to per_page user assignments. Each entry in the array is a separate user assignment object. If no more user assignments are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your user assignments.

Link to documentation

hrvst projects user-assignments list-by-project
OptionDescriptionRequired
--project_idThe ID of the project whose user assignments you're retrieving.true
--user_idOnly return user assignments belonging to the user with the given ID.false
--is_activePass true to only return active user assignments and false to return inactive user assignments.false
--updated_sinceOnly return user assignments that have been updated since the given date and time.false
--pageThe page number to use in pagination. Use all to retrieve all pages.false
--per_pageThe number of records to return per page. Can range between 1 and 2000.false
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Retrieve a specific user assignment

Retrieves the user assignment with the given ID. Returns a user assignment object and a 200 OK response code if a valid identifier was provided.

Link to documentation

hrvst projects user-assignments get
OptionDescriptionRequired
--project_idThe ID of the project that contains the user assignment you're retrieving.true
--user_assignment_idThe ID of the user assignment you're retrieving.true
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Create a user assignment

Creates a new user assignment object. Returns a user assignment object and a 201 Created response code if the call succeeded.

Link to documentation

hrvst projects user-assignments create
OptionDescriptionRequired
--project_idThe ID of the project that you're creating the user assignment for.true
--user_idThe ID of the user to associate with the project.true
--is_activeWhether the user assignment is active or archived. Defaults to true.false
--is_project_managerDetermines if the user has project manager permissions for the project. Defaults to false for users with Regular User permissions and true for those with Project Managers or Administrator permissions.false
--use_default_ratesDetermines which billable rate(s) will be used on the project for this user when bill_by is People. When true, the project will use the user’s default billable rates. When false, the project will use the custom rate defined on this user assignment.false
--hourly_rateRate used when the project’s bill_by is Tasks. Defaults to null when billing by task hourly rate, otherwise 0.false
--budgetBudget used when the project’s budget_by is task or task_fees.false
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Update a user assignment

Updates the specific user assignment by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Returns a user assignment object and a 200 OK response code if the call succeeded.

Link to documentation

hrvst projects user-assignments update
OptionDescriptionRequired
--project_idThe ID of the project that contains the user assignment you're updating.true
--user_assignment_idThe ID of the user assignment you're updating.true
--is_activePass true to only return active user assignments and false to return inactive user assignments.false
--is_project_managerDetermines if the user has project manager permissions for the project.false
--use_default_ratesDetermines which billable rate(s) will be used on the project for this user when bill_by is People. When true, the project will use the user’s default billable rates. When false, the project will use the custom rate defined on this user assignment.false
--hourly_rateCustom rate used when the project’s bill_by is People and use_default_rates is false.false
--budgetBudget used when the project’s budget_by is person.false
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Delete a user assignment

Delete a user assignment. Deleting a user assignment is only possible if it has no time entries or expenses associated with it. Returns a 200 OK response code if the call succeeded.

Link to documentation

hrvst projects user-assignments delete
OptionDescriptionRequired
--project_idThe ID of the project that contains the user assignment you're deleting.true
--user_assignment_idThe ID of the user assignment you're deleting.true
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse