spws
Version:
SharePoint Web Services Wrapper
23 lines (22 loc) • 904 B
TypeScript
import { Group, SpwsResponse } from "../../types";
interface Operation extends SpwsResponse {
data: Group[];
}
/**
* Returns information about the collection of groups of which the specified user is a member
* @param userLoginName The user login name including the domain
* @link https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-services/ms772552(v=office.12)
* @example
* ```
* // Get groups for current site
* const res = await getGroupCollectionFromUser("dev\\john.smith");
*
* // Get groups for different site
* const res = await getGroupCollectionFromUser("dev\\john.smith", { webURL: "/sites/other "});
* ```
*/
declare const getGroupCollectionFromUser: (userLoginName: string, { webURL, }?: {
/** The SharePoint web URL */
webURL?: string | undefined;
}) => Promise<Operation>;
export default getGroupCollectionFromUser;