getItemGroups
FunctiongetItemGroups(id: string, 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.
import { getItemGroups } from "@esri/arcgis-rest-portal";
getItemGroups("30e5fe3149c34df1ba922e6f5bbf808f")
.then(response)
Parameters
Parameter | Type | Notes |
---|---|---|
id | string | The Id of the item to query group association for. |
request | IRequestOptions | Options for the request |
Returns
Promise<IGetItemGroupsResponse>
A Promise to get some item groups.