How to setup Microsoft Azure/Entra to only send SAML assertion with groups included in application and not all user groups
search cancel

How to setup Microsoft Azure/Entra to only send SAML assertion with groups included in application and not all user groups

book

Article ID: 377713

calendar_today

Updated On:

Products

Cloud Secure Web Gateway - Cloud SWG

Issue/Introduction

Cloud SWG integration with Azure for user management and authentication following Cloud SWG documentation.

Microsoft Entra/Azure setup using Azure/Entra AD Connect, so that the hybrid option of Cloud native groups and AD synchronised groups can be used.

With this setup enabled, the SAML IDP server assertion included all groups the user was a member of, rather than the groups included within the Application setup. Is there a way to only send groups which are included in the application, rather then all user groups?

Cloud SWG admin does not want to send all groups to the cloud for security reasons, especially if not used in the Cloud SWG policy.

Environment

Microsoft Entra.

Microsoft Azure.

Cloud SWG.

SAML authentication.

Cause

Best practice.

Resolution

Configure the Groups Attribute in Azure/Entra Portal with the value group which was configured previously in Azure AD.
 
  1. Login to Azure AD Portal
  2. Select Enterprise Applications -> The application that was created for Cloud SWG.
  3. Go to 'Single sign on' settings  -> Attributes & Claims
  4. Add a group claim

    1. If a client has a free Azure AD license, the only option is to sync on prem groups. Configure the following options


       
    2. If a client has a paid Azure AD subscription, a hybrid option of Cloud native groups and AD synced groups can be used using the following options:

  5. Make sure the Cloud SWG SAML settings parse the right group information from the assertion, my adding the following default group attribute name. Note that if the admin changes the default group name/schema on the Entra AD side, the corresponding group name must be entered below.