URI
<mycontent_uri>/account[.<format>]
Supported methods
Parent resource
Child resources
myMail, myPassword, myNickname, myPwdQuestion, myBasicInfo, myThumbnail, myExtendAttrs
Introduction
The account information for the current user, that is, my account.
Supported Methods:
- GET: Get the account information for the current user.
- HEAD: Check whether the myAccount resource exists, or to access the myAccount resource.
Supported output formats: rjson, json, html, xml.
Resource hierarchy

HTTP request methods
Implement the HTTP request on the following URI, where supermapiportal is the server name, with rjson being the output format.
http://supermapiportal:8190/iportal/web/mycontent/account.rjson
GET request
Get the account information for the current user.
Response structure
The structure of the response resource representation after implementing the GET request on the myAccount resource will be as follows:
| Field | Type | Description |
| description | String | User description info. |
| String | The email address of user. | |
| name | String | Username. |
| nickname | String | User nickname. |
| ownRoles | String[] | The role associated with the user, not including the role of the group where the user is in. |
| password | String | The user password. |
| roles | String[] | The role associated with the user. |
| passwordQuestion | IportalPasswordQuestion | The security question and answer that is used to reset the password. |
| userGroups | String[] | The user group. |
| extendAttrs | String | The extended information of the user. |
| joinTime | Long | The time of joining the portal. |
| departmentId | int | The department id of the user. |
| departmentNames | String[] | The department information of the user. An array of names from the user's actual department up to the root department (i.e., the organization). |
Response example
The returned rjson format representation after implementing the GET request on the myAccount resource http://localhost:8190/iportal/web/mycontent/account.rjson is as follows:
{
"ownRoles": [
"PORTAL_USER",
"DATA_CENTER"
],
"joinTime": null,
"departmentId": null,
"roles": [
"DATA_CENTER",
"PORTAL_USER"
],
"description": null,
"userGroups": [],
"password": null,
"extendAttrs": "123456",
"isLocked": false,
"nickname": "iportal",
"name": "iportal",
}
HEAD request
Asks for the response identical to the one that would correspond to a GET request, but without the response body. This is useful for retrieving meta-information written in response headers, without having to transport the entire content. The meta-information includes the media-type, content-encoding, transfer-encoding, content-length, etc.
HEAD request can be used to check if the myAccount resource exists, or if the myAccount resource can be accessed by clients. It can also determine if the myAccount resource supports an output format <format> if performed on a URI with .<format> included.