@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
19 lines (18 loc) • 1.28 kB
TypeScript
/**
* This function is for automatically saving permissions from a web, list or library to list for later comparison.
* In Easy Contents, it's fired upon viewing rail function to view list permissions.
* It's also intended to be used in Pivot Tiles when clicking to view list and web permissions.
*
* It does require the list and web with the correct struture to save and then be recoverd in this webpart for comparison.
*
* So it's only going to execute in certain tenanats.
* If you see this and want to re-purpose it, update the function to suit your needs and adjust the window.location.origin check
*
* Best practice is just to update your site and list Url in strings:
* Or just create the site: SharePointAssist
* And create the list: Assists
* And add the columns listed below in the save item
"analyticsListPermissionsHistory": "PermissionsHistory",
*
*/
export declare function savePermissionHistory(analyticsWeb: string, analyticsList: string, SiteLink: any, webTitle: string, saveTitle: string, TargetSite: any, TargetList: any, itemInfo1: string, itemInfo2: string, result: string, RichTextJSON1: any, Setting: string, RichTextJSON2: any, RichTextJSON3: any, userName: string, BaseTrace: string): Promise<string | undefined>;