Get User Profile Service

The various details whether the user is currently logged in or not to the enterprise is explained in this section. You must set the cookie in header to get session details.

HTTP Method
Endpoint URL See Endpoint
Resource /login/userinfo/{enterprise}
Request Parameters Specify the following parameters:
Name Description Type Data Type
Required
enterprise Name of the enterprise path string
Media Type application/json
Request Model
Cookie: JSESSIONID=MfDshWaTXBoHtCcsoyaRQYOz; 
Response Model
{
  "sessionId": "string",
  "errorCode": "string",
  "errorMessage": "string",
  "result": {
    "severity": "string",
    "code": "string",
    "description": {
      "lang": "string",
      "message": "string"
    }
  }
}
Request Example Consider the following example where user with cookie JSESSIONID=MfDshWaTXBoHtCcsoyaRQYOz is currently logged in or not to the repository named "Company".
Cookie: JSESSIONID=MfDshWaTXBoHtCcsoyaRQYOz;
Response Example The response returns the message that the user is a invalid user.
{
  "sessionId": "7tJ0RRsdFO3sXGRrQCsHW-rY.undefined",
  "errorCode": "",
  "errorMessage": "",
  "result":    {
     "severity": "Info",
     "code": "SVC-11344",
     "description":       {
        "lang": "English",
        "message": "Valid User"
     }
  }
}
Success Response Example:

Code: 200 successful operation

Error Response If the response is unsuccessful, either of the following error code is displayed:

Example:

Code: 400 Parameters required are missing

OR

Code: 404 User not found

OR

Code: 500 Internal error occurred

For error code response, see Error Handling .