Skip to content

Commit

Permalink
fix: remove space in findUsers query (#3267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnickii authored Aug 1, 2024
1 parent 8036278 commit 096a50d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mgt-components/src/graph/graph.user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}" OR "userPrincipalName: ${encodedQuery}"`)
.search(`"displayName:${encodedQuery}" OR "mail:${encodedQuery}" OR "userPrincipalName:${encodedQuery}"`)
.header('ConsistencyLevel', 'eventual')
.count(true);
let graphResult: CollectionResponse<User>;
Expand Down

0 comments on commit 096a50d

Please sign in to comment.