Example - Fluid Topics - Latest

Fluid Topics Configuration and Administration Guide

Category
Reference Guides
Audience
public
Version
Latest

The following lines show examples of JavaScript code to assign search preferences to users:

  • Prioritize the same value for all users:

    user.preferences.metadata = {
        Product: {
            prior: 'FT',
            filter: ['platform', 'FT']
        }
    }
    
  • Prioritize the same value for all users but use an alternative syntax:

    user.preferences.metadata.Product = {
        filter: ['platform', 'FT']
    }
    
  • Retrieve the properties that the authentication service returns:

    user.preferences.metadata = {
        versions: {
            prior: attributes.versions
        }
    }
    
  • attributes corresponds to the user values coming from the authentication realm.
  • Defining a user's roles, groups, and tags with the profile mapper only affects the user's roles, groups, and tags defined with the profile mapper. It is not possible to use the profile mapper to:

Type console. to see the full list of logging methods. Methods include console.log or console.assert. The logs are only visible to the administrator in the Profile mappers assistant drawer. Fluid Topics does not collect the logs.