getItemGroups

getItemGroups

getItemGroups(idstring, requestOptions?IRequestOptions): Promise<IGetItemGroupsResponse>

Lists the groups of which the item is a part, only showing the groups that the calling user can access. See the REST Documentation for more information.

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

getItemGroups("30e5fe3149c34df1ba922e6f5bbf808f")
  .then(response)
Parameters
ParameterTypeNotes
id
string

The Id of the item to query group association for.

requestOptions
IRequestOptions

Options for the request

Returns 
Promise<IGetItemGroupsResponse>

A Promise to get some item groups.

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