Creating a Property for All Users

Last edit: Jul 08, 2019
  • Contributors:
  • pavelloz

This guide will help you create a property for all Users of your platformOS site.

Requirements

To follow the steps in this tutorial, you should be familiar with the required directory structure for your codebase, and understand the concept of users.

Steps

Creating a property for all Users is a one-step process:

Step 1: Create yml file

Create the user.yml file in the app directory with the properties you want the user to have. For example, assuming you want to store a phone number:

properties:
  - name: phone_number
    type: string

Next steps

Congratulations! You have created a property for all Users. Now you can learn how to namespace user properties using UserProfiles:

Questions?

We are always happy to help with any questions you may have.