UNPKG

spws

Version:

SharePoint Web Services Wrapper

23 lines (22 loc) 778 B
import { SpwsResponse, Group } from "../../types"; interface Operation extends SpwsResponse { data: Group[]; } /** * Returns information about the collection of groups for the current site collection. * @link https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-services/ms774594(v=office.12) * @example * ``` * // Get groups from the current site * const res = await getGroupCollectionFromSite() * * // Get groups from another site * const res = await getGroupCollectionFromSite({ webURL: "/sites/other" }) * * ``` */ declare const getGroupCollectionFromSite: ({ webURL, }?: { /** The SharePoint webURL */ webURL?: string | undefined; }) => Promise<Operation>; export default getGroupCollectionFromSite;