For the complete documentation index, see llms.txt. This page is also available as Markdown.

Retrieving the context of the logged-in user

The API allows retrieving the context of the user currently filling out the form. The context describes users logged in on the form, in the Dashboard application or client applications integrated with the Eximee system, as well as information about the session of a user who is not logged in.


API

interface User {
    v1: {
        getIdentity(): UserIdentity
    }
}


interface UserIdentity {
    userId(): string,
    roles(): string[],
    firstName(): string,
    lastName(): string,
    type(): 'client'|'employee'|'otp',
    system(): string
}

Fields: firstName, lastName, roles depend on the authentication integration method used in the implementation.

Most often, these fields are available only for Employee-type authentication (employee) in Dashboard systems or Client systems integrated with Eximee.

Execution context

The API is available from the object api.user.v1 and works in the form context.

It supports users working with the form:

  • logged in through the Web channel in accordance with the implementation integration,

  • logged in through the Dashboard application,

  • logged in through authorization of integrated implementation systems,

  • not logged in within the basic scope of user distinguishability.


Usage examples

Retrieving user data

Example usage in a script

Last updated

Was this helpful?