Skip to main content

@mapgear/geoapps > User

User class

Represents a GeoApps user

Signature:
export declare class User 

Example

The following example shows how to retrieve a users full name:


// Connect with GeoApps as authenticated user
geoapps.Initialize("<specified tenant>", {
authorize: "token",
token: "<user token>" // Token can be requested through https://login.geoapps.nl/token/generatePAT
});

// Get the full name of the user
var fullname = geoapps.CurrentUser.FullName;

Properties

PropertyModifiersTypeDescription
EmailstringEmail address of the user
FullNamestringFull name of the user
IdstringUnique id of the user
PreferredLanguagestringPreferred language of the current user
ProfileImagestringProfile image of the user
Settings{ [key: string]: string; }User settings