Rolebase

user_app

List the calendar apps a user has connected, Google Calendar or Microsoft 365, with their public settings. See the app types, fields and permissions.

Fields

FieldTypeDescription
iduuidUnique identifier for the app connection (auto-generated)
userIduuidReference to the user
typeTextType of application: GoogleCalendar or Office365
configJSONPublic application configuration
createdAtDateWhen the app connection was created
archivedAtTimestampWhen the app connection was archived; null if active

Application Types

The type field accepts the following values:

  • GoogleCalendar — Google Calendar integration
  • Office365 — Microsoft 365 Calendar integration

Relationships

Object Relationships

  • user — The user this app connection belongs to

Query Examples

List User Apps

query GetUserApps {
user_app {
id
type
config
userId
}
}

Permissions

App connection access is restricted to the owning user:

  • Users can view their own app connections (limited to config, id, type, and userId fields)

Each user can have multiple app connections, but there is a unique constraint on the (userId, type) pair, meaning one connection per app type per user. The secretConfig, tmpData, and createdAt fields exist in the database but are not exposed via the API.