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 includeconsole.logorconsole.assert. The logs are only visible to the administrator in the Profile mappers assistant drawer. Fluid Topics does not collect the logs.
attributescorresponds 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:
- Change a user's default role.
- Change a user's roles, groups, or tags attributed manually.