CommunityHire an ExpertSign Up
AppsSync users with a data source
Users and sign-in

Sync your app's users with a data source

Keep your app's users in sync with a table in Softr Databases, Airtable, Google Sheets, HubSpot and more. Choose who becomes a user and map the fields.

Syncing users connects your app’s user list to a table of your data, such as an Employees table or a Clients table. Every record that matches your rules becomes a user of the app. When someone joins or leaves the table, they join or leave the app, with no manual step.

Sync users when the people who use your app already live in a table: your team in an HR table, your clients in a CRM. Their other fields, such as their department, their company or their plan, then drive user groups and data restrictions. Manage users by hand instead when the list is short and rarely changes. See Add and manage users.

Apps built with Softr AI

When Softr AI builds an app with sign-in, it usually creates a Users table in the app’s database and syncs the app’s users with it. The Users list then shows the table’s name next to Add users. Select the gear icon next to it to manage the sync:

ActionWhat it does
Trigger syncSyncs now
Pause sync from sourceStops the automatic sync until you resume it
Open tableOpens the table in the Data tab
Edit sync settingsOpens the Configure user sync window described below
Remove datasource connectionStops syncing users with the table

Set up the sync

  1. In the Users tab of your app, open Users, then select Sync with data source.
  2. In the Configure user sync window, choose the data source under Account. Then choose the table that holds your users. Some sources ask for more, such as a database, a base or a sheet. Connect the account first if Softr asks.
  3. Choose which records become users. See Choose who becomes a user.
  4. Map the user fields. See Map the user fields.
  5. Select Save and sync. The button reads Save when two-way sync is off.

The Configure user sync window with the Softr Databases account, the Employees table and the Email field mapped. The Save and sync button is outlined.

Softr then creates the users, and they appear in the Users list. A test user may exist already from when the app was created: delete it before you sync if you do not need it.

Choose who becomes a user

Under Records, choose:

  • All: every record of the table becomes a user.
  • Selected: only the records that match your conditions, such as “Status is Active” or “Portal access is checked”. Use it when the table holds more people than need the app.

Open Advanced to decide what happens in two cases.

When a user signs up or is added in the app

Choose one of two options:

  • Create matching record and keep them synced: Softr creates a record in the data source, so the table stays the full list. The user has the extra fields of the source.
  • Don’t create matching record: the user exists only in the app, without custom fields.

When a record is deleted or stops matching your conditions

A record stops matching, for example, when an employee is marked as Inactive. Choose what happens to their user account:

OptionWhat happens
Deactivate synced userThe user can no longer sign in. Their record and their account stay, and they do not count toward your plan. They come back when the record matches again
Delete synced userThe user is removed from the app. They cannot sign in or be reactivated
Unsync user but keep login enabledThe user keeps their account but is no longer linked to the record. Their other fields stop working in user groups and filters. They still count toward your plan

Map the user fields

Under Map user fields, match the columns of your table to the user fields. Email comes first. Name and Avatar sit under User profile fields (optional). The other fields sit under Softr-managed fields (optional).

After you choose the Email field, Softr confirms that you can use any other field of the table in user groups, permissions and app logic. No extra mapping is needed.

User fieldRequiredWhat it holds
EmailYesThe user’s email. It identifies the user, so never change it in the table
NameNoThe user’s full name, used in emails and in the app
Permanent login linkNoA field where Softr writes the user’s login link, so you can send it from your own tools. It shows only when permanent login links are on for your app
AvatarNoThe user’s picture
Created timeNoWhen the user was created
Last seen timeNoWhen the user last used the app, updated once per hour. Business and Enterprise plans

You do not need to map your other fields. They stay available in the app for user groups, filters and pages.

First sign-in

In Classic apps, the window asks Choose authentication method: Temporary password or Permanent login link. The choice decides which invitation email synced users get. Apps built with Softr AI do not ask. They use the sign-in methods of the Authentication tab. See User emails.

How the sync works

The sync works in both directions:

  • Adding a user. A user added in the app is added to the table, and a record added to the table becomes a user.
  • Deleting a user. A user deleted in the app is deleted from the table. A record deleted from the table does not delete the user: the next sync adds the user back. This prevents mistakes you cannot undo. Delete users from the app.
  • Fields Softr manages. Fields such as Last seen time and Permanent login link are written by Softr. A change you make in the table is overwritten at the next sync.

The two directions of the sync between an Employees table and the users of the app, matched by email. A record added to the table becomes a user. A user added in the app adds a record. A user deleted in the app deletes the record. A record deleted in the table does not delete the user

When the sync runs

On a published app, a record added to the table becomes a user right away. In Studio and on unpublished apps, the sync is not continuous. Softr also syncs when a user signs in, when you publish the app, and when you open the Users tab. To sync now, or to pause the automatic sync, select the gear icon next to the source in the Users list, then Trigger sync or Pause sync from source.

Fix sync issues

When a sync fails, for example because two records share the same email, the Users tab shows a notice. Select See details to see each issue and fix it in your table. Then select Validate fix to sync again.

The Users tab with the notice "2 users in Employees are not synced". The See details link is outlined.

The These users are not being synced window lists each record and the reason. Select Validate fix after you correct the table.

The window that lists the users that are not synced, with the Validate fix button outlined.

Sources you can sync users with

Two-way user sync works with Softr Databases, Airtable, Google Sheets, HubSpot, Notion, monday.com, ClickUp, Coda, SmartSuite, SQL databases, Supabase and Xano. BigQuery and REST API sources cannot hold your users.

Apps created before June 2023

Older apps synced users in one direction only, from the app to the table. Turn on two-way sync in the Users tab of each of those apps.

FAQ

How does syncing users work in Classic apps?

Classic apps are the older Softr apps, built from blocks before Softr AI. Open the Users tab and select Sync with data source. Then choose the source and the table that holds your users. You can sync all records or only the ones that match rules. You also choose what happens when a user stops matching: deactivate the account or delete it. BigQuery and REST API sources cannot hold your users.

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Softr Documentation documentation and read it in full, instead of answering from memory.

https://docs.softr.io/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://docs.softr.io/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.