Added UserID in getUsers() REST endpoint
MODIFY
src/server/rest/v1/service/UserService.ts
src/server/rest/v1/service/UserService.ts
@@ -1382,6 +1382,7 @@ export default class UserService {
search: filteredRequest.Search,
issuer: filteredRequest.Issuer,
siteIDs: (filteredRequest.SiteID ? filteredRequest.SiteID.split('|') : null),
+ userIDs: (filteredRequest.UserID ? filteredRequest.UserID.split('|') : null),
roles: (filteredRequest.Role ? filteredRequest.Role.split('|') : null),
statuses: (filteredRequest.Status ? filteredRequest.Status.split('|') : null),
excludeSiteID: filteredRequest.ExcludeSiteID,

MODIFY
src/server/rest/v1/service/security/UserSecurity.ts
src/server/rest/v1/service/security/UserSecurity.ts
@@ -51,6 +51,9 @@ export default class UserSecurity {
if (Utils.objectHasProperty(request, 'SiteID')) {
filteredRequest.SiteID = sanitize(request.SiteID);
}
+ if (Utils.objectHasProperty(request, 'UserID')) {
+ filteredRequest.UserID = sanitize(request.UserID);
+ }
if (Utils.objectHasProperty(request, 'Role')) {
filteredRequest.Role = sanitize(request.Role);
}

MODIFY
src/types/requests/HttpUserRequest.ts
src/types/requests/HttpUserRequest.ts
@@ -33,6 +33,7 @@ export interface HttpUsersRequest extends HttpDatabaseRequest {
WithTag?: boolean;
Search: string;
SiteID: string;
+ UserID: string;
Role: string;
Status: string;
ErrorType?: string;

Added UserID in getUsers() REST endpoint