Skip to main content

ADFS SSO

ADFS SSO is an advanced authentication method that enables users to access multiple applications and services using a single set of credentials. Instead of juggling numerous login details, users can authenticate once and seamlessly navigate through different resources without the hassle of repeated logins. For Active directory, ADFS role needs to be installed on the AD server.

Configure SSO in SureMDM

To configure SSO with ADFS, follow these steps:

note

Login to the SureMDM  Web Console as a Superuser.

  1. Navigate to SureMDM Web Console > Settings > Account Settings > Enterprise Integrations > SAML Single Sign-On.

  2. Configure Single Sign-On settings for ADFS.

SettingsDescription
Enable Single Sign-OnSelect this option to allow configuring Single Sign-On settings.
Select Identity Provider (IdP)Select ADFS.
Service IdentifierEnter the Service Identifier URL. See how to obtain Federation Service Identifier URL.
Sign On Service UrlEnter the URL for the Sign On Service URL. See how to obtain ADFS Service URL.
Logout Service Url

Enter the URL for logout.

*Note: Generally, the URLs for the Sign On Service Url and Logout Service Url will be the same.*

  1. Click Generate Certificate to generate a self-signed certificate on the server and make it ready for download.

    or

    Click Upload Certificate to upload another certificate. 

    These options are available when no certificate is uploaded.

  2. Click Delete Certificate or Download Certificate to delete or download the already uploaded self-signed certificate.

  3. Under the Dynamic Permission Assignment section, please click Add to Configure the Settings:

SettingsValues
AttributeUnder the Role Configuration, define the Attribute Name as Group. This will refer to the group attribute of the user. For steps on how to add Attributes, please click here (e.g., Attribute: Engineering, Value: QA).
ConditionSelect the conditions from the dropdown:
1. Contain
2. Equals
3. In
Note: The condition field defines how SureMDM matches the attribute value received from the SSO provider with the value specified in the rule.
ValueProvide the value that the group name must match (e.g., “Admin”, “Manager”, or any other relevant group identifier). The system will look for this value within the user’s group attribute to determine if the role should be assigned.
RolesSpecify the roles that should be dynamically assigned to the user when the Group attribute matches the specified value. For example, if the group contains "Admin", assign the Administrator role, or if the group contains "Manager", assign the Manager role. To know more, see Configure Permissions for Role-Based Admin.
Device Group SetChoose an option for Device Group Set from the drop-down menu. To know more, see Configure Permissions for Device Group Set Based Admin.
Jobs/Profiles Folder SetChoose an option for Jobs/Profiles Folder Set from the drop-down menu. To know more, see Configure Permissions for Job Folder Set Based Admin.
Remote File Manager Access ControlChoose an option for Remote File Manager Access Control from the drop-down menu. To know more, see Configure Permissions for Remote File Manager Based Admin.
important

Only Account Administrators can create or modify SSO role mapping configurations that assign Super User privileges. Super Users and other users cannot create, edit, or update any SSO role mapping, default permission, or related configuration that grants Super User privileges. Any attempt to assign Super User privileges by a non-Account Administrator will not be permitted.

note

If the Attribute or Value does not match the information provided by the IdP:

  • SureMDM assigns default permissions to the sub-user.
  • The user will not receive the intended custom role.
    Recommendation: Ensure that attributes and values are consistently configured between the IdP and SureMDM.
  • Deny Access - This option can be configured only in Default Permission and It determines whether a user should be denied access when the attribute and value conditions from the Identity Provider (IdP) do not match any of the configured roles. If Deny Access is enabled in the default permission and if the attribute and value from the IdP do not match any defined conditions (Contains, Equals, IN), SureMDM will not assign any role to the SSO user, resulting in denied access to the console.

Obtain ADFS Service URL

To obtain the ADFS Service URL, on the AD FS Console ( Server Manager > ADFS > Tools > ADFS Management), expand Service and click End Point. Note down the URL Path for SAM 2.0 and prefix it with the machine endpoint.

Obtain Federation Service URL

To obtain the Federation Service URL, on the AD FS Console, right-click the Service and then select Edit Federation Service Properties. Note down the URL mentioned in the Federation Service identifier field.

Configure settings in ADFS server

To configure settings in ADFS server, follow these steps:  

  1. Remote Desktop Protocol (RDP) or login into ADFS Server.

  2. Launch the AD FS Console from Server Manager, then click on Tools > AD FS Management.

  3. Click Relying Party Trusts > Add Relying Party Trust. 

  4. Select Claims Aware and click Start. 

  5. Select Enter data about relying party manually and click Next. 

  6. Enter the Name as SureMDM and click Next.

  7. In the Configure Certificate section, browse the certificate (adfs_xxxxxxx.cer) downloaded in step no.4, Configure SSO with ADFS.

  8. Select Enable support for the SAML 2.0 WebSSO protocol and enter the URL as   

https:// (SureMDM Server Path)/console/ssoconsumer/(Encrypted MDM Account ID)
note

Admin should enter their SureMDM Server Path and Account ID into the above-mentioned URL. To get the encrypted account ID, follow these steps:

  1. Navigate to the SureMDM Console > Account Settings > Enterprise Integrations > SAML Single Sign-On.

  2. On the SAML Single Sign-On screen, locate the Assertion URL to get the Encrypted Account ID.

  1. Enter urn:42gears:suremdm:SAML2ServiceProvider in Relying party trust identifier field and click Add.

  2. Select Permit everyone or select an option from the list and click Next > Close. 

  3. In the AD FS Console, right-click SureMDM and select Properties.

  4. Select the Signature tab and click Add.

  5. Select the certificate (adfs_xxxxxxx.cer) downloaded in Configure SSO with ADFS,step no.4 and click Apply.

  6. Select the Endpoints tab and click Add SAML.

  7. Select Endpoint type as SAML Logout and Trusted URL as   

https:// (SureMDM Server Path)/console/ssoconsumer/(Encrypted MDM Account ID)
note

Admin should enter their SureMDM Server Path and Account ID into the above-mentioned URL. To get the encrypted account ID, follow these steps:

  1. Navigate to the SureMDM Console > Account Settings > Enterprise Integrations > SAML Single Sign-On.

  2. On the SAML Single Sign-On screen, locate the Assertion URL to get the Encrypted Account ID.

  1. Click OK.

  2. In the Edit Claim Issuance Policy prompt, click Add Rule.

  3. Click Next.

  4. In the Claim rule name field enter SureMDM, select Attribute store as Active Directory and choose the mappings for LDAP Attribute and Outgoing Claim Type and click Finish.

  5. Click OK.

  6. Use the URL https://42gears.suremdm.io/console/ssologin/(SureMDM Account ID)for SSO user login. 

note

Admin should enter their Server URL and Account ID into the above-mentioned URL.

💬 Help us improve this documentation

Was this information useful?

Your feedback helps us keep our documentation accurate, up to date, and useful.