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.
Sign in to the CloudConnexa Administration Portal using your WPC's Cloud ID address (for example,
yourcompany.openvpn.com).Navigate to Settings → User Authentication.
Select Edit and open User Group Mapping from the SAML configuration drop-down.
The SAML Configuration: User Group Mapping page opens.
Select the Enable sync from SAML IdP toggle if it isn't already on.
Select Add Mapping Rule.
The Create Rule dialog opens.
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.
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 |
|---|---|---|
Group claim, typically | The group object ID (GUID), when the claim is configured to send Group ID. | |
| The group value included in the SAML assertion. | |
| The value sent for the selected Google Workspace group. | |
| The role or group value configured in the SAML parameter. | |
| The group value sent through JumpCloud's group attribute. | |
| 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:
On SAML Configuration: User Group Mapping, locate Unmapped SAML IdP User Groups.
Select Edit.
Configure the CloudConnexa user group for unmatched IdP groups.
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:
Review the existing SAML user group mapping rules and the access permissions associated with each user group.
If the page displays an information message offering multiple user group mapping, select Enable.
Review your mapping rules and adjust their processing order as needed.
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.
Navigate to Settings → User Authentication.
Select Edit, then open User Group Mapping from the SAML configuration drop-down.
The list of existing rules displays in User Groups Mapping Rules.
Locate the rule you want to change.
Select its Edit
icon.Update the group values, CloudConnexa user group, or processing order.
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.
Navigate to Settings → User Authentication.
Select Edit, then open User Group Mapping from the SAML configuration drop-down.
The list of existing rules displays in User Groups Mapping Rules.
Locate the rule you want to reorder.
Select its Edit
icon.Update the processing order.
Save the rule.
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.
Navigate to Settings → User Authentication.
Select Edit, then open User Group Mapping from the SAML configuration drop-down.
The list of existing rules displays in User Groups Mapping Rules.
Locate the rule you want to remove.
Select its Delete
icon.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.
In your IdP, verify that the test user belongs to the intended group.
Have the user sign in to CloudConnexa using SAML SSO.
In the Administration portal, navigate to Users → Users.
Locate the user and review their assigned user groups.
Verify that the primary user group matches the expected rule.
If multiple user group mapping is enabled, verify that the intended secondary user groups are also assigned.
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