Retrieving Web Users Preferences
Use the get operation to retrieve preferences common for all users of a certain site. These settings automatically will be applied to a new user added to the site. Web users preferences are of more priority than web user settings. For more information on the settings, refer to the Retrieving Web Users Settings and Web User Settings and Preferences sections.
Request Packet Structure
A request XML packet retrieving preferences of web users includes the get-prefs operation node:
The get-prefs node is presented by type WebUserGetPrefInputType (
webuser.xsd), and its graphical representation is as follows:
- The filter node is required. It specifies the filtering rule. For more information, refer to the Available Filters section. Data type: WebUserOwnFilter (
You can retrieve preferences of web users using different filtering rules in a single packet. Add as many get-prefs operations as the number of different filtering rules to be used.
Response Packet Structure
The get-prefs node of the output XML packet is presented by type WebUserGetPrefOutputType (
webuser.xsd) and structured as follows:
- The result node is required. It wraps the response retrieved from the server. Data type: resultFilterType (
- The status node is required. It specifies the execution status of the get-prefs operation. Data type: string. Allowed values: ok | error.
- The errcode node is optional. It returns the error code if the get-prefs operation fails. Data type: unsignedInt.
- The errtext node is optional. It returns the error message if the get-prefs operation fails. Data type: string.
- The filter-id node is required. It returns the filtering rule parameter. For more information, refer to the Available Filters section. Data type: anySimple.
- The id node is optional. If the set operation succeeds it holds the ID of the updated web user. Data type: integer.
- The wuscripts node is optional. It is required if the get-prefs operation succeeds. It indicates if web users are able to use web scripts. Data type: boolean.
Retrieving preferences a web user
This packet retrieves preferences of all web users of the site with ID 5. The packet can look as follows:
Retrieving preferences of multiple sites
This packet retrieves preferences of all web users of sites example.com and example2.com. The request packet looks as follows: