Skip to main content

User Management: Magic Links

Learn to easily invite your end-users to join your application and grant them with temporary or non-expiring access using Magic Links

Written by David Sepúlveda

Ubidots User Management has just gotten smoother and easier with Magic Links, a feature that invites end-users to join your application without the need to share credentials, avoiding the hassle of manual invitations. Ubidots does it for you.

Using Magic Links, your application's consumers can gain access just by clicking a URL hyperlink or scanning a QR code. This feature's management functionalities include options to prompt your users to enter a new password for their accounts, set an expiration and session closing date, and send an email invitation for users to log in.

Requirements

1. Create a Magic Link

By following the steps below, you will be able to create a Magic Link for a particular user that already exists in your account. If you haven't already created an end-user with certain role permissions, refer here and here to learn how. To start, please head to the Users > Users tab of your account.

Step 1: Click on the "Login as user" icon.

Step 2: Select the "USING MAGIC LINK" option at the top-right corner of the drawer.
Step 3: Choose an app to which the Magic Link will redirect.
Step 4: Create a Magic Link and select it.
Step 5: Click on the editing icon.
Step 6: Choose among the available options, then proceed to the last step:
​    Download a QR code to share with users so they can gain access by scanning it.
​    Copy the Magic Link URL with the right-most copy icon.
​    Toggle ON the option to "Ask for a new password at login".
​    Toggle ON the option to "Expire link and session" and select a date.

Step 7 (Optional): Toggle ON the option to send an email invitation and fill in the information:
   – Comma-separated email addresses to which the Magic Link will be sent.
   – Subject of the email (bookmarks are available).
   – Body message of the email (bookmarks are available).

Step 8: Finish by clicking the green checkmark button at bottom-right of the drawer.

2. Enable Self-Serve Passwordless Login (App-Level)

In addition to creating individual Magic Links for specific users, account owners can enable a self-serve option that lets any end user of an app request their own login link, without an administrator having to generate one manually.

2.1. Enabling the feature

  1. Go to the settings of the app you want to enable this option for.

  2. Within the settings, head to the "Features" section.

  3. Click on the "Other" option.

  4. In the "Other" drawer that opens, enable the "Enable self-serve passwordless magic-link login" toggle.

  5. Click the green checkmark button to save your changes.

2.2. How end users use it

Once enabled, end users of that app will see a new button on their login screen: "Email me a login link".

To use it, they need to:

  1. Enter the email address associated with their Ubidots account in the corresponding email field.

  2. Click "Email me a login link".

An email will then be sent to their account containing a login link. Once they click it, they will be automatically logged in to Ubidots.

Note: End users can still log in with their password as usual. The passwordless login link is an optional alternative, not a replacement.

Did this answer your question?