Skip to main content

Email Domain Group Rules

Email domain group rules automatically assign users to groups based on their email address domain. When a user logs in for the first time via an external identity provider, the Identity Service checks their email against all configured rules and adds them to matching groups.

note

The Email Domain Group Rules page requires the TenantManagement role. It is only visible in the sidebar if you have this role assigned.

Accessing Email Domain Group Rules

Navigate to Identity > Email Domain Rules to access the rule management interface.

The list shows all configured rules:

ColumnDescription
Domain PatternThe email domain pattern to match
Target GroupThe group that matching users are added to
DescriptionOptional description of the rule

Toolbar Actions

ButtonDescription
New RuleCreate a new email domain group rule
SearchFilter rules by domain pattern or description
Export to ExcelExport the rule list to an Excel file
Export to PDFExport the rule list to a PDF file
Refresh DataReload the rule list

Row and Context Actions

ActionDescription
EditOpen the rule in the edit form
DeleteDelete the rule (context menu, with confirmation)

Creating a Rule

Click New Rule to open the rule creation form.

FieldRequiredDescription
Email Domain PatternYesDomain pattern to match against user email addresses (e.g., example.com)
Target GroupYesThe group to add matching users to
DescriptionNoOptional description of the rule's purpose

Click Save to create the rule or Cancel to discard.

Editing a Rule

Click Edit on a rule row to open the edit form. All fields can be modified.

Deleting a Rule

Right-click a rule and select Delete. Confirm the deletion in the dialog.

How It Works

  1. A user logs in via an external identity provider (e.g., Google, Azure AD)
  2. The Identity Service retrieves the user's email from the provider
  3. It checks all email domain group rules for the tenant
  4. If the user's email domain matches a rule's pattern, the user is added to the rule's target group
  5. The user inherits all roles assigned to that group
info

Email domain group rules are evaluated on first login only. If you create a rule after users have already registered, existing users are not retroactively added to the group. You can manually add existing users to the group via the Groups page.

Example

You want all users with @acme.com email addresses to automatically receive dashboard viewing permissions:

  1. Navigate to Identity > Groups and create a group "Acme Viewers" with the roles DashboardViewer and ReportingViewer
  2. Navigate to Identity > Email Domain Rules and click New Rule
  3. Set Email Domain Pattern to acme.com
  4. Set Target Group to Acme Viewers
  5. Set Description to Auto-assign Acme employees to viewer group
  6. Click Save

Now every user who logs in with an @acme.com email address is automatically added to the "Acme Viewers" group and can view dashboards and reports.