searchGroups
import { searchGroups } from "@esri/arcgis-rest-portal";
//
searchGroups('water')
.then(response) // response.total => 355
Search a portal for groups. See the REST Documentation for more information.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
search Required | string | ISearchOptions | SearchQueryBuilder |
A string or RequestOptions object to pass through to the endpoint. |
Returns
A Promise that will resolve with the data from the response.
Property | Type | Notes |
---|---|---|
number | ||
number | ||
string | ||
IItem[] | IGroup[] | IUser[] | IItem | IGroup | IUser | ||
number | ||
number | ||
Optional |
{
|
Aggregations will only be present on item searches when |
Optional | function() : Promise<ISearchResult<IItem | IGroup | IUser>> |
Function defined in packages/arcgis-rest-portal/src/groups/search.ts:25