Background
When Lumos discovers new accounts in your applications, it needs to determine which employee owns each account. This process is called identity matching, and it’s crucial for maintaining security and compliance across your organization. By default, Lumos matches accounts to identities by comparing the account’s ID and email address with the identity’s ID and email address (see the default rules below). However, this approach doesn’t work in many real-world scenarios:- Email format changes: Your company transitioned from
name@oldcompany.comtoname@newcompany.com, but some applications still use the old format - Missing email fields: On-premises systems or platforms like GitHub may not have email addresses for users
- Different identifiers: Some applications use usernames, employee IDs, or other attributes instead of email addresses
Configuring Matching Rules
1. Navigate to Your Application
- Go to the All Apps page
- Click on the application you want to configure
- Navigate to the Integration tab
- Find the Identity Matching section

2. Review Your Default Rules
Until you save rules of your own, every application uses these default rules, in this order:
Lumos adds the Name Matching Rule to apps you create by uploading a file of accounts, since those files often don’t include an email. Most apps connected through an integration don’t use it.
For a file upload, the account’s ID is the value in the column you map to Unique ID. If you don’t map a column to Unique ID, Lumos uses the account’s email as its ID instead, or its first and last name when the row has no email.
When you connect a new integration, Lumos asks you to review the matching rules before the first sync, or to sync now with the defaults. Apps you create by uploading a file don’t show this prompt, so their accounts are matched with the default rules as soon as the file is imported.
3. Edit Matching Rules
To create additional matching rules or edit the existing ones, click the pencil icon in the top right. You can configure multiple rules that will be evaluated in priority order until a unique match is found. When adding a rule, you’ll need to specify:- Account Field: Choose which attribute from the discovered account to use for matching. When configuring this field, you can use the Lumos Expression Language to access data and handle any necessary transformations.
- Identity Field: Select which identity attribute to compare against. Supported fields include email, username, given name, family name, and any custom fields configured in your environment

4. Preview Expression Results (Optional)
If you’re using more complex expressions in your matching logic, you will likely want to preview the outputs of the expressions. In order to do that, you can click on the preview button next to each input. This will show you the results for your account, if you have one in the application. If you do not have an account in the application, Lumos will choose an account at random to preview.
5. Set rule priority
Rules are evaluated in the order they appear, from top to bottom. Use the drag handles to reorder rules by priority. A rule that finds several identities that aren’t from a User Source is skipped. An identity from one of your User Sources always wins over an identity Lumos created from an app account, even if a lower rule found it. Among matches of the same kind, the higher rule wins.6. Save and monitor
Once you’re satisfied with your rules, click “Save Changes”. Lumos applies them on the app’s next sync. Each sync re-checks accounts that are unmatched, or matched to an identity Lumos created from an app account instead of from a User Source. If a rule now finds a User Source identity for one of those accounts, Lumos moves the account to it. Accounts matched to a User Source identity keep their match unless a rule finds an identity from a higher-priority User Source. Accounts you matched or ignored by hand don’t move.Common Use Cases
Handling Domain Transitions
If your organization recently changed domains, you may want to create a rule that transforms old email addresses:Matching GitHub Usernames
For applications like GitHub that don’t provide email addresses:Matching On-Premises Systems
For systems that use Active Directory usernames:FAQs
What happens if multiple rules match the same account? Rules are evaluated in priority order. If a rule finds more than one identity from your User Sources, Lumos picks the active one first, then staged, then the higher-priority User Source. If a rule finds several identities and none is from a User Source, it’s skipped. Among the rules that return exactly one identity, an identity from one of your User Sources wins over one Lumos created from an app account. If two rules find the same kind of identity, the higher rule wins. Does matching ignore letter case and spaces? Yes for letter case, accents, and trailing spaces, soJDoe@Example.com matches jdoe@example.com. Leading spaces still count, so wrap the field in trim(), for example trim(account.username). Transformations in the account expression run before the comparison and are case-sensitive. For example, account.email.replace('_ada@', '@') leaves NAME_ADA@example.com unchanged. Lower-case the value first, as in replace(lower(account.email), '_ada@', '@').
Why does one person show up as two people under the same app?
An app can get accounts from your identity provider and from its own integration. If the integration’s account has no email, or a different one, the default email rule can’t reach the person’s identity, so Lumos keeps that account on a separate identity. Add a rule that compares a field the integration does send, such as account.username, to the identity’s Email. The account moves on the next sync. If an access review already includes the app, refresh it afterward. See Updating the Access Review Snapshot.
Can I delete the default matching rules?
Yes, you can edit or delete any of the default rules and add your own. Every application needs at least one matching rule, though, so you can’t save an empty list.
Will changing these rules affect existing matched accounts?
Only some of them. Accounts matched to a User Source identity keep their match unless a rule finds an identity from a higher-priority User Source, and accounts you matched or ignored by hand don’t move. Accounts that are unmatched, or matched to an identity Lumos created from the app account itself, are re-checked on the next sync and move if a rule now finds a User Source identity for them.
What if I make a mistake in my matching rules?
You can edit or reorder rules at any time. Use the preview feature to validate your changes before saving. If you notice issues after saving, you can update the rules and reach out to the Lumos team to trigger a full re-matching process.
How do I know which custom attributes are available for matching?
Available identity attributes depend on your identity provider integration and any custom fields you’ve configured in Lumos. The set of fields configured in your environment will show up in the Identity Field dropdown. If you want to make additional fields available, you can do so in your Source of Truth settings.