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