Description

This article defines the web services for GenRocket User Management that will allow the manager to perform user management operations.


To use GenRocket User Management web services, first, a user needs to login as a manager using login web service.

In This Article


Parameters

The following parameters are required in this web service.


username - Defines a unique username which gives existing user with admin role.

password - Defines password to authenticate the existing user in GenRocket Organization.


Manager login curl command (Example)

curl -k --insecure -X POST -H "Accept:application/json;" -H "Content-Type:application/json" -d '{"username":"manager@email.com", "password":"XXXXXXXX"}' https://app.genrocket.com/rest/login


URL Request

https://app.genrocket.com/rest/login


API Payload Request (Example)

{  
"username":"email@email.com",
"password":"XXXXXXXXXXXX"
}


OK Payload Response (Example)

{
  "username": "email@email.com",
  "roles": 
  [
    "ROLE_ORG_ADMIN",
    "ROLE_USER",
    "ROLE_WEB_SERVICE"
  ],
  "accessToken": "XXXXX"


The access token is used as X-Auth-Token for sessionId verification in other web services adding in the Request Header.