Skip to main content

User

Represents an end-user of this application

type User {
attendanceData(
filter: UserAttendanceFilter!
): AttendanceData!
attendanceTimer: AttendanceTimer!
displayName: String!
email: String!
employee: Employee
enabled: Boolean!
favouritePark: ResidentialPark
hasFederatedIdentity: Boolean!
id: UserID!
lastActiveAt: LocalDateTime
myDayDashboard: MyDayDashboard
parkRoleBindings: [ParkRoleBinding!]!
tours: [ActiveTour!]!
}

Fields

User.attendanceData ● AttendanceData! non-null object

All attendances of a user for a specific time period

User.attendanceData.filter ● UserAttendanceFilter! non-null input

User.attendanceTimer ● AttendanceTimer! non-null object

The current users attendanceTimer

User.displayName ● String! non-null scalar

Display name of the user.

User.email ● String! non-null scalar

E-mail address of the user.

User.employee ● Employee object

The employee connected to the given user. Null if there is no current employee assigned.

User.enabled ● Boolean! non-null scalar

Whether the user is enabled. Disabled users cannot login.

User.favouritePark ● ResidentialPark object

The favourite park of this user. We will automatically move to this after login. Null if there is no current favourite park.

User.hasFederatedIdentity ● Boolean! non-null scalar

Whether the user has any federated identities. A federated identity is an external identity linked to the user, such as a social login or an identity from another identity provider. In the case the user has a federatedIdentity, the user is not entirely managed (e.g. we cannot reset passwords).

User.id ● UserID! non-null scalar

Unique identifier

User.lastActiveAt ● LocalDateTime scalar

The last time the user was active.

User.myDayDashboard ● MyDayDashboard object

Returns the My Day dashboard for the provided user. Resolves the employee from the logged-in user and uses today's date. Returns null if the current user has no associated employee.

User.parkRoleBindings ● [ParkRoleBinding!]! non-null object

The users roles on parks

User.tours ● [ActiveTour!]! non-null object

Fetches a list of all active tours assigned to the current user.

Per default you always get 2 days in the past and 4 days in the future.

Returned By

me query ● systemAdministrators query ● user query ● users query

Member Of

DisableUserPayload object ● Employee object ● EnableUserPayload object ● SecurityGroup object