Return a JSON object of the current user's information.

URL Parameters

None.

Body Parameters

None.

Authentication

JwtAuthenticator, Oauth2Authenticator, AnonymousAuthenticator

Authorization

OAuthAuthorizer

Example Request

URL

For Production: GET https://spacesapis.avayacloud.com/api/users/me
For Staging: GET https://loganstagingapis.esna.com/api/users/me

Headers

Authorization: "jwt eyJhbGciOiJSUzI1NiIsIdfgdfgnR5cCI6IkpXVCJ9.eyJ1c2VyX2lkX3NpZyI6ImxPWHpxNzVzR3J3X0xwWEMyRGRMakhyYXJlWVhyTzFMdEZHZkhkOWNkTXciLCJwcm9kdWN0X3R5cGUiOiJhY2NvdW50cyIsImxhc3R1cGRhdGV0aW1lIjoiMjAxNy0wMS0zMFQxMzo1ODo0Ny4yMDYiLCJpc3MiOiJ6YW5nLmlvIiwicHVibGlja2V5aWQiOiJhZ3h6Zm05dVpYTnVZVEl3TVRSeUdnc1NEVWRLZDNSUWRXSnNhV05MWlhrdfgdWdJQ2dsUEtFakFvTSIsImV4cCI6MTQ5NTM5MTIwMywidXNlcl9pZCI6ImFneHpmbTl1WlhOdVlUSXdNVFJ5RVFzU0JGVnpaWElZZ0lEQXMtX25fUW9NIiwidmVyIjoiMi4wIn0.SqZpw1uPIebqW3qlDsm0-DWYFKEH0SgPwtD-tSESWOF-5hLkZMqJH28ooWux2S7s9riIew7pTVPnZpTgJa5zHcEAG0gXSEJVOqmpGp_4ufM8YtZoZMpBFjyAkwyAt-ILkGUYIo0GU5WyzMPLV8YLXfgdfgOgkE2MGGOajBkjPmC2Db3pA0D0M9k-21EL1gwWBC5YIq0PDAkgulegwl6khRmB8irJQ-dfg-d-KV9eYfFpsCdJKRGzSfqg"

Or

Authorization: "bearer f746696f5de4528u128ae2f274eea253e8a7943a"

Example Response

{
  "_id": "5890b1243bab0e18ff044943",
  "ndbid": "ag9zfm9uZXNuYXRlc3RpbmdyEQsSBFVzZXIYgICAsP6knQoM",
  "lastupdatetime": "2017-04-11T16:01:57.516Z",
  "displayname": "Patrick-123 Han-han",
  "gender": "",
  "picturefile": "pictures/pfpic_user_287f310f-aba5-4879-a18e-247c07c4894a",
  "timezone": "America/New_York",
  "username": "example.user1@esna.com",
  "permissions": [
    "USERSELF_PERMISSION_GROUP",
    "IT_ADMIN_PERMISSION_GROUP",
    "CUSTOMERSERVICE_PERMISSION_GROUP"
  ],
  "licenses": [
    {
      "purchased_license_ndbid": "ag9zfm9uZXNuYXRlc3RpbmdyHQsSEFB1cmNoYXNlZExpY2Vuc2UYgICAiLqCjAoM",
      "trial": false,
      "parent_type": "company",
      "expiration": "2018-02-16T17:00:00.000Z",
      "product_type": "zangspaces",
      "service_type": "zangspaces_team"
    }
  ],
  "relation_graphs": [
    {
      "relation_type": "employee",
      "initiator_type": "company",
      "initiator_id": "568e7274075808499ec2a1b0",
      "relationdef_id": "ag9zfm9uZXNuYXRlc3RpbmdyGAsSC1JlbGF0aW9uRGVmGICAgNDZ-Z4KDA"
    },
    {
      "relation_type": "admin",
      "initiator_type": "company",
      "initiator_id": "58b0aefe3bab0e18ff048016",
    
  ],
  "languages": [
    {
      "code": "en",
      "primary": true
    }
  ],
  "emails": [
    {
      "value": "example.user1@esna.com",
      "type": "",
      "primary": true,
      "label": "",
      "relationdef_id": "ag9zfm9uZXNuYXRlc3RpbmdyGAsSC1JlbGF0aW9uRGVmGICAgNDZ-Z4KDA"
    }
  ],
  "aType": "user",
  "addresses": [],
  "phone_numbers": [],
  "name": {
    "pronunciation_url": "",
    "pronunciation": "",
    "middlename": "",
    "honorific_suffix": "",
    "honorific_prefix": "",
    "givenname": "Patrick-123",
    "formatted": "",
    "familyname": "Han-han"
  },
  "profile": {
    "gender": "",
    "addresses": [],
    "picture_url": "https://storage.googleapis.com/onesnatesting/pictures/pfpic_user_287f310f-aba5-4879-a18e-247c07c4894a",
    "phone_numbers": [],
    "username": "example.user1@esna.com",
    "displayname": "Patrick-123 Han-han",
    "name": {
      "familyname": "Han-han",
      "formatted": "",
      "givenname": "Patrick-123",
      "honorific_prefix": "",
      "honorific_suffix": "",
      "middlename": "",
      "pronunciation": "",
      "pronunciation_url": ""
    }
  },
  "picture_url": "https://storage.googleapis.com/onesnatesting/pictures/pfpic_user_287f310f-aba5-4879-a18e-247c07c4894a"
}