portalSearchGroupMembers
Search for members of a group.
The groupId is specified via a group predicate.
Any term predicate will be re-mapped to name.
The backing API is very limited in what it returns so this method executes the search and then tries to fetch the user object directly. This is a bit slower but provides a more information. Even in this case, private users may not be returned, and so we have a default user that is returned in those cases.
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| query Required | IQuery | ||
| options Required | IHubSearchOptions |
Returns
| Property | Type | Notes |
|---|---|---|
| boolean |
Can more results be fetched? |
|
| function() : Promise<IHubSearchResponse<>> |
Function that fetches the next page of results |
|
| [] |
Array if results |
|
| number |
Total number of matches for the query |
|
| Optional | IHubAggregation[] |
Array of requested aggregations |
| Optional | Kilobyte |
The length of the query string that was just executed in the search, measured in kilobytes |
| Optional | IMessage[] |
Array of messages / warnings |
Function defined in packages/common/src/search/_internal/portalSearchGroupMembers.ts:37