Request: GET /user/profile/fields

Permissions to Run the Request

Account Owner, Account Administrators, Department Administrators, Publishersor custom roles

Department Administrators, Publishers, and users with a custom role can add users only to the departments they manage and their sub-departments. 

Request Headers

X-Auth-Account-Url (required)The base URL of the account, e.g. https://myaccount.ispringlearn.com.
X-Auth-Email (required)The login of Account Owner, Account Administrator, Department Administrator, Publishers, or a user with a custom role
X-Auth-Password (required)The password of Account Owner, Account AdministratorDepartment Administrator, Publishers, or a user with a custom role

Response Parameters

userFieldInfoAn array with data about the user profile field
userFieldInfoIdThe ID of the profile field
labelThe name of the profile field
typeThe field type.

Possible values:
  • login
  • email
  • first_name
  • last_name
  • job_title
  • string
  • country
  • phone
  • birthdate

The parameter shows if the field is unique.

Possible values:

0 — not unique (false)
1 — is unique (true)

isRequiredThe parameter shows if the field is required.

Possible values:

0 — is optional (false)
1 — is required (true)


The ordinal number of the field – the count starts from 0.

For example, for the first field in the list, the parameter orderPriority=0, etc.

values [] (optional)An array with the data of the fields from the list. For example, the country field type includes a list of countries.
fieldThe dropdown list item. Each field contains both the name field and the value field.

Possible Response Codes

200OkThe request has been processed successfully.
400Bad RequestA request error.
401UnauthorizedAn authorization error.
403Permission deniedThe user doesn't have enough permissions to complete the request.


Sample Request

GET /user/profile/fields https/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

https/1.1 200 OK
Connection: close

<?xml version="1.0" encoding="UTF-8"?>