Skip to content

Function: findGroups() ​

ts
function findGroups(
   client, 
   parameters?, 
   options?
): Promise<{
[key: string]: unknown;
  groups?: object[];
  header?: string;
  total?: number;
}>;

Defined in: src/server/api/groups.ts:106

Returns groups with substrings matching a given query

Parameters ​

ParameterTypeDescription
clientClient-
parameters?{ exclude?: string; maxResults?: string; query?: string; userName?: string; }-
parameters.exclude?stringList of groups to exclude
parameters.maxResults?stringMaximum number of results to return
parameters.query?stringA String to match groups against
parameters.userName?stringUsername for the context
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; groups?: object[]; header?: string; total?: number; }>