Purpose
A targeting rule could be applied to each Microsoft Teams Template to define who can use it, based on the user profile data.
Intrinsically, targeting rules are a combination of values and expressions that are evaluated against a user profile to determine if a Business Solution is shown to him or not.
Common scenarios
You'll find here after a list Common Scenarios for the audience targeting.Â
 Target: Users in France
user.country === 'FR'
Target: Users outside of Germany
user.country !== 'GE'
Target: English speakers from any country
user.preferredLanguage.includes('en-')
Target: French or Belgium users from the Marketing Department
( user.country === 'FR' || user.country === 'BE' ) && user.department === 'Marketing'
Domain-based targeting: "users with @contoso.com or @contoso.fr in their domain name"
user.email.includes('@contoso.com') === true || user.email.includes('@contoso.fr') === true
Email based targeting: users with [email protected]contoso.com or [email protected]contoso.fr, etc
user.mail === '[email protected]' || user.mail === '[email protected]' || user.mail === '[email protected]'
To get more information about the naming convention and all the available tags can be found on the Tech Hub Documentation Portal.Â