searchGroups

searchGroups

searchGroups(searchstring | ISearchOptions | SearchQueryBuilder): Promise<ISearchResult<IGroup>>

Search a portal for groups. See the REST Documentation for more information.

Use dark colors for code blocksCopy
    
1
2
3
4
import { searchGroups } from "@esri/arcgis-rest-portal";

searchGroups('water')
  .then(response) // response.total => 355
Parameters
ParameterTypeNotes
search
string | ISearchOptions | SearchQueryBuilder

A string or RequestOptions object to pass through to the endpoint.

Returns 
Promise<ISearchResult<IGroup>>

A Promise that will resolve with the data from the response.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.