Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

General Information


ServiceAPIMethod
urac/account/getUserGET


Data Model: Users

Input


NameSourceMandatoryTypeSpecial FormatDescription
usernameQueryYESStringN/AThe User Name

 

Output


Valid Response

Valid Response Sample
{
	"result": true,
	"data": {
		"..."	
	}
}

 

Invalid Response

Error Response Sample
{
    "result":false,
    "errors":{
        "codes":[405],
        "details":[
            {
                "code":405,
                "message":"Unable to find User. Please try again."
            }
        ]
    }
}



Error Codes


 

Code
Description
405Unable to find User. Please try again.


Example (CURL)


Request

Calling Get User API
 > CURL -X GET http://127.0.0.1:4000/urac/account/getUser?username=john 

Response

Get User API response
{
	"result": true,
	"data": {
		"_id": "571a2a0e8cc861b98a0b9467",
		"locked": true,
		"username": "john",
		"firstName": "john",
		"lastName": "john",
		"email": "john@soajs.org",
		"ts": 1461332494711,
		"status": "active",
		"profile": {},
		"groups": ["administrator"],
		"config": {
			"packages": {},
			"keys": {}
		},
		"tenant": {
			"id": "5551aca9e179c39b760f7a1a",
			"code": "DBTN"
		}
	}
}
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.