From 8a7cf79eaa93e8dc023a24d196bcaa721bc2b553 Mon Sep 17 00:00:00 2001 From: Hugo Bernier Date: Fri, 24 Apr 2020 00:01:50 -0400 Subject: [PATCH] Fixed telemetry Oops, updated with the wrong telemetry url --- samples/react-spupsproperty-sync/README.md | 81 ++++++++++++++-------- 1 file changed, 54 insertions(+), 27 deletions(-) diff --git a/samples/react-spupsproperty-sync/README.md b/samples/react-spupsproperty-sync/README.md index 9fa713b74..a27e2e54a 100644 --- a/samples/react-spupsproperty-sync/README.md +++ b/samples/react-spupsproperty-sync/README.md @@ -11,63 +11,90 @@ extensions: - SharePoint Framework platforms: - react - createdDate: 04/24/2020 12:00:00 AM + createdDate: 04/23/2020 12:00:00 AM --- -# "CSS in JS" with SharePoint Framework and TypeStyle +# SPUPS Property Sync ## Summary +> This component will help the administrators who are currently maintaining the user profiles in their organization. Since not all the properties from Azure are synced automatically to **SharePoint UPS**, this solution will help administrator to synchronize specific properties (default or custom) from Azure or maintained in a separate system directly to **SharePoint UPS** using property import. Below are the features +* **Property Mapping** will provide a flexible and user-friendly way to pick the properties to be synced. +* **Templates** can be generated based on the '_Property Mapping_'. +* Download the generated templates in both **CSV** & **JSON** format. +* **User selection** to allow you to update only the users whose properties are changed or yet to be updated. +* **User selection** method will allow the admin to update both + * **Manually** entered properties or which are maintained in a separate system + * Properties from **Azure AD** +* **Bulk Sync** will allow the admin to upload the data using the templates generated. They can also use this templates as a base for exporting the data from other system and then feed them here to update the properties. +* **Access control** based on **SharePoint Group**, not all the users can access the applictaion. +* **Anytime access** to the template files generated with different property set and the files uploaded for bulk update. +* Separate section to check the **status** of the property update. **Detailed status** on each property and also display the overall status. +* **Azure Function** to handle the property update. **PnPPowershell** is used in Azure Function. +* The application supports **SPA**. -The web part demonstrates the usage of "CSS in JS" pattern with SharePoint Framework. "CSS in JS" is implemented using [TypeStyle](https://typestyle.github.io/) library. Read more in [the blog post here](https://spblog.net/post/2020/04/22/styling-sharepoint-framework-components-with-css-in-js-approach). +> **_Note_**: All the supporting lists were created when the web part is loaded for the first time. Whenever the web part is loaded, the supported lists were checked whether it exists or not. -![picture of the web part in action](assets/dynamic-styles.gif) +## Properties -## Used SharePoint Framework Version +1. **Select a library to store the templates**: A document library to store all the templates generated and also the data files uploaded for bulk sync. -![1.10.0](https://img.shields.io/badge/version-1.10.0-green.svg) +2. **Azure Function URL**: Azure function URL to run the property update silently. + +3. **Use Certificate for Azure Function authentication**: The video mentioned below to setup Azure Function has different options. This setting will decide whether to use the certificate or stored credentials to communicate with SharePoint. + +4. **Date format**: Date format to be used across the entire application. Used _**momentJS**_. + +5. **SharePoint Groups**: Only the users from the configured SharePoint Groups and Site Administrator shall be allowed access. + +6. **Use page full width**: This is used when the web part is added to a site page where it has to use full width. + +> **_Note_**: Only the Site Administrator is allowed to update the application properties. + +## Preview +![SPUPS-Property-Sync](./assets/SPUPS-Sync.gif) + +## Used SharePoint Framework Version +![drop](https://img.shields.io/badge/version-GA-green.svg) ## Applies to * [SharePoint Framework](https:/dev.office.com/sharepoint) * [Office 365 tenant](https://dev.office.com/sharepoint/docs/spfx/set-up-your-development-environment) +## Prerequisites + +> **@microsoft/generator-sharepoint - 1.10.0** + ## Solution Solution|Author(s) --------|--------- -react-css-in-js-typestyle|[@Sergei Sergeev](https://twitter.com/sergeev_srg) - [Mastaq](https://mastaq.com/) +SPUPS Property Sync | Sudharsan K.([@sudharsank](https://twitter.com/sudharsank), [Know More](http://windowssharepointserver.blogspot.com/)) ## Version history Version|Date|Comments -------|----|-------- -1.0|April 24, 2020|Initial release +1.0.0.0|Apr 23 2020|Initial release ## 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 build` - * `gulp bundle --ship` - * `gulp package-solution --ship` -* add the webpart to your tenant app store -* add the app to a SharePoint site and then add the webpart to the page +- Clone this repository +- in the command line run: + - `npm install` + - `gulp bundle --ship && gulp package-solution --ship` +- Add the .sppkg file to the app catalog and add the **Page Comments** web part to the page. +- **Azure Function** has to be setup for property update. **The actual powershell is uploaded in the assets folder**. Follow the steps explained in the below video by [Paolo Pialorsi](https://www.youtube.com/watch?v=plS_1BsQAto&list=PL-KKED6SsFo8TxDgQmvMO308p51AO1zln&index=2&t=0s). -## Features +#### Local Mode +This solution doesn't work on local mode. -This Web Part illustrates the following concepts on top of the SharePoint Framework: +#### SharePoint Mode +If you want to try on a real environment, open: +[O365 Workbench](https://your-domain.sharepoint.com/_layouts/15/workbench.aspx) -* "CSS in JS" pattern adopted to SharePoint Framework -* Theme support using SharePoint Framework's `ThemeProvider` -* Dynamically reacting to theme changes without affecting performance -* React hooks - - +