By default, no user profile table is set. To set one, create a new table with columns for Name, Email, and Image. You can add more later, depending on the properties of your users.
Next, click the tab User Profile. The right panel will now show User Profile settings. Choose the table with your users and connect the NameEmail and Image to the correct columns. You can also enable or disable the Allow image upload.
Setting up User's Profiles
We can also enable Edit Form, this allows users to edit their profile from the User Profile tab. We can also add editing conditions to this feature.
Using The User Profiles Table
A user can have many more properties than Name, Email & Photo. These don't have to show in the app, but can be used in many different ways. Below are some basic examples 👇
Let's say you wanted to give users different levels of access in your app. For example, editors and users. Editors can edit & delete items whereas users can only view items.
You can achieve this by creating a new column in your users table called (for example) 'Access Level'. Then in this column you can put 'Editor' or 'Viewer' for each user.
Next, you can add a condition on editing which allows only users with 'Editor' in the Access Level column to be able to edit items.
Adding a condition to editing
You could also add properties to your User Table which could be used to hide & show components. In this way, you would be able to show some content to some users and hide it from others.
Instead of using text based conditions, you could create a TRUE or FALSE column. If a user has bought a subscription to your app, you could make this column TRUE and if they haven't, leave it FALSE.
Next, you could set visibility conditions on some of your components using this column. This way, you could hide 'premium' content in your app to free users and unlock it for paying customers.
Visibility conditions, hidden tabs, and removed components are not security features—they are merely changes to the appearance of your app. Do not rely on changes to the appearance of your app for security.
You can also use User Profile data in computed columns like the Template Column. For example, you could create a message that welcomed the user and referred to them by name.
In the image below, you can see that as we Preview As different users, the name in the Template column changes. This column can then be assigned to a Text component on a welcome screen.
When a user clicks on their profile image in the app menu, they will be taken to their user profile screen. You can configure this screen with components to show and allow the user to edit information. A quicker way to access the configuration screen is by clicking on the tab 'User Profile', this will redirect you to the User's Profile screen.