UNPKG

spws

Version:

SharePoint Web Services Wrapper

22 lines (21 loc) 791 B
import { SpwsResponse } from "../../types"; interface Operation extends SpwsResponse { data: { success: boolean; }; } /** * Adds the user to the specified group * @param userLoginName A string that contains the user name (DOMAIN\User_Alias) of the user. * @param groupName A string that contains the name of the group. * @link https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-services/ms772683(v=office.12) * @example * ``` * const res = await addUserToGroup("dev\\john.smith", "Site Owners") * ``` */ declare const addUserToGroup: (userLoginName: string, groupName: string, { webURL, }?: { /** The SharePoint webURL */ webURL?: string | undefined; }) => Promise<Operation>; export default addUserToGroup;