Grant CSE Access to External Guest Users Using Entra ID B2B

Updated On: Jun 24, 2026

Overview

Use this guide to grant Cloud Secure Edge (CSE) access to external guest users (for example, 3rd-party contractors, vendors, or partners) that you invite into your Microsoft Entra ID tenant with Entra B2B Collaboration.

Scope: Inviting guest users and managing their licensing is standard Microsoft Entra functionality — it is not specific to CSE, so this guide links to Microsoft's documentation for those steps rather than reproducing them. The only CSE-specific configuration is mapping the guest group to a CSE role and access policy (Step 3). You do not create a separate SAML application for B2B — guests use your existing CSE ↔ Entra integration.

Because Entra External Identities bills on a Monthly Active Users (MAU) model with a free tier of 50,000 MAU, you can onboard a large number of contractors at no additional license cost.

How it works

  1. You invite guests into Entra (standard Entra B2B) and place them in a security group.
  2. Guests authenticate through your existing CSE Entra ID integration; Entra includes their group membership in the SAML assertion.
  3. CSE maps that group to a role and access policy, granting (or revoking) access centrally.

Prerequisites

Steps

Step 1: Invite the guest users and add them to an access group (in Entra).

Step 2: Make sure the guest group is assigned to your existing CSE Entra application and that group claims are emitted.

Step 3: Map the group to a CSE role and access policy (in CSE).

Step 1: Invite guests and add them to an access group (Microsoft Entra)

This step uses standard Microsoft Entra B2B functionality. Follow Microsoft's documentation:

What CSE needs from this step: a single Entra security group containing your guest users. You will map this group in CSE in Step 3, so note its name and Object ID.

Step 2: Assign the guest group to your existing CSE Entra application

You do not create a new SAML / Enterprise Application for B2B. Use the CSE Entra application that was created when you integrated CSE with Entra ID (see Set up Auto-Configuration for Entra ID).

2.1 In the Entra admin center, open Enterprise applications, and select your existing CSE application (for example, SonicWall CSE TrustProvider).

2.2 Under Users and groups, add the guest access group from Step 1.

2.3 Confirm that group claims are configured so Entra sends group membership to CSE in the SAML assertion.

If group claims were already configured during your initial Entra integration, you only need to add the guest group under Users and groups.

Step 3: Configure Role-Based Access in CSE

CSE role configuration maps the Entra group to a CSE role, and the role to an access policy.

3.1 In the CSE Command Center, navigate from Directory & Infrastructure > Roles.

3.2 Select + Add Role, and enter a Role Name (e.g., Contractors).

3.3 In the Role configuration, select + Add Role Attribute, and then select By Group from the dropdown menu.

3.4 Select + Add Groups, and enter the Object ID of the Entra ID group from Step 1 (e.g., SEC-ZTNA-Contractors-Access). Select Add "SEC-ZTNA-Contractors-Access".

3.5 Save the Role configuration.

3.6 In the CSE Command Center, navigate from Private Access > Access Policies.

3.7 Create or edit the relevant access policy (e.g., the policy that grants access to your ZTNA resources).

3.8 In the policy, assign the role you created in Step 3.2 (e.g., Contractors).

3.9 Select Create Policy or Submit changes to your existing policy.

Summary

  1. Contractor(s) receives and accepts the Entra ID B2B invitation.

  2. Admin adds the contractor's Guest User account to the SEC-ZTNA-Contractors-Access group.

  3. Contractor opens the SonicWall client and attempts to log in: They are redirected to the Microsoft sign-in page; They enter their email (contractor@their-company.com). Entra ID redirects them to their own company's sign-in page to authenticate.

  4. After successful login, Entra ID generates a SAML token containing their membership in the SEC-ZTNA-Contractors-Access group.

  5. Cloud Secure Edge receives the token, finds the matching Group ID, assigns the user the Role Contractors, and grants access based on the access policy for that role.

  6. Optional: To revoke access, admins can remove the Guest User from the SEC-ZTNA-Contractors-Access group.