Set SAML Single Sign-On User Group Mapping Rules⁠

Configure SAML user group mapping rules in CloudConnexa to automatically assign users to groups based on information received from your SAML identity provider (IdP).

SAML user group mapping uses a group claim (attribute) sent by your IdP during authentication. CloudConnexa compares the values in that claim with your mapping rules and assigns the user to the matching user group.

You can use this form of attribute-based access control with access groups to enforce least-privilege access to resources.

For example, you can map members of an Engineering group in your IdP to a CloudConnexa user group with access to development resources, while members of a Finance group receive access to financial applications.

Before you begin⁠

Ensure you have:

  • A CloudConnexa WPC with SAML single sign-on (SSO) configured.

  • Owner or Administrator role to configure SAML authentication and user group mapping.

  • The CloudConnexa user groups you want to assign.

  • A group claim configured in your IdP and mapped to the Group attribute in the CloudConnexa SAML configuration.

  • The group values your IdP sends in SAML assertions.

Add a SAML user group mapping rule⁠

Create a rule to map one or more IdP group values to a CloudConnexa user group.

  1. Sign in to the CloudConnexa Administration Portal using your WPC's Cloud ID address (for example, yourcompany.openvpn.com).

  2. Navigate to Settings → User Authentication.

  3. Select Edit and open User Group Mapping from the SAML configuration drop-down.

    • The SAML Configuration: User Group Mapping page opens.

  4. Select the Enable sync from SAML IdP toggle if it isn't already on.

  5. Select Add Mapping Rule.

    • The Create Rule dialog opens.

  6. Configure the following fields:

    • SAML IdP User Groups: Enter the group value received from your IdP. Press Enter or Tab to add the value. Repeat to add more group values to the same rule.

    • CloudConnexa User Group: Select the user group to assign when a value matches.

    • Processing Order: Enter a number to determine the order in which CloudConnexa evaluates the rule. Lower numbers have higher priority.

  7. Select Add Rule.

    • The new rule is added to the list of SAML user group mapping rules.

Identify the correct IdP group values⁠

The group attribute and its values depend on your identity provider.

Identity provider

Group attribute

What to enter in a mapping rule

Microsoft Entra ID

Group claim, typically http://schemas.microsoft.com/ws/2008/06/identity/claims/groups

The group object ID (GUID), when the claim is configured to send Group ID.

Okta

groups

The group value included in the SAML assertion.

Google Workspace

groups

The value sent for the selected Google Workspace group.

OneLogin

groups

The role or group value configured in the SAML parameter.

JumpCloud

memberOf

The group value sent through JumpCloud's group attribute.

Keycloak

groups, configured using a Group List mapper

The group value sent by the mapper. Its format depends on whether full group paths are enabled.

Configure unmapped SAML IdP user groups⁠

Use Unmapped SAML IdP User Groups to determine which CloudConnexa user group receives users whose IdP group values don't match any mapping rule.

The page displays the current assignment. For example:

Unmapped SAML IdP User Groups → CloudConnexa User Group: Default

To change the assignment:

  1. On SAML Configuration: User Group Mapping, locate Unmapped SAML IdP User Groups.

  2. Select Edit.

  3. Configure the CloudConnexa user group for unmatched IdP groups.

  4. Save your changes.

Assignment of primary and secondary user groups⁠

CloudConnexa can assign a user to multiple user groups based on SAML or LDAP user group mapping rules.

The processing order determines which group becomes the user's primary group when multiple rules match:

  • Primary user group: The first matching rule, with the lowest processing order number, determines the primary user group.

  • Secondary user groups: Subsequent matching rules can assign up to 20 additional user groups.

The primary user group determines the user's inherited configuration, including connection authentication, internet access settings, allowed regions, and device restrictions.

Secondary user groups can grant additional access to resources through access groups without changing the inherited settings from the primary group.

The user's primary user group also determines which Shield Policies applies. Secondary user groups don't override that policy.

For more information, refer to Assignment of a User to multiple User Groups and View policies for a User Group

Enable multiple user group mapping for an existing configuration⁠

If your WPC uses the earlier single-group mapping behavior, existing rules continue assigning users to one group based on the first matching rule.

To enable multiple user group mapping:

  1. Review the existing SAML user group mapping rules and the access permissions associated with each user group.

  2. If the page displays an information message offering multiple user group mapping, select Enable.

  3. Review your mapping rules and adjust their processing order as needed.

  4. Test the resulting user group assignments.

The new mapping behavior applies when new users authenticate, or existing users authenticate again.

Edit a SAML user group mapping rule⁠

Update a rule when an IdP group value, destination user group, or processing order changes.

  1. Navigate to Settings → User Authentication.

  2. Select Edit, then open User Group Mapping from the SAML configuration drop-down.

    • The list of existing rules displays in User Groups Mapping Rules.

  3. Locate the rule you want to change.

  4. Select its Edit pencil icon icon.

  5. Update the group values, CloudConnexa user group, or processing order.

  6. Save the rule.

    • The updated mapping takes effect the next time an affected user successfully authenticates.

Change the processing order⁠

Change the processing order when you need to control which group becomes primary for users whose IdP group values match multiple rules.

  1. Navigate to Settings → User Authentication.

  2. Select Edit, then open User Group Mapping from the SAML configuration drop-down.

    • The list of existing rules displays in User Groups Mapping Rules.

  3. Locate the rule you want to reorder.

  4. Select its Edit pencil icon icon.

  5. Update the processing order.

  6. Save the rule.

  7. Review the resulting rule order to ensure that the intended user group has the highest priority.

Delete a SAML user group mapping rule⁠

Remove rules that no longer correspond to your IdP group configuration.

  1. Navigate to Settings → User Authentication.

  2. Select Edit, then open User Group Mapping from the SAML configuration drop-down.

    • The list of existing rules displays in User Groups Mapping Rules.

  3. Locate the rule you want to remove.

  4. Select its Delete trash icon icon.

  5. Confirm the deletion.

    • After deleting a rule, users who previously matched it may be assigned to another matching user group or the configured unmapped group after their next successful authentication.

Verify SAML user group mapping⁠

Test the rules with an account that belongs to the IdP groups you've configured.

  1. In your IdP, verify that the test user belongs to the intended group.

  2. Have the user sign in to CloudConnexa using SAML SSO.

  3. In the Administration portal, navigate to Users → Users.

  4. Locate the user and review their assigned user groups.

  5. Verify that the primary user group matches the expected rule.

  6. If multiple user group mapping is enabled, verify that the intended secondary user groups are also assigned.

  7. Review the user's access to resources as needed.

Troubleshooting unexpected group assignments⁠

If a user isn't assigned to the expected group, check the following:

  • Group claim: Verify that your IdP includes the group claim in the SAML assertion.

  • Attribute mapping: Confirm that the group claim is mapped to Group in the CloudConnexa SAML configuration.

  • Group values: Verify that the values entered in SAML IdP User Groups match the values sent by the IdP.

  • Processing order: Review the order of matching rules, especially when the wrong primary group is assigned.

  • Unmapped groups: Check the group configured under Unmapped SAML IdP User Groups if no rules match.

  • Authentication: Have the user authenticate again after changes to group membership or mapping rules.

00000000⁠

SAML group mapping and SCIM provisioning⁠

SAML user group mapping and System for Cross-domain Identity Management (SCIM) provisioning serve different purposes.

SAML group mapping assigns CloudConnexa user groups based on group information received when users authenticate.

SCIM provisions and synchronizes user accounts between the IdP and CloudConnexa. SCIM user provisioning doesn't replace the SAML group claim or the user group mapping rules described here.

For more information, refer to About SCIM

© 2026 OpenVPN Inc. | OpenVPN is a registered trademark of OpenVPN, Inc. | CloudConnexa is a registered trademark of OpenVPN, Inc.