Description

By using this web service manager can get the GenRocket User Information. There are two way to get user information. 

Parameters

The following parameters are required in this web service.


organizationId: Defines the Organization Id of an Organization to get user information with roles in that organization.(Optional)

username: Defines a unique username which will get the existing user information.


Get User Information curl command (Example with Organization Id)

curl --insecure -H "accept:application/json" -H "Content-Type:application/json" -H "X-Auth-Token:XXXXXXXXXXXX" -d '{organizationId:  "XXXXXXXX-ddc9-481c-adad-XXXXXXXXXXXXXX",username: "email@email.com"}' https://app.genrocket.com/rest/user/getInfo
Text

Get User Information curl command (Example without Organization Id)

curl --insecure -H "accept:application/json" -H "Content-Type:application/json" -H "X-Auth-Token:XXXXXX" -d '{username: "email@email.com"}' https://app.genrocket.com/rest/user/getInfo
Text


URL Request

https://app.genrocket.com/rest/user/getInfo
Text


Payload Request (Example 1)

{  
   organizationId:"xxxxxxxx-ddc9-481c-adad-xxxxxxxxxxx",
   username:"email@email.com",
}
Text

Payload Request (Example 2)

{  
   username:"email@email.com"
}
Text


Payload OK Response (Example 1)

{
  "errors": { },
  "fields": {
    "externalId": "xxxxxxxxx-7001-4c4f-b5c8-xxxxxxxxxxxx",
    "firstName": "Test",
    "lastName": "XYZ",
    "username": "email@email.com",
    "enabled": true,
    "roles": 
    [
      "ROLE_USER"
    ]
  },
  "success": true
}
Text

Payload OK Response (Example 2)

{
  "errors": {
  },
  "fields": {
    "externalId": "XXXXXXX-7001-4c4f-b5c8-XXXXXXXXXXXX",
    "firstName": "Test",
    "lastName": "XYZ",
    "username": "email@email.com",
    "enabled": true
  },
  "success": true
}
Text