User
This model represents user.
| Property | Type | Description | Information |
|---|---|---|---|
id | int | Identifier | Unique for single user. |
first_name | string | First name of a user | Maximal length is 50 characters. |
last_name | string | Last name of a user | Maximal length is 50 characters. |
email | string | Email address | Should be valid email address. |
phone | string | Phone number | Should be valid phone number. |
is_active | bool | User activity state | true for active user, false for inactive user. Inactive user is forbidden to sign in. |
address | string | Phone number | Address of User, max 255. |
birth_date | date | Birth date of User | -- |
note | string | Note of User | -- |
two_factor_auth_enabled | bool | Two factor authentication | true for enabled, false for disabled. Inactive that user has enabled two factor auth |
user_group_id | int or null | Identifier of User group | -- |
minimal_monthly_report_minutes | int | Should be a number | Minimal time each user should work in a month |
vacation_days | int | Should be a number | Max amount of vacation days for user |
github_email | string or null | Should be a string | Github e-mail should by filled by those, who have different e-mail used on Github. |
google_calendar_id | string | Google Calendar Id | Nullable. Specifies user's calendar. |
created_at | DateTime | User creation date and time | Read-only.
Example:
{
"id": 1,
"first_name": "Ketr",
"last_name": "Pnotek",
"email": "ketr.pnotek@mikihoklubik.cz",
"is_active": true,
"phone": null,
"address": null,
"birth_date": null,
"note": null,
"two_factor_auth_enabled": true,
"user_group_id": 1,
"created_at": "2022-11-29T16:11:54+0100",
"_links": [
{
"href": "/api/v0/users/1",
"rel": "self",
"type": "GET"
}
]
}