Skip to main content

Users

The Users module provides access to contextual information about the currently logged-in user when a widget is rendered within supported locations. Widgets can retrieve user identifiers, role details, and related metadata for use in validations, conditional logic, and UI extensions.

Methods​

Methods

Get User Details​

Retrieves data related to the current context. This method allows your widget to fetch record details, field values, or metadata required for rendering or processing logic.

Commonly used for :
  • Fetch record information
  • Read field values
  • Access contextual module data
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.get('user').then(function (data) {
     //response Handling
    }).catch(function (err) {
     //error Handling
    });
  });
}
Supported Input Keys :
PropertyRequest
user_iduser.user_id
nameuser.name
emailuser.email
zuIduser.zuId