Add new user and set his current company settings
| Param name | Description |
|---|---|
|
user
required |
User params Validations:
|
|
user[name]
required |
User full name Validations:
|
|
user[email]
required |
Validations:
|
|
user[ssn]
optional , nil allowed |
User’s Social Security Number Validations:
|
|
user[iban]
optional , nil allowed |
IBAN Validations:
|
|
user[bic]
optional , nil allowed |
BIC Validations:
|
|
user[locale]
optional , nil allowed |
Validations:
|
|
user[send_reminder_emails]
optional , nil allowed |
Defaults to true Validations:
|
|
user[country_id]
optional , nil allowed |
Country id of a user. Determines default user currency in UI. Validations:
|
|
user[nationality_id]
optional , nil allowed |
Country id of a user’s . Dictates SSN validation rules. Validations:
|
|
user[gender]
optional , nil allowed |
Legal Gender. We support LGBTI Rights, but are constrained by the Tax Authorities in terms of which Gender alternatives we can report to them. We will update the alternatives as soon as we are allowed to do so. Validations:
|
|
user[birthday]
optional , nil allowed |
User birthday Validations:
|
|
user[roles]
optional , nil allowed |
An array of user roles. Can be one of a few of the following: “employee”, “manager”, “accountant”, “approver”, “money_checker”. Only the managers can update roles. Validations:
|
|
user[employment_termination_date]
optional , nil allowed |
Employment termination date, e.g. “2023-01-14”. User will be automatically removed from the company after that date. Validations:
|
|
user[on_vacation]
optional , nil allowed |
Defaults to false Validations:
|
|
user[vacation_start_date]
optional , nil allowed |
User vacation start date: on the start of that date on_vacation setting will be set to Validations:
|
|
user[vacation_end_date]
optional , nil allowed |
User vacation end date: the next day after that date on_vacation setting will be set to Validations:
|
|
user[political_party_id]
optional , nil allowed |
ID of a political party the user is a member of. Used for political party tax deduction. Validations:
|
|
user[settings_attributes]
optional , nil allowed |
Validations:
|
|
user[settings_attributes][default_cost_centers]
optional , nil allowed |
User’s default cost centers. Format: Validations:
|
|
user[settings_attributes][default_asset_account_id]
optional , nil allowed |
Validations:
|
|
user[settings_attributes][default_expense_account_id]
optional , nil allowed |
Validations:
|
|
user[settings_attributes][mileage_vehicle_category_id]
optional , nil allowed |
Validations:
|
|
user[settings_attributes][allowance_country_category_id]
optional , nil allowed |
Validations:
|
|
user[settings_attributes][allowance_account_id]
optional , nil allowed |
Validations:
|
|
user[settings_attributes][allowance_abroad_account_id]
optional , nil allowed |
Validations:
|
|
user[settings_attributes][mileage_account_id]
optional , nil allowed |
Validations:
|
|
user[settings_attributes][ir_mileage_code]
optional , nil allowed |
Validations:
|
|
user[settings_attributes][ir_daily_allowance_code]
optional , nil allowed |
Validations:
|
|
user[settings_attributes][reimbursement_account_code]
optional , nil allowed |
Validations:
|
|
user[settings_attributes][stand_in_approver_id]
optional , nil allowed |
Stand-in user_id, should be different from user_id Validations:
|
|
user[settings_attributes][send_data_to_incomes_register]
optional , nil allowed |
Validations:
|
|
user[settings_attributes][password_auth_disabled]
optional , nil allowed |
Enforce SSO authentication Validations:
|
|
user[settings_attributes][work_time_group_id]
optional , nil allowed |
Work-time group ID Validations:
|
|
user[approvers_attributes]
optional , nil allowed |
Add/Remove user approvers. Current user should have “manager” role to edit approvers Validations:
|
|
user[approvers_attributes][id]
optional , nil allowed |
User approver id, required if user approver already exists. If it’s not supplied, new user approver will be added Validations:
|
|
user[approvers_attributes][approver_id]
required |
Approver id Validations:
|
|
user[approvers_attributes][operator]
required |
Operator specifying approver process logic Validations:
|
|
user[approvers_attributes][_destroy]
optional , nil allowed |
Pass “true” here to delete an existing approver Validations:
|
|
user[current_tax_card]
optional , nil allowed |
Validations:
|
|
user[current_tax_card][tax_percentage]
optional , nil allowed |
User’s current tax card tax percentage, must be either less than 100 (e.g. 25 for 25%) or less than 1 (e.g. 0.34 for 34%) Validations:
|
|
user[address_attributes]
optional , nil allowed |
User address Validations:
|
|
user[address_attributes][street]
optional , nil allowed |
Street address. Validations:
|
|
user[address_attributes][city]
optional , nil allowed |
City of the address, or Post Office. Validations:
|
|
user[address_attributes][postal_code]
optional , nil allowed |
Postal Code of the address. Validations:
|
|
user[address_attributes][country_id]
optional , nil allowed |
Country id of an address. Validations:
|
|
user[address_attributes][latitude]
optional , nil allowed |
Geographic Latitude from Google Maps Validations:
|
|
user[address_attributes][longitude]
optional , nil allowed |
Geographic Longitude from Google Maps Validations:
|
|
skip_notification
optional |
Skip sending invitation notification. Defaults to “false” Validations:
|