Example - Fluid Topics - Latest

Fluid Topics Configuration and Administration Guide

Category
Reference Guides
Audience
public
Version
Latest

The following example shows JavaScript code to assign specific tags to users:

let user_email=attributes.emailAddress;

if (user_email.endsWith("example.com")) {
    user.tags=["tag1", "tag2"];
}
  • Use the Orgs feature to give groups of users that share common characteristics the same groups, roles, or tags through a menu. Orgs must be created through the profile mapper, but they should simplify most users' profile mapper code.
  • 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.
  • 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: