sp-dev-fx-webparts/samples/react-securitygrid
Hugo Bernier 242b8e5f9b Added telemetry to every README.md file 2020-04-04 02:18:47 -04:00
..
config Update react security grid (#490) 2018-04-27 18:19:09 +03:00
src Added back SpSecurity.scss (#906) 2019-07-11 15:50:31 +03:00
typings Dev (#365) 2017-12-01 16:38:51 +02:00
.editorconfig Dev (#365) 2017-12-01 16:38:51 +02:00
.gitattributes Dev (#365) 2017-12-01 16:38:51 +02:00
.gitignore Dev (#365) 2017-12-01 16:38:51 +02:00
.npmignore Dev (#365) 2017-12-01 16:38:51 +02:00
.yo-rc.json Dev (#365) 2017-12-01 16:38:51 +02:00
README.md Added telemetry to every README.md file 2020-04-04 02:18:47 -04:00
gulpfile.js Update react security grid (#490) 2018-04-27 18:19:09 +03:00
package-lock.json Added back SpSecurity.scss (#906) 2019-07-11 15:50:31 +03:00
package.json Added back SpSecurity.scss (#906) 2019-07-11 15:50:31 +03:00
tsconfig.json Update react security grid (#490) 2018-04-27 18:19:09 +03:00
tslint.json Add tslint at the root of each SPFx project (#394) 2018-01-08 15:58:48 +02:00

README.md

page_type products languages extensions
sample
office-sp
javascript
typescript
contentType technologies platforms createdDate
samples
SharePoint Framework
react
12/1/2017 12:00:00 AM

SPFx React Grid

Summary

React-securitygrid is an SPFx webpart that uses React and Office-UI-Fabric to render a grid showing which users have access to which lists/libraries/folders/files on a Web as shown here:

config panel

Empty libraries are displayed with a black folder icon, those with items are displayed with a white folder. The user can expand a list or library by clicking on the desired row. For deeply nested folders the Title column can be resized by drag and drop. The display shows a 'filled-in' circle if the user has the selected permission to the given list, library, file or folder. (NOTE:The grid does not currently take into account access give via membership in an active directory group). The user must have permissions to access lists and enumerate permissions in order to view the grid.

The user can change the permission being tested by clicking the Permission in the command bar and selecting a new Permission:

permission panel

The user can change which users are being shown in the grid by selecting the users button in the command bar and selecting a desired users:

Select users

The user can change which lists are being shown in the grid by selecting the lists button in the command bar and selecting a desired lists:

Select Lists

The user can change alternate between displaying user names and emails selecting the Show Email/Show Name button in the command bar and selecting the desired option:

Select Mode

The the first configuration panel of the webpart is shown below:

config panel

Permission Settings

The Permission Type dropdown sets the default permission to check.The 'Let user select Permission' checkbox determines whether the user can change this permission.

User Settings

The Show Email or Name Toggle determines whether the name or email is displayed by default. The Show Security Groups checkbox determines whether SharePoint Security groups are included in the grid. The Show Users checkbox determines whether Users are included in the grid. The Let Users Select users checkbox determines whether Users can filter the selected users in the grid.

Display Settings

The Initial Title column width determines the initial width of the Title column(it can be resized).

The second configuration panel allows the owner to configure the List Settings List Configuration panel

List Settings

The Show Hidden Lists checkbox determines whether Hidden lists are displayed. The Show System Lists checkbox determines whether System Lists (Catalogs) are included in the grid. The Show Users checkbox determines whether Users are included in the grid. The Let Users Select lists checkbox determines whether Users can filter the selected lists in the grid.

Select Lists

The Include/Exclude Selected lists Toggle determines whether the lists selected are to be included or excluded.

The admin can select lists and libraries below to have them included/excluded from the grid

Notes

This is a port of an Angular 1.3 SharePoint hosted App at https://github.com/russgove/SPSecurity.

Used SharePoint Framework Version

version

Applies to

Prerequisites

React, Office-UI-Fabric, sp-pnp-js, lodash

Solution

Solution Author(s)
react-securitygrid Russell Gove

Version history

Version Date Comments
1.0.0.1 April 25, 2018 Update to SPFx 1.4.1
1.0.0.0 December 31, 2016 Initial version

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • Clone this repository
  • in the command line run:
    • npm install
    • gulp serve