Skip to content

Commit 096a50d

Browse files
authored
fix: remove space in findUsers query (#3267)
1 parent 8036278 commit 096a50d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mgt-components/src/graph/graph.user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ export const findUsers = async (graph: IGraph, query: string, top = 10, userFilt
420420
const encodedQuery = `${query.replace(/#/g, '%2523')}`;
421421
const graphBuilder = graph
422422
.api('users')
423-
.search(`"displayName:${encodedQuery}" OR "mail:${encodedQuery}" OR "userPrincipalName: ${encodedQuery}"`)
423+
.search(`"displayName:${encodedQuery}" OR "mail:${encodedQuery}" OR "userPrincipalName:${encodedQuery}"`)
424424
.header('ConsistencyLevel', 'eventual')
425425
.count(true);
426426
let graphResult: CollectionResponse<User>;

0 commit comments

Comments
 (0)