Page tree
Skip to end of metadata
Go to start of metadata

You can obtain information about a user by sending the GET request to the following URL: /user/{user_id}.

Permission to run the request: Account Owner, Administrators, Department Administrators.

Request Headers

ParameterDescription
X-Auth-Account-Url (required)Base URL of the account, e.g. http://myaccount.ispringlearn.com
X-Auth-Email (required)Login of Account Owner, Administrator, or Department Administrator.
X-Auth-Password (required)Password of Account Owner, Administrator, or Department Administrator.

After the request has been completed, the system returns the response with the 200 code. The body of the response will contain xml data with user info.

Possible Response Codes

CodeTextDescription
200Successful operation

The request was successfully processed.

400Bad RequestA request error.
401UnauthorizedAn authorization error.
403Permission Denied

The user doesn't have enough permissions to complete the request.

Sample Request

GET /user/f29d887c-5cff-11e9-9e6a-0a580af40692 HTTP/1.1
Host: api-learn.ispringlearn.com
X-Auth-Account-Url: https://myaccount.ispringlearn.com
X-Auth-Email: email@email.com
X-Auth-Password: password

Sample Response

HTTP/1.1 200 Successful operation
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<response>
	<userProfile>
		<userId>string</userId>
		<role>string</role>
		<departmentId>3fa85f64-5717-4562-b3fc-2c963f66afa6</departmentId>
		<status>1</status>
		<fields>
          <field>
            <name>LOGIN</name>
            <value>helen@ispringsolutions.com</value>
          </field>
          <field>
            <name>EMAIL</name>
            <value>helen@ispringsolutions.com</value>
          </field>
          <field>
            <name>FIRST_NAME</name>
            <value>Helen</value>
          </field>
          <field>
            <name>LAST_NAME</name>
            <value>Smith</value>
          </field>
          <field>
            <name>JOB_TITLE</name>
            <value>Sales Manager</value>
          </field>
          <field>
            <name>COUNTRY</name>
            <value>643</value>
          </field>
        </fields>
		<groups>
			<id>3fa85f64-5717-4562-b3fc-2c963f66afa6</id>
		</groups>
		<manageableDepartmentIds>
			<id>3fa85f64-5717-4562-b3fc-2c963f66afa6</id>
		</manageableDepartmentIds>
		<addedDate>2019-04-30</addedDate>
		<lastLoginDate>2019-04-30</lastLoginDate>
	</userProfile>
</response>
  • No labels