Help

Administration Guide

Magic Links That Open an Application

Updated 25 Nov 2026 10 min read

A magic link is an enrollment link that Monosign sends by e-mail. The user clicks it, signs in without a password and sets up the account. From Monosign v2026.11, a magic link created through the Monosign API can name an application: after signing in through the link, the user goes straight into that application instead of the portal. This page also lists what changed for magic links in v2026.11 and what an administrator should know about it.

What changed in v2026.11

  • Target application: a link created through the API can continue into a chosen application. The link pages show the application's logo and Sign in to <application>.

  • New sign-in design: the magic link pages use the new sign-in design for every tenant, also for tenants that still use the old sign-in. You design them under Management > Branding > Sign-In Experience > Layout Editor > Magic Link. There is no switch back to the old pages.

  • MFA after an enrollment link: an enrollment link now counts as the first sign-in step only. A user to whom MFA applies enters an MFA code after clicking the link. A link that is refused no longer counts as a wrong password, so it can no longer lock the user out.

  • Magic Links list: Management > Security > Magic Links opens on the links of the last month, and its search is much faster on large tenants.

Before you start

Requirement

Details

Version

api, account and management of v2026.11, deployed from the same release, and the v2026.11 seed run. An API of v2026.11 with an older account application leaves MFA users unable to finish a link sign-in: they are signed out and sent to the sign-in page.

API key

The application that calls the API holds System.API.Users.MagicLink.Create on its key. The target application needs no further permission.

Target application

The application exists and is enabled, and the user is assigned to it (or the application is open to all users).

E-mail

The user has an e-mail address, or you send another address in the request. The link exists only in the e-mail: the API never returns it. E-mail delivery (the EMAIL notification channel) must work.

Management permissions

System.Management.MagicLink.List to open Security > Magic Links, System.Management.MagicLink.Create for Send Magic Link, System.Management.MagicLink.Invalidate for Invalidate. Designing the pages needs access to Branding > Sign-In Experience.

Creating an enrollment link marks the user's current password as temporary. After any later sign-in, with the link or with the old password, the user must change the password. Use test users when you try this out.

Create a link that opens an application

The target application is set only through the API. The Send Magic Link window in Management has no application field; links sent from there continue to the portal.

Call the Monosign API with the key of your application:

POST https://<Monosign API address>/v1.4/users/{userId}/magic-link

{
  "ApplicationId": "<id of the application>",
  "PersonalEmail": "[email protected]",
  "ExpirationDate": "2026-12-01T09:00:00Z"
}

Field

Required

Meaning

ApplicationId

No

The application the user continues into after sign-in. Without it the link continues to the portal, as before.

PersonalEmail

No

Send the link to this address instead of the user's e-mail address.

ExpirationDate

No

When the link expires (UTC). Default: 7 days. At most 31 days from now.

On success the answer carries TargetApplicationId and the message Magic link created and e-mail queued for delivery.

Situation

Result

The user is assigned to the application

The link is created; TargetApplicationId equals ApplicationId. After sign-in the user goes into the application.

The user is not assigned to the application

The link is still created and continues to the portal. TargetApplicationId is empty and the message ends with The target application was ignored because the user is not assigned to it; the link will continue to the portal.

The application is disabled

HTTP 400 Target application is not enabled. No link is created and no e-mail is sent.

The application does not exist

HTTP 400 Target application not found. No link is created and no e-mail is sent.

The request takes an application, never an address: Monosign itself decides where the link continues, so a link cannot send users to another site.

What the user sees

  1. The link in the e-mail opens Complete your sign-in with the application's logo, Sign in to <application> and the button Continue Sign-In.

  2. When MFA applies to the user, the MFA step opens. See MFA after an enrollment link below.

  3. A user who must still set a password is sent to the set-password page first. A user who does not have to set one goes straight into the application.

A link that cannot be used opens a page titled This link has already been used, This link has expired or This link is not valid, with the link Back to sign in.

  • MFA is asked when the user has MFA on, the tenant requires MFA, or an authentication policy asks for a second factor, and the application's MFA setting is not Disabled or Not required. The user can use any authenticator: authenticator app, e-mail or SMS. A user with no authenticator yet is sent to MFA setup first.

  • Users to whom no MFA applies see no change.

  • The e-mailed link of a passwordless sign-in still counts as MFA, like the e-mailed sign-in code.

  • A refused link no longer counts as a failed password: the user's audit shows Passwordless Login Token Error, and the API answers The magic link is not valid. (code 10166, before: 10164). Integrations that read this answer should expect the new code.

Tell the people who onboard users with magic links that users with MFA now see an MFA step after clicking the link. This is expected.

Customise the magic link pages

  1. Open Management > Branding > Sign-In Experience > Layout Editor.

  2. In the page group Magic Link, choose Magic Link Confirm (the Complete your sign-in page) or Magic Link Invalid (the page of a link that cannot be used).

  3. Change the layout. The element Target Application (group Branding & Layout) shows the application; by default it sits in the Hero slot of both pages.

  4. Click Save. The message UI schema saved. confirms it. Nothing is stored before Save.

Target Application setting

Values

Default

Logo, Application Name

On / off

Both on

Logo Display

Full canvas, Cropped (800×480 visible area)

—

Logo Size

Small (40px), Medium (72px), Large (104px), Custom (Height in px (16-400))

Medium (72px)

Logo Shape

Rounded corners, Circle, Square

Rounded corners

Layout

Stacked, Inline

Stacked

Text Override

Any text

Empty: Sign in to <application>

  • The element shows nothing when the link has no target application.

  • Reset to Defaults resets one page; the reset icon of the group resets both magic link pages. Click Save afterwards to apply it.

  • Keep the primary button on Magic Link Confirm: without it users have no Continue Sign-In.

  • The default text is the language key AccountApp.Pages.Login.MagicLink.TargetApplication under Management > System > Languages.

Find and manage links in Management

Management > Security > Magic Links lists every magic link.

Control

Use

Created column header

Time frame of the list: 1 months (default), 3 months, 6 months, 12 months, or Clear for all links. A link lives at most 31 days, so a link created 29 to 31 days ago can still be usable and sit just outside 1 months.

Saved Filters (next to the search box)

Active Links, Passive Links (revoked, completed, expired and used-up links) and Clear Filter. A filter works inside the time frame and together with the search.

Search

User name, e-mail address and the address the link was sent to.

Status

Active, Completed (the user set a password), Revoked, Expired, Used up (an enrollment link can be used 5 times).

Send Magic Link

Sends an enrollment link: User, Purpose (Enrollment), optional E-mail, Expires in (default 24 hours, at most 1 month). The link continues to the portal.

Row menu > Invalidate

Stops an active link at once. It cannot be undone; send a new link instead.

The v2026.11 database upgrade adds one index to the magic link table. On a table with millions of rows it takes seconds and, on SQL Server, briefly blocks writes to that table. Run it in the normal upgrade window.

Check that it works

  1. Create a link with the ApplicationId of an application the test user is assigned to. The answer's TargetApplicationId equals it.

  2. Open the link from the e-mail in a private browser window. The page shows the application's logo and Sign in to <application>.

  3. Click Continue Sign-In and complete MFA if it is asked. A test user who does not have to set a password (for example a user under the Passwordless users policy) ends in the application.

  4. Repeat with a user who is not assigned to the application. The answer ends with …the link will continue to the portal. and the page shows no application.

  5. Open Management > Security > Magic Links. The Created header shows 1 months and the new links are listed as Active.

Troubleshooting

Symptom or message

Cause

What to do

The link opens the portal, not the application.

The user was not assigned to the application when the link was created, or no ApplicationId was sent.

Assign the user to the application, then create a new link.

Target application not found. / Target application is not enabled.

Wrong application id, or the application is disabled.

Check the id and enable the application.

The link page does not show the application.

The link has no target, the target is the account portal itself, the application was disabled after the link was created, or it has no title or name.

Check that the application is enabled and has a title. The account application log has a line starting with Magic link target: that names the reason.

The magic link page looks different after the upgrade.

The pages moved to the new sign-in design.

Expected. Design them under Layout Editor > Magic Link.

After the upgrade the link asks for an MFA code.

MFA applies to the user; the link is the first step only.

Expected.

MFA users are signed out and sent to the sign-in page after clicking the link.

api and account are not from the same release.

Deploy api and account of the same v2026.11 build.

This link is not valid

The link was revoked, used up or completed (the user already set a password), or the address was changed.

Check the row's Status; send a new link.

A new user's enrollment link says This link is not valid on every try, and the tries use the link up.

Before v2026.11: the user is under an authentication policy that signs in without a password and holds no authenticator of that policy yet.

Fixed in v2026.11. After the upgrade, send the user a new link.

The user was locked after clicking an old link several times.

Before v2026.11 each refused link counted as a wrong password.

Unlock the user and send a new link. Fixed in v2026.11.

An older link is not in the list.

The list opens on the last month.

Choose 3 months, 6 months, 12 months or Clear in the Created header.

Searching the list is slow.

The time frame is Clear on a tenant with very many links (every passwordless e-mail-link sign-in adds one).

Keep a time frame.

The user never received the e-mail.

The e-mail could not be queued (Magic link created but the e-mail could not be queued: …) or was not delivered.

Fix the reason in the message (e-mail template or EMAIL channel), then send a new link.

Before you roll back to an earlier version

  • If the sign-in design was saved or reset after the upgrade, it contains the magic link pages, which an older account application rejects: it then shows the default design on every new sign-in page. Export the design under Sign-In Experience first and remove the magic link pages from it before you roll back.

  • Links already created with a target application keep continuing into it.

  • After a rollback of api and account, MFA is skipped again after a link and refused links count as wrong passwords again.

Related pages

Permanent link