Get user details with authentication

getUserDetailsWithAuth

URL

/api/v1/getUserDetailsWithAuth

Description

Used by the IonReporterUploader plugin to return user details based on the API token.

Method

POST

Request query parameters

String. Mandatory.

Valid user API token.

Example request

https://ionreporter.thermofisher.com/api/v1/getUserDetailsWithAuth

Request headers

Content-Type:application/x-www-form-urlencoded

Returns

{
  "tokendate": "2013-12-08 15:39:37.0",
  "firstname": "Ion",
  "eulaAccepted": "true",
  "userStatus": "ENABLED",
  "orgname": "IR Org",
  "exporttokendate": "2015-11-05 03:25:12.0",
  "exporttoken": "49bbe49a8307ba61ef28ee9a9122a98347576488c975c857b7e1c82978f3818c",
  "lastname": "User",
  "token": "wVcoTeYGfKxItiaWo2lngsV/r0jukG2pLKbZBkAFnlPbjKfPTXLbIhPb47YA9u78"
}

Response fields

Status code

Response message

200

Successful response

400

Bad request

404

Not found

401

User is not authenticated

500

Error occurred

Curl command

curl -X POST -k https://<your server name>/api/v1/getUserDetailsWithAuth -H "Content-Type:application/x-www-form-urlencoded" -d "auth=NDliYmU0OWE4MzA3YmE2MWVmMjhlZTlhOTEyMmE5ODM0NzU3NjQ4OGM5NzVjODU3YjdlMWM4Mjk3OGYzODE4Yw"