The user account feature prevents the public from accessing your app and enables you to control who can view, edit and create records in your application through the use of user groups. Users who create an account on your app are synced to your Airtable which makes Pory a great platform for building apps on top of your internal tools as a way to interface with customers and partners.
- You will need an Airtable account to get started
- You will need to be subscribed to our Professional plan
Once this feature is enabled, there will be an onboarding process to help you connect your Airtable and set up user accounts. For this article, we will set up an employees directory app.
The first step is to connect your users table from your Airtable base.
- Create a table in your Airtable base for storing your users. You can also use an existing table like Employees.
- Add a field in the table for collecting emails. Your users will use this for logging into your app. Ideally, the email field should be the first field in your table to ensure that it is always unique. This will prevent duplicates and errors in the future.
- Select the Airtable base that contains your Users table. E.g. Employee Directory
- Select your Users table E.g. Employees
- Select which field is used for storing your user's email. This is used by users to log into their account.
This is the users table used for the tutorial:
Account details (not including password) will be stored in this table when they sign up.
The second step is creating a default group for our users. User groups are used to control what different types of users can view and do on your application. Creating a default group means new users will be automatically added to this account. We can create rules for this group later from the editor.
Group Name: Employees
Group Description: Employees can view and update their information
The third step is to create a User Account page using fields from your users table. An account page allows a user to view and edit their own information. Toggle the fields to build your profile page (refer to user table above).
You can also add linked records that are linked to a user by clicking on Add linked fields. Adding linked records will generate a tab where you can also choose which fields from the record to display.
E.g. Adding Reports to into the user account page
The forth step is setting up email. The Reply to email is used for sending out emails for your welcome email and resetting passwords. Welcome emails are sent when your users first sign up to your platform and
- Enter your reply to email. This is the email used for sending out your welcome emails and when a user needs to reset their password.
- Create your welcome email by filling out the email subject and email content
- Click next when you're ready!
The final step is creating flows for your app. This tells the app which page to redirect your users based on different scenarios.
- Select which page to redirect your users to after logging in.
E.g. Take the user to a welcome or members only page.
- Select which page to redirect your users to if they are not logged in and trying to access protected content.
E.g. Take the user to the log in page
- Select which page to redirect your users after logging out
E.g. Take the user to the home page or survey form
That's it! Press next when you're ready and you'll be taken to your user profile page builder. users will now see a log in and sign up button appearing in your app and start signing up.
You may notice there’s currently nothing to display and that’s because the user we’re viewing as is email@example.com and this fake user does not belong to the user group Employees.
Let’s add a user to the Employees group. E.g. firstname.lastname@example.org
We can now see the profile form by viewing as email@example.com
- Navigate to users
- Click on the cog menu
- Select disable accounts