/v1/api/users/currentUser (GET) - BlueCat DNS Edge

DNS Edge User Guide

Locale
English (United States)
Product name
BlueCat DNS Edge

Returns information about the user whose credentials were used to obtain the authorization token.

Request: GET https://api-<DNS.Edge.URL>/v1/api/users/currentUser
Authorization: Bearer authorization token

Response

200 OK
Content-Type: application/JSON
  {
   "email": "email@example.com",
   "firstTimeLogin": true,
   "name": "first/last name",
   "role": "ADMIN",    
   "status": "active",
   "id": "77f15595-9f74-4ad4-82a9-82433952de4e"
  }
Successful response code:
  • OK - Successful
Possible error codes:
  • UNAUTHORIZED - Missing or invalid token
  • INTERNAL SERVER ERROR - Unexpected error