Get a specific user by login name
get
/PASService/rest/services/v1/users/{loginName}
Gets a particular User by username. The name is the unique for a User entity.
Request
Path Parameters
-
loginName(required): string
UserName
There's no request body for this operation.
Back to TopResponse
200 Response
This operation fetches a specific user by login name successfully.
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 "Content-Type: application/json" \ -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \ -L "http://server:port/PASService/rest/services/v1/users/qatester"
Example Response Body
The following shows an example of the response body in JSON format:
{ "user": { "links": [ { "href": "http://server:port/PASService/rest/services/v1/users/qatester3", "rel": "self", "mediaType": "application/json", "method": "GET" }, { "href": "http://server:port/PASService/rest/services/v1/codes?codeName=UserStatus&codeValue=01", "rel": "codes/userStatus", "mediaType": "application/json", "method": "GET" }, { "href": "http://server:port/PASService/rest/services/v1/codes?codeName=Locale&codeValue=00", "rel": "codes/localeCode", "mediaType": "application/json", "method": "GET" }, { "href": "http://server:port/PASService/rest/services/v1/codes?codeName=ClientSex&codeValue=F", "rel": "codes/Gender", "mediaType": "application/json", "method": "GET" } ], "clientGuid": "23D8108C-A278-4A8C-89FC-C64EB37EF1A1", "userStatus": "01", "localeCode": "00", "loginName": "qatester3", "client": { "firstName": "User100", "lastName": "User100", "gender": "F", "email": "test@testmail.com", "primaryCompany": "Prototype" } } }