UNPKG

spws

Version:

SharePoint Web Services Wrapper

23 lines (22 loc) 791 B
import { UserInformation, SpwsResponse } from "../../types"; interface Operation extends SpwsResponse { data: UserInformation; } /** * Returns information about the specified user from the User Information List * @param ID The user ID * @link https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ff521587(v=office.14) * @example * ``` * // Get user from the current site * const res = await getUserInformation("1"); * * // Get user from another site * const res = await getUserInformation("1", { webURL: "/sites/other" }); * ``` */ declare const getUserInformation: (ID: string, { webURL, }?: { /** The SharePoint webURL */ webURL?: string | undefined; }) => Promise<Operation>; export default getUserInformation;