Apps Developer Guide (Old)
  • Introduction
  • Create your first app in 4 easy steps
  • Overview
    • How does it work ?
    • Documentation
    • Deskpro Apps Tool
  • SDK
    • The Application Manifest
      • Manifest Reference
    • Storing data
      • Storing ticket data
    • Accessing the Deskpro REST API
    • Accessing remote services
    • The Application Installer
    • Application Contexts
      • ContextDataObject Reference
    • Events
  • Guides
    • Create an Oauth2 integration
    • Using an API Key to read data
  • Application Context
    • Get the authenticated user
    • Access Custom Fields
    • Interacting with the Host UI Container
  • Application Container
    • How do I badge my app icon
  • HTTP
    • How do I use a remote web service
  • OAuth2
    • How do I customize OAuth2 requests
  • UI Patterns
    • How do I split my app into different screens
Powered by GitBook
On this page
  1. Application Context

Get the authenticated user

PreviousUsing an API Key to read dataNextAccess Custom Fields

Last updated 6 years ago

The authenticated user is obtained via the Application Context:

    const { context } = this.props.dpapp;
    context.getMe().then(user => console.log(user));

You can read more about the getMe method and the type it resolves with in the API reference:

https://deskpro.github.io/apps-sdk-core/reference/Context.html#getMe