Jump to: navigation, search

Fetch user settings

Method

GET

Syntax

GET /user_settings

Response Body

{
    "user_dbid": <dbid>,                // for example 1234
    "user": "<short_user_name>",        // for example "django"
    "user_first_name": "<first_name>",  // for example "Django"
    "user_last_name": "<last_name>",    // for example "Freeman"
    "timezone": {
        "value": "<current_TZ_value>",  // for example "America/Chicago"
        "values": [
            {
                "value": "<TZ_value>",  // for example "America/Chicago"
                "label": "<TZ_label>"   // for example "America/Chicago (GMT-6)(+DST)"
            },
            ...
        ]
    },
    "language": "<language_ID_string>",                // for example "fr-CA" (IETF notation recommended)
    "date_time_format": "<date_time_format_string>",   // for example "yyyy/MM/dd HH:mm:ss Z"
    "date_format": "<date_format_string>",             // for example "yyyy/MM/dd"
    "first_day_of_week": "<SUNDAY|MONDAY>",            // default: MONDAY
    "current_tenant_dbid": <tenant_dbid>,              // for example 101
    "current_solution_dbid": <current_solution_dbid>,  // for example 102
    "current_entity_dbid": <current_entity_dbid>,      // for example 103
    "current_entity_type": <current_entity_type>,      // for example solution, department, process
    "last_logged_in": "<date_time_of_last_logging_in>",// for example "2016-05-03T12:30:55+02:00"
    "system_timezone": "<timezone>",                   // time zone from the server; for example "America/Chicago"
    "user_privileges": [
        {
            "tenant_dbid": <tenant_dbid>,
            "privileges": [
                "<privilege_1>",  // for example "GLOBAL_TASK_LIST_MODIFY"
                "<privilege_2>",
                ...
            ]
        },
        ...
    ]
}

Notes

  • system_timezone is taken from the server running the iWD Manager application. May be empty if the time zone is not compatible with Joda Time.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on 19 December 2017, at 04:03.