SAML Multi login configuration
On this page |
|---|
FROM VERSION 3.51.0
Overview
This configuration enables multiple XCALLY users to share a single Microsoft Azure AD SAML authentication account.
With this setup, XCALLY supports linking multiple user profiles — including Administrators, Users, and Agents — to the same Azure AD account using SAML Single Sign-On (SSO).
This allows one Microsoft Azure user to securely access the XCALLY web interface and its functionalities according to their XCALLY user role.
Previously, each Azure AD account could only be associated with one XCALLY user, based on the email field configured in XCALLY.
The new multi-login model simplifies SSO usage by allowing different XCALLY user roles to log in with the same Microsoft account — reducing the need for additional Azure licenses and improving usability for supervisors and administrators.
Video Tutorial
Requirements
Before enabling multi-user login, make sure that:
SAML SSO standard access is already configured on Motion V3, including both the client and the .env configuration file.
You have administrator credentials for your Azure Portal.
You have already set up the SAML application on Azure as described in the XCALLY Wiki Guide.
Configuration
Log in to the Azure Portal as admin
Open the SAML Application you previously created for XCALLY.
Go to the Attributes & Claims section
Add a new custom attribute — for example, ssoid — to be used for multi-login authentication.
Assign the Azure user’s email value (or another unique identifier) to this new attribute.
If you prefer to use the existing email attribute, you can skip creating a new one and use it directly in the XCALLY
.envconfiguration (see next step).
Edit the .env environment file, located under /var/opt/motion2/.env path and edit the file to add the multi login parameter ssoid (avoid any space character):
XC_SAML_MULTI_USER_FIELD=ssoid
As mentioned above, if you use the Azure user email as multi login attribute, instead of a custom value, you can use the email attribute directly:
XC_SAML_MULTI_USER_FIELD=email
Save the .env file and restart the motion2 service from the server console:
su – motion
pm2 restart motion2
Having SAML SSO already enabled:
In the XCALLY interface, open each Admin, User, or Agent profile you want to associate with the same Azure account
Go to Account → Authentication
In the SAML ID field, enter the value of the attribute used for multi-login (based on your
.envconfiguration). Example: If you usedemailas your multi-login attribute, enter the Azure user’s email addressSave the configuration for each user
Login on XCALLY
Once the configuration is complete:
On the XCALLY Login page, click Login with SAML.
The system will search for all XCALLY users whose SAML ID matches the SSO ID value from Azure AD.
A pop-up window will appear showing the list of XCALLY users associated with that Azure account — including their respective roles (Admin, User, Agent).
Select the desired user profile and click Login.
XCALLY will then open the corresponding interface based on the selected user role.