From f0fa2eb9692f90f5b4c9c145cd9d020ada0735d7 Mon Sep 17 00:00:00 2001 From: MichalKinas Date: Thu, 9 Nov 2023 19:00:24 +0100 Subject: [PATCH] Correct username --- .../add-permission/search-config-permission.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/content-services/src/lib/permission-manager/components/add-permission/search-config-permission.service.ts b/lib/content-services/src/lib/permission-manager/components/add-permission/search-config-permission.service.ts index 7b7e956cc21..75441e0d990 100644 --- a/lib/content-services/src/lib/permission-manager/components/add-permission/search-config-permission.service.ts +++ b/lib/content-services/src/lib/permission-manager/components/add-permission/search-config-permission.service.ts @@ -54,7 +54,7 @@ export class SearchPermissionConfigurationService implements SearchConfiguration if (this.queryProvider?.query) { query = this.queryProvider.query.replace(new RegExp(/\${([^}]+)}/g), searchTerm); } else { - query = `(username:*${searchTerm}* OR email:*${searchTerm}* OR firstName:*${searchTerm}* OR lastName:*${searchTerm}* OR authorityName:*${searchTerm}* OR authorityDisplayName:*${searchTerm}*) AND PATH:"//cm:APP.DEFAULT/*"`; + query = `(userName:*${searchTerm}* OR email:*${searchTerm}* OR firstName:*${searchTerm}* OR lastName:*${searchTerm}* OR authorityName:*${searchTerm}* OR authorityDisplayName:*${searchTerm}*) AND PATH:"//cm:APP.DEFAULT/*"`; } return query; }