Power Automate Filter Query by Person Email
In this article
To filter a person by email in Power Automate, use an OData filter query on a person column with the internal field name followed by /Email (for SharePoint) or /EMail (for Dataverse) and compare it to the address in single quotes. For example: Person/Email eq 'jane@contoso.com'. This works in actions like Get items (SharePoint) or List rows (Dataverse) and returns only records where the person column matches that exact email. You need the internal name of the person column (not its display name) and the correct email sub-field, which differs slightly between connectors.
What You'll Need
- A Power Automate flow with a SharePoint Get items action or a Dataverse List rows action (the two most common connectors that support person columns).
- The internal name of the person column. In SharePoint, open the list settings and look at the column URL, or use Get columns; in Dataverse, use the logical name (often lowercase, e.g.
ownerid). - The exact email address you want to filter on, ideally stored in a variable or taken from a previous step so you can reuse it.
- Basic familiarity with OData filter syntax (single quotes around text values, no quotes around numbers).
Step-by-Step
- Identify the connector and the person column. In SharePoint, person columns are usually named like
Author,Editor, or a custom column such asAssignedTo. In Dataverse, person columns are lookups to the User or Contact table. Write down the internal/logical name; the display name (with spaces) will not work in a filter query. - Add the list action. In your flow, add Get items (SharePoint) or List rows (Dataverse). Point it at your site/list or table.
- Open the Filter Query field. In Get items, click Show advanced options to reveal Filter Query. In List rows, the field is called Filter rows.
- Enter the filter expression. Use the pattern
InternalName/Email eq 'address@domain.com'. For SharePoint person columns the sub-property isEmail(capital E). For Dataverse user lookups the sub-property is usuallyEMail(capital E and M) — for example_ownerid_value eq 'guid'is used for the ID, but to filter by email you typically need to expand the lookup or filter on the related table. If the connector does not support filtering directly on the expanded email, retrieve the user's GUID first with Get user profile or a Dataverse List rows on the User table, then filter the main list by the lookup ID. - Use a dynamic value instead of hard-coding. Replace the literal address with an expression or dynamic content wrapped in single quotes, e.g.
AssignedTo/Email eq '@{variables('TargetEmail')}'. Keep the single quotes outside the expression. - Test with a small run. Save the flow and run it manually. Check the run history: open the list action and inspect the Outputs to see how many items were returned. If zero, the filter syntax or the internal name is likely wrong.
- Handle case sensitivity. OData string comparisons are generally case-insensitive for email in SharePoint, but some connectors are stricter. If results are inconsistent, normalise the email to lowercase before comparing, or use a Condition after retrieval as a fallback.
- Add a fallback filter if needed. If the person column can contain multiple people, filtering by email returns rows where any of the people match. To require an exact single match, add a Condition or use Filter array after the list action to check the length of the person array.
Common Mistakes
- Using the display name instead of the internal name. A column shown as “Assigned To” is often stored as
AssignedToorAssigned_x0020_To. The filter query needs the internal name exactly. - Wrong sub-property casing. SharePoint uses
/Email; Dataverse lookups often use/EMail. Mixing them returns zero rows. - Missing single quotes. Text values in OData must be wrapped in single quotes:
eq 'jane@contoso.com', noteq jane@contoso.com. - Filtering a lookup by email directly in Dataverse. Many Dataverse list actions cannot filter on an expanded lookup's email in a single query. Retrieve the user's ID first, then filter by the lookup GUID field (e.g.
_ownerid_value eq '...'). - Assuming the filter is case-sensitive. It usually is not, but if you see odd results, normalise the address.
- Forgetting that person columns can be multi-value. A multi-person column matches if any person's email matches; it does not guarantee a single result.
Tips
- Store the target email in a Compose or Initialize variable action so you can reuse it and avoid typos.
- Use Get columns (SharePoint) or the table metadata in Dataverse to confirm internal names rather than guessing.
- When debugging, start with a filter on a simple text column to confirm the query syntax works, then swap in the person column.
- If you need to filter by display name instead of email, use the
/Titlesub-property on SharePoint person columns (the display name is stored there). - Keep the filter query as short as possible; complex nested filters are harder to debug and slower to run.
Troubleshooting
If the flow returns no items, first check the run history and open the list action's outputs. A 400 error usually means a syntax problem — check quotes and the sub-property name. A 200 with an empty array means the filter ran but matched nothing: verify the internal column name, the email address, and whether the person column is actually populated. If you are filtering a Dataverse lookup, confirm you are using the correct GUID field and that the user exists in the same environment. If the flow works in test but fails on a schedule, check that the email variable is populated at runtime. As a last resort, remove the filter query, retrieve all items (within the connector's limits), and use Filter array to match on the person's email — slower but easier to inspect.
Frequently Asked Questions
Can I filter a SharePoint person column by email in Get items?
Yes. Use the internal column name followed by /Email and the address in single quotes, e.g. AssignedTo/Email eq 'jane@contoso.com'.
Why does my Dataverse filter return nothing?
Dataverse person columns are lookups. Filtering on the expanded email often is not supported directly; retrieve the user's ID first and filter on the lookup GUID field instead.
Is the filter case-sensitive?
In most connectors it is not, but behaviour can vary. Normalise the email to lowercase if you see inconsistent matches.
How do I filter by display name instead of email?
For SharePoint person columns, use the /Title sub-property, which holds the display name.
Can I use a variable in the filter query?
Yes. Wrap the dynamic value in single quotes: Person/Email eq '@{variables('Email')}'.
What if the person column allows multiple selections?
The filter matches rows where any selected person's email matches. Add a Condition or Filter array if you need exactly one match.