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

DNS Edge User Guide (Service Point v4)

Locale
English
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"
  }

Response on internal error

500 Internal server error
Content-Type: application/JSON
{"code": "code", "brief": "a message describing the error"}
Successful response code:
  • OK - Successful
Possible error codes:
  • UNAUTHORIZED - Token was invalid
  • INTERNAL SERVER ERROR - Unexpected error