Insites Docs Developers guide Data and UsersUsersSharing Attributes Across Multiple Profiles

Sharing Attributes Across Multiple Profiles

Last updated on June 26, 2024.

This guide shows you how to share attributes across multiple user profiles. If your profiles have the same Properties, you can extract them to a container profile. This action groups them and enables you to use them in different profiles.

Prerequisites

This guide builds on previous tutorials in the Users section:
Users

Steps

Sharing attributes across multiple user profiles is a three-step process:

  • Step 1: Create a profile template
  • Step 2: Create profiles
  • Step 3: Use profiles

Step 1: Create a profile template

Create a general employee template. You can define other profiles with fields from the profile and some more.

app/user_profile_types/employee.yml

Step 2: Create profiles

app/user_profile_types/software_developer.yml

app/user_profile_types/project_manager.yml

Step 3: Use profiles

Here's an an example of using the software developer profile on a sign-up form:

app/forms/software_developer_signup.liquid

Here's an example of using the project manager profile on a sign-up form:

app/forms/project_manager_signup.liquid

Note

If you would like to create a profile on sign-up without assigning any property, please make sure that the parameters would include at minimum . You can achieve it with hidden input and or via JSON.

Note

To discover names that fields should have, explore the variable by printing it on your page.

Next steps

Congratulations! You know how to share attributes across user profiles. You can learn more about Forms here: Reference: Forms

Have a suggestion for this page?

Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.