Get a specific user

get

/PASService/rest/services/users/{loginName}

Get a particular User by userName. The name is the unique for a User entity.

Request

Path Parameters
Back to Top

Response

Supported Media Types

Default Response

successful operation
Back to Top

Examples

This example describes how to get a particular user by user name. The name is the unique for a user entity.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -X GET -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/users/qatester"

Example Response Body

The following shows an example of the response body in JSON format:

"{ "user": {
        "links": [
            {
                "href": "http://localhost:8081/PASService/rest/services/users/qatester",
                "rel": "self",
                "mediaType": "application/json",
                "method": "GET"
            },
            {
                "href": "http://localhost:8081/PASService/rest/services/codes?codeName=UserStatus&codeValue=01",
                "rel": "codes/userStatus",
                "mediaType": "application/json",
                "method": "GET"
            },
            {
                "href": "http://localhost:8081/PASService/rest/services/codes?codeName=Locale&codeValue=07",
                "rel": "codes/localeCode",
                "mediaType": "application/json",
                "method": "GET"
            }
        ],
        "clientGuid": "F3251A07-0EC5-4451-A5B6-15B5AC00263A",
        "userStatus": "01",
        "localeCode": "07",
        "loginName": "qatester",
        "client": {
            "firstName": "qatester",
            "lastName": "qatester",
            "gender": null,
            "email": null,
            "primaryCompany": "Alamere Insurance"
        }
    }
}"
Back to Top