Supporting multiple users

At some point, it’s likely that you’ll want to extend your apps to allow multiple users to log in and manage their own data. You want to show them their data, and nobody else’s. In this tutorial, we show how straightforward this is with Anvil.

We start with the app from the News Aggregator tutorial, and turn it into a multi-user app, complete with login form:

You don’t need to have completed the News Aggregator tutorial to do this tutorial.

However, you may want to complete one of the ‘Start Here’ tutorials if you haven’t yet.

Click the following link to clone the news aggregator app to use as a starting point.

Chapters

In this tutorial, you'll:

Add the users service

Use Anvil’s built-in Users Service to manage signup and login.

Add user permissions

Amend the ability to update and delete news articles depending on who is logged in.

Click the following link to clone the finished multi-user app and explore it yourself.

If you prefer a more theoretical approach to learning, you can dive straight into the documentation.