You can obtain the list of the user profile fields with the method getUserProfileFields.
Permission to run the request: Account Owner, Administrator, Organization Administrator, Publisher.
Parameter | Type | Description |
---|---|---|
credentials (required) | credentials | Read the description of the Credentials object. |
After the request has been completed, the system returns an object with the following properties.
Parameter | Type | Description |
---|---|---|
userFieldInfo[] | array | An array of objects with the following properties: userFieldInfoId, name, label, type, isUnique, isVisible, isRequired,orderPriority. |
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://new.webservice.namespace"> <SOAP-ENV:Body> <ns1:GetUserProfileFieldsRequest> <ns1:credentials> <ns1:accountUrl>http://myaccount.ispringlearn.com</ns1:accountUrl> <ns1:email>email@email.com</ns1:email> <ns1:password>password</ns1:password> </ns1:credentials> </ns1:GetUserProfileFieldsRequest> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ispringlearn.com/go/services/api/soap"> <SOAP-ENV:Body> <ns1:GetUserProfileFieldsResult> <ns1:userFieldInfo> <ns1:userFieldInfoId>67</ns1:userFieldInfoId> <ns1:name>login</ns1:name> <ns1:label>Login</ns1:label> <ns1:type>login</ns1:type> <ns1:isUnique>true</ns1:isUnique> <ns1:isVisible>true</ns1:isVisible> <ns1:isRequired>true</ns1:isRequired> <ns1:orderPriority>0</ns1:orderPriority> </ns1:userFieldInfo> <ns1:userFieldInfo> <ns1:userFieldInfoId>2</ns1:userFieldInfoId> <ns1:name>password</ns1:name> <ns1:label>Password</ns1:label> <ns1:type>password</ns1:type> <ns1:isUnique>false</ns1:isUnique> <ns1:isVisible>true</ns1:isVisible> <ns1:isRequired>true</ns1:isRequired> <ns1:orderPriority>1</ns1:orderPriority> </ns1:userFieldInfo> <ns1:userFieldInfo> <ns1:userFieldInfoId>3</ns1:userFieldInfoId> <ns1:name>first_name</ns1:name> <ns1:label>First Name</ns1:label> <ns1:type>string</ns1:type> <ns1:isUnique>false</ns1:isUnique> <ns1:isVisible>true</ns1:isVisible> <ns1:isRequired>false</ns1:isRequired> <ns1:orderPriority>2</ns1:orderPriority> </ns1:userFieldInfo> <ns1:userFieldInfo> <ns1:userFieldInfoId>1</ns1:userFieldInfoId> <ns1:name>email</ns1:name> <ns1:label>Email</ns1:label> <ns1:type>email</ns1:type> <ns1:isUnique>true</ns1:isUnique> <ns1:isVisible>true</ns1:isVisible> <ns1:isRequired>true</ns1:isRequired> <ns1:orderPriority>3</ns1:orderPriority> </ns1:userFieldInfo> <ns1:userFieldInfo> <ns1:userFieldInfoId>13</ns1:userFieldInfoId> <ns1:name>country_id</ns1:name> <ns1:label>Country</ns1:label> <ns1:type>country</ns1:type> <ns1:isUnique>false</ns1:isUnique> <ns1:isVisible>true</ns1:isVisible> <ns1:isRequired>false</ns1:isRequired> <ns1:orderPriority>5</ns1:orderPriority> <ns1:values> <ns1:field> <ns1:name>1</ns1:name> <ns1:value>Afghanistan</ns1:value> </ns1:field> <ns1:field> <ns1:name>2</ns1:name> <ns1:value>Albania</ns1:value> </ns1:field> <ns1:field> <ns1:name>3</ns1:name> <ns1:value>Algeria</ns1:value> </ns1:field> <ns1:field> <ns1:name>238</ns1:name> <ns1:value>Zimbabwe</ns1:value> </ns1:field> </ns1:values> </ns1:userFieldInfo> <ns1:userFieldInfo> <ns1:userFieldInfoId>71</ns1:userFieldInfoId> <ns1:name>oYh00</ns1:name> <ns1:label>Position</ns1:label> <ns1:type>list</ns1:type> <ns1:isUnique>false</ns1:isUnique> <ns1:isVisible>true</ns1:isVisible> <ns1:isRequired>false</ns1:isRequired> <ns1:orderPriority>7</ns1:orderPriority> <ns1:values> <ns1:field> <ns1:name>Accountant</ns1:name> <ns1:value>Accoutant</ns1:value> </ns1:field> <ns1:field> <ns1:name>Manager</ns1:name> <ns1:value>Manager</ns1:value> </ns1:field> </ns1:values> </ns1:userFieldInfo> </ns1:GetUserProfileFieldsResult> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |