Home

 

Retrieving profile extension data

To retrieve the data defined for custom fields added to a profile, use the Profiles extension resource link returned by the Profiles user feed. Profiles extension data can be represented as follows:

The links for working with custom extensions are found in the <feed> element of the Profiles user feed. The <link rel="http://www.ibm.com/xmlns/prod/sn/ext-attr" > element appears once in the feed for each custom extension defined for a profile.

No custom extensions links are available from the links in the <entry> element of the feed that contains the user's profile.

When you update an extension, all existing information will be replaced with the new data. To avoid deleting existing data, follow the instructions in this topic to retrieve any data you want to retain first, and send it back with this request. See the topic Updating profile extension data for more information. To retrieve a profile extension...

  1. Get the person's user feed. See Searching for a user's profile.

  2. Get the URI of the extension resource which is specified in the href attribute of the <link> element in the user's user feed that has a rel="http://www.ibm.com/xmlns/prod/sn/ext-attr" attribute and a snx:extensionId attribute that matches the extension you want to retrieve.

  3. Send a GET request to the Web address specified in the href attribute.


Atom API request details

Method Resource URI Output representation
GET profile extension Value of the href attribute of the <link> element in the user's user feed that has a rel="http://www.ibm.com/xmlns/prod/sn/ext-attr" attribute and a snx:extensionId attribute that matches the extension you want to update. XML schema defined by each extension or plain text

 

Input

None.

 

Output

Extension data is returned in the response content. Returned HTTP Headers

Error codes

Input:

Response:

Response content:


Working with profile extensions

 

Related reference


Updating profile extension data

Searching for a user's profile


+

Search Tips   |   Advanced Search