Users

Via the Rydoo API, you’re able to create, edit and retrieve user details of your company account. Users can be created for both the Expense and Travel module.

If you’d like to add more properties to each user, you can create additional custom fields limited to users. You need to configure them first on https://expense.rydoo.com/admin/settings/customfields

Email, firstName and lastName are required properties when creating a user. Each of the other properties will either be set to null or put to a default value if you don’t provide any value to it.

Please consult the properties under the table for more information about each parameter.

Note that "id" is a user id generated by Rydoo and "refID" is an id generated by yourself and stored in your own system. The usual practice is to add users to Rydoo with the "refID" and then to store Rydoo's generated "id" given in the response to the API POST in your own system.

Parameter NameRequired for user creation
emailY
firstNameY
lastNameY
refIdN
groupIdN
authenticationN
enabledN
countryN
languageCountryCodeN
accountNumberN
commuterTrafficN
customFieldsN (unless user-level custom field is set as mandatory in Rydoo)

Initial upload of the employees
When you’re setting up the account you usually have to perform an initial upload of the employees. During this initial phase It is advisable to create employees with enabled status as "false" to avoid sending them activation emails to set up their passwords/accounts. This would allow you to perform all the other configuration like adding a user to a group or adding the workflow to the user. You can send the activation emails once ready when the account is configured correctly and ready to go.

Use "Add a user to the company". You can only add one user per POST so you will need to take rate limiting into account.

Activating the users
When it’s time to activate the account and go live with all the users you can either run a API job to activate all the users or you can navigate to the users admin page in Rydoo, multi select all the users and then activate in bulk.

When an employee joins your company you want to make sure that they are created as a user in Rydoo as soon as possible. Through the API interface you’re able to perform this action in real-time, and you can set the employees enabled status as "true" at this point to ensure they get an activation email right away.

We usually see clients run a daily job that pushes recently created employee records in the HR tool as users in Rydoo. When a new user is created in Rydoo you should take in mind the following:

  • Add the user to the correct group. Otherwise the user can’t start expensing.
  • Add the correct approvers and controllers when you have user approval set up. This should not be done when you have project, group or custom field value approval set up.
  • When you have custom field values limited to users you should also take into account that you have to add the new user to the custom field values he / she needs to see.

When an employee changes jobs you want to make sure that all the data is correctly synced to Rydoo. Typically the group of the user needs to change to reflect the new cost center the employee is a part of. When changing the group of the user you chose to set the old group assignment in the past and new in the future or you can replace the entire assignment with the new one.

We usually see clients set a start and end date for the group assignments. This allows the employee to create expenses on the cost center that they were a part of.

When an employee leaves your company you want to make sure that the they don’t have access to Rydoo anymore. You can change the status of the user to disabled with a PUT request.

We usually see some clients change the email address of the user to mask the identity of the former employee. This can be for example be with a personal identifier from the employee (e.g. [email protected]). Other fields like first and last name can also be changed to random characters. Through this practise you will mask the identity of the former user in Rydoo and keep a record of the expense data in Rydoo.

Rydoo doesn’t allow its Clients to delete an employee record via API. When a employee record is deleted, the history of the expenses would also not be accessible anymore to any other person. Since this can have additional repercussions to the Client, and Rydoo is acting as data processor, we ask in this case to please follow our Data Pseudonymization and Deletion Procedure. Please contact your Customer Success Manager or Account Executive for more information.


Error messages

MissingRequiredFieldEmail: Email is mandatory when creating a user via API.