This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-PnPMicrosoftGraph -Scopes "Group.ReadWrite.All","User.Read.All" | |
$group = New-PnPUnifiedGroup -DisplayName "xxx" -Description "xxx" -MailNickname "xxx" | |
-Members "user@tenant.onmicrosoft.com" -IsPrivate | |
Connect-PnPOnline $group.SiteUrl | |
# Here you would normally apply a Provisioning Template to create lists, libraries, web parts etc. | |
# based on a "template" site. Instead, I just want to show placing a couple web parts in a | |
# 2-column section to show how that works: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$me = Get-Credential | |
Import-Module AzureADPreview | |
Connect-AzureAD -Credential $me | |
# Create the new setting | |
$template = Get-AzureADDirectorySettingTemplate | Where-Object {$_.DisplayName -eq "Group.Unified"} | |
$setting = $template.CreateDirectorySetting() | |
$setting["UsageGuidelinesUrl"] = "http://www.microsoft.com/" | |
$setting["ClassificationList"] = "Secret, Confidential, Internal, Public" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.IdentityModel.Clients.ActiveDirectory; | |
using Microsoft.SharePoint.Client; | |
using System.Security.Cryptography.X509Certificates; | |
public static class csomHelper { | |
private static string ClientId = "<fill in app ID>"; | |
private static string Cert = "myCert.pfx"; // Fill in name of your cert file and upload it | |
private static string CertPassword = "<fill in cert password>"; // TODO: Explore more secure place for this | |
private static string Authority = "https://login.windows.net/<tenant>.onmicrosoft.com/"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (within a SharePoint Framework web part) | |
import { WidgetHelper } from './services/widgetHelper'; | |
// ... | |
public render(): void { | |
var helper = new WidgetHelper(this.context); | |
helper.ensureClassicPageProps(true).then (() => { | |
const element: React.ReactElement<IEventsProps > = React.createElement( | |
Events, |