Get User Preference
Get User Preference kintone.getUserPreference()
Retrieves the personal settings of the logged-in user.
Function
kintone.getUserPreference()
Parameters
None
Returns
A Promise object.
The following values can be retrieved when the Promise object is fulfilled:
| Property | Type | Value and Description |
|---|---|---|
| timeFormat | String | The Time format settings
|
| desktopNotifications | Object | The Desktop notification settings |
| desktopNotifications.enabled | Boolean | The status of the Desktop notifications settings
|
| emailNotifications | Object | Email notification settings |
| emailNotifications.enabled | Boolean | The status of the Email notifications settings
|
| emailNotifications.condition | String | The condition of the email notifications
emailNotifications.enabled is false, the value will still be returned. |
| emailNotifications.format | String | The format of the email notifications
emailNotifications.enabled is false, the value will still be returned. |
Available Pages
However, it cannot be used on the following pages:
- Search results
- Marketplace
- Plug-in settings page