Filter Azure AD Groups Using Wildcards

Short answer:
Use wildcard (regex) filters to import users from Azure AD groups based on how the group name starts, contains, or ends with specific text.


This filter allows you to use wildcards (regular expressions) to import users from specific Azure AD groups based on their names.

You can define rules to match group names that:

  • Start with specific text
  • Contain specific text
  • End with specific text

Examples

1. Group names starting with "AzureAD"

^AzureAD.*

Matches groups like:

  • AzureAD Sales
  • AzureAD Marketing

2. Group names containing "AzureAD"

.*AzureAD.*

Matches groups like:

  • Team AzureAD Europe
  • Global AzureAD Users

3. Group names ending with "AzureAD"

.*AzureAD$

Matches groups like:

  • Sales AzureAD
  • Users AzureAD

How it works

  • ^ → matches the start of the text
  • .* → matches any characters
  • $ → matches the end of the text

By combining these, you can create flexible filters to target the exact groups you need.

Reference

 https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference 

  Download Microsoft Quick Reference  

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
Quick 1-on-1 Demo | Ⓒ 2026 Xink