SharePoint Security

0

The code I am attaching will do the following things

  1. Get all users from the site
  2. Check if User is Site Admin
  3. Get all groups the user belongs to
  4. Details page of user on click of user name
  5. Navigate to group on click of group name

I have used datatables.net to enable the following

  1. Default UI of datatable.net
  2. Search
  3. Sort
  4. Export to CSV, Excel, PDF

This is a working code for Office 365

Code : sharepoint security

In addition to the above code, the following JavaScript library files will be required:

Reference URL (you may really need to check these to know how it works):

https://www.datatables.net/download/packages

https://www.datatables.net/extensions/buttons/

https://datatables.net/extensions/buttons/examples/html5/pdfImage.html

https://datatables.net/reference/button/

sharepoint security

 

Leave a Reply