Legacy | Get User Information

Syntax

Copy
https://mycloud.perfectomobile.com/services/users/<user-id>?operation=info&securityToken=value

Parameters

Name Type Default Description
securityToken* string
A unique cryptographic key assigned to an authorized user.
user string

Deprecated. The name of the user running the operation.

Important: All REST API commands require authentication through the Perfecto security token. See also Authentication in new APIs.
password string

Deprecated. The password for the user.

Important: All REST API commands require authentication through the Perfecto security token. See also Authentication in new APIs.
responseFormat string json The format to use for the response: JSON ,XML
responseFields string all fields The fields to return in the response, specified as a comma separated list. For example: lastLogin,location,roles.

* Mandatory

Response

The response includes the following information regarding the system

Name Description
creationTime Time-stamp of the generation of the user information response in both ISO_DATETIME_FORMAT and in system milliseconds format
modelVersion System build version number
productVersion System release identifier
time Time-stamp of the generation of the user information response in ISO_DATETIME_FORMAT

In addition to the User object information for the user-id specified (empty fields are not listed).

Example

This example shows the request for getting the information for user JohnSmith in XML format.

Copy

Request

https://mycloud.perfectomobile.com/services/users/JohnSmith?operation=info&securityToken=<your_token>
Copy
Response
{
    "info":{
        "creationTime":{
            "formatted":"2016-11-17T12:33:29Z",
            "millis":"1479386009123"        },
        "modelVersion":"2.19.0.0",
        "productVersion":"master",
        "time":"2016-11-17T12:33:29Z"    },
    "user":{
        "username":"johns@perfectomobile.com",
        "firstName":"John",
        "lastName":"Smith",
        "roles":["USER","AUTOMATION","ECLIPSE","QTP","INTERACTIVE"],
        "groups":[],
        "email":"johns@perfectomobile.com",
        "authentication":"internal",
        "lastLogin":"2016-11-17",
        "account":{
            "name":"johns@perfectomobile.com",
        }
    }
}