timeman.settings
This method returns current user workday settings.
Parameters
Parameter | Description |
---|---|
USER_ID | User ID. Optional, by default, current user settings are returned. |
Response field
Field | Value | Description | Note |
---|---|---|---|
ADMIN | true|false | Specifies if the user has rights to manage other users' workdays | Returned only for the current user |
UF_TIMEMAN | true|false | Specifies if Time Management is enabled for the user | |
UF_TM_FREE | true|false | Specifies if flexible working schedule is enabled for a user | When flexible work schedule is enabled, changes in work time do not require confirmation or reasons |
UF_TM_MAX_START | HH:MM:SS | Maximum workday clock-in time, configured for a user | Workday that was clocked-in/started after the specified time will be considered as infringement |
UF_TM_MIN_FINISH | HH:MM:SS | Minimum clock-out/closing time, configured for a user | Workday, closed after the specified time will be considered as infringement |
UF_TM_MIN_DURATION | HH:MM:SS | Minimum workday duration, configured for a user | Workday with duration less than specified will be considered as infringement |
UF_TM_ALLOWED_DELTA | HH:MM:SS | Allowed period of workday duration time to be modified, configured for a user | Modifying workday duration for a period less than specified will not require confirmation from a manager |
Examples
Call example:
https://portal.bitrix24.com/rest/timeman.settings/?auth=xxxxxx&user_id=1
Response example:
HTTP/1.1 200 OK { "result": { "ADMIN": true, "UF_TIMEMAN": true, "UF_TM_ALLOWED_DELTA": "00:15:00", "UF_TM_FREE": false, "UF_TM_MAX_START": "09:15:00", "UF_TM_MIN_DURATION": "08:00:00", "UF_TM_MIN_FINISH": "17:45:00" } }
© «Bitrix24», 2001-2024