GET /user-management-v2/users/{userId}/
FROM API REVISION 6.0
This resource allows you to view a user's details information.
Used when you are operating a browser without access to the header parameter. This allows you to choose which encoding you want to use for the response:
All these resources can be used according what the resource allows.
To address the raw value of a primitive property, clients append a path segment containing the string $value to the property URL.
To use this query option you need to use the classic resource and add the element name you want to print followed by the query string name.
<span class="warning"><span class="glyphicon glyphicon-warning-sign" aria-hidden="true"> Be careful, the parameter query string is used in the URL and is not like other parameters.
The $select system query option allows clients to request a limited set of properties for each entity.
The value pass in the parameter can be:
*
"(star): This will show all child elements.,
" (comma).If there is no value after the select query option, the parameter will be ignored. All the values that are not specified will not be printed in the response.
The $expand system query option specifies the related resources to be included in line with retrieved resources.
The value passed in the parameter can be:
*
"(star): This will expand all child elements.,
" (comma).The $expand system query option can be used with the $levels query option, to expand recursively.
If this parameter is not in the request, the Application/Json will be chosen by default.
There are multiple possible values (according the resource):
The first two are the most often used.
This is the user's ID.
Object Name: User
Property Name | Type | Description | Method |
---|---|---|---|
Id | Integer | This property is the remote user's ID. | GET |
Username | String | This property is the user's name | GET POST |
WelcomePage | String | This property is the user's welcome page. | GET POST |
Roles | Array<String> | This is the remote user's roles. | GET |
URL Example: https://0.0.0.0/api/rest/v1/user-management-v2/users/1
{
"id": 1,
"username": "admin",
"welcomePage": null,
"passwordReset": false,
"roles": {
"href": "/api/rest/v1/user-management-v2/users/1/roles",
"name": "roles"
}
}
URL Example: https://0.0.0.0/api/rest/v1/user-management-v2/users/1
<?xml version="1.0" encoding="utf-8"?>
<User>
<Id>1</Id>
<Username>admin</Username>
<WelcomePage />
<PasswordReset>false</PasswordReset>
<Roles>
<Href>/api/rest/v1/user-management-v2/users/1/roles</Href>
<Name>roles</Name>
</Roles>
</User>