spws
Version:
SharePoint Web Services Wrapper
23 lines (22 loc) • 820 B
TypeScript
import { SpwsResponse, User } from "../../types";
interface Operation extends SpwsResponse {
data: User[];
}
/**
* Returns information about the collection of users in the specified group.
* @link https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-services/ms772554(v=office.12)
* @example
* ```
* // Get users from the group named Site Owners
* const res = await getUserCollectionFromSite("Site Owners")
*
* // Get users from another site
* const res = await getUserCollectionFromSite("Site Owners", { webURL: "/sites/other" })
*
* ```
*/
declare const getUserCollectionFromGroup: (groupName: string, { webURL, }?: {
/** The SharePoint webURL */
webURL?: string | undefined;
}) => Promise<Operation>;
export default getUserCollectionFromGroup;