# Adding Users

## Adding User(s) Button

Using the **Add User(s)** button you can manually add users to your Softr app, who can later on [sign into](https://softr.gitbook.io/softr-documentation/memberships/user-accounts-blocks/sign-in-form) the app using the credentials that you've set for them.&#x20;

![Add user(s) button](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FEIhI2IN7Z9OF9GVbbAwe%2Fadd-user-b.png?alt=media\&token=d1b6325c-572e-42be-aa3b-038033a2157c)

### Adding a Single User

In the **ADD USERS** tab you can add a single user. You just need to set a **Name** and **Email** for the user as well as a **Temporary Password** or a [Magic Link](#magic-link).

![Adding a user](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2Ftmt7WTDHpqMpL9rDUldc%2FAdd-users-b.png?alt=media\&token=74a91cc9-80aa-415f-9967-ee094c00599a)

If you choose to generate a temporary password, after hitting **Save and continue**, the user will be created, and you'll be taken to the next screen with user credentials.

![User Added](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FqcO7s1uMLBFbNWHLrTwv%2Fuser-added-b.png?alt=media\&token=dbbccb3a-2ab4-4f8e-af7a-d282dd613d2d)

You can copy the credentials and **Finish without inviting** or **Create invite,** which will allow you to send an email to the user with his/her login credentials included.

In the future, if you need to resend the invite, you can select the user from the list and choose the **Resend Invite** action as shown below.

![Resend Invite to user](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FGLFb7mbKp7hOtDdVOvPg%2Fresend-invite-b.png?alt=media\&token=b6ca7f4f-6951-44c5-b9ee-8d7ded95c18c)

### Import Users

In the Import Users tab,  you can do a bulk import from a .csv file containing user data. After uploading the .csv file, you need to map the fields. The **Email** field is required, and you can optionally map **Name** and **Password** fields as well.

![Importing Users](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FafYriYKtykhwYdaTXdKS%2Fuser-import-b.png?alt=media\&token=5bb66015-1d6e-4f53-bb27-fb856ad9008f)

Next, you need to hit **Create Invite** to send invites to the imported users. If you haven't mapped a Password field, you'll be presented with authentication options.&#x20;

![Authentication Options](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FheE9BEpZo0YDb3yc0XLV%2Fauthentication-b.png?alt=media\&token=bee87a1a-7ecf-4847-854b-75554a26d34a)

After selecting an authentication option, you need to click **Next** and send invites to the imported users including their login credentials (either passwords or magic links based on your selection). That's it, as soon as you send the invites, the emails will be sent and the users will be added to your Softr app.

## Delete User

To delete one or more users from the database, you need to select them via the checkbox and hit **Delete** at the top.

![Deleting a user](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2F1wSnXWbbfO4v8KVlS9OH%2Fdelete-b.png?alt=media\&token=b3e5e646-57c8-4404-b85f-b3565ac4f07b)

## Export Users

You can export one or more users from your Softr app via .csv file. To do that, select the users you want to export and click **Export to .csv** under **Actions**.

![Exporting Users](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FKQ7RZ7mwLDVPNDOyTPjS%2Fuser-export-b.png?alt=media\&token=12903452-f5ab-4d0d-903f-e707df378886)

## Magic Link

With **Magic Link** you can generate a unique token for your users to log into your Softr app without manually signing in with a password. This can be handy when you create a user in the **Users** section and need them to sign in for the first time. Later on, the user can set up the account info in **User Profile** and sign in the usual way. Let's see how that works.

### Generating the link

First, you need to select the users you want to generate the link for (using the checkboxes in the first column).

![Generate Magic Links](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FecP3PJ5uoFmmsCyMx9wy%2Fgenerate-magic-link-b.png?alt=media\&token=92c84652-5dd0-4944-8b6e-8762a9892aa6)

After selecting the users, click **Generate Magic Links** under the **Actions** menu.

### Copying the link

After generating the link, you need to copy it using the copy button next to it.

![Copying the link](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FlCC71MfUW9tYKRYdBGQh%2Fcopy-magic-link-b.png?alt=media\&token=828d6871-8f85-4f4a-b6e1-d440dd3c76b9)

### Regenerating the link

You can regenerate any user's **Magic Link** at any time using the regenerate button as shown below.

![Regenerating the link](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FBnGaEVbaGgqKHkDb2Y7N%2Fregenerate-link-b.png?alt=media\&token=39b86fef-f981-4a11-b9f2-85032fa3ceb6)

### Using the link

That's it, now you can send the link to the user you've generated it for. As soon as the user click's on the link or pastes it in the browser address bar, he/she will access your site in logged-in state.

{% hint style="info" %}
If you want the user to be taken to a specific page in your application, you can append the following parameter at the end of your magic link: **\&next-page=/page-path**\
\
For instance, if you have a yourdomain.com/about-use page that you want to add, your parameter will look as follows: **\&next-page=/about-us**
{% endhint %}
