diff --git a/packages/mgt-components/src/graph/graph.user.ts b/packages/mgt-components/src/graph/graph.user.ts index 5b4f76e958..8f8012c272 100644 --- a/packages/mgt-components/src/graph/graph.user.ts +++ b/packages/mgt-components/src/graph/graph.user.ts @@ -420,7 +420,7 @@ export const findUsers = async (graph: IGraph, query: string, top = 10, userFilt const encodedQuery = `${query.replace(/#/g, '%2523')}`; const graphBuilder = graph .api('users') - .search(`"displayName:${encodedQuery}" OR "mail:${encodedQuery}"`) + .search(`"displayName:${encodedQuery}" OR "mail:${encodedQuery}" OR "userPrincipalName: ${encodedQuery}"`) .header('ConsistencyLevel', 'eventual') .count(true); let graphResult: CollectionResponse;