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.
Functionality available from platform version: 4.737.0
The functionality works on requests launched in the webforms application.
API
interface User {
v1: {
getIdentity(): UserIdentity
}
}
interface UserIdentity {
userId(): string,
roles(): string[],
firstName(): string,
lastName(): string,
type(): 'client'|'employee'|'otp',
system(): string
}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?
