Skip to content

Instantly share code, notes, and snippets.

High resolution images referenced in Power Platform extensibility options series, published on:

@kkazala
kkazala / Grant-APIPermissions.ps1
Last active October 3, 2023 06:24
Grant-APIPermissions.ps1
Import-Module Microsoft.Graph
Import-Module PnP.PowerShell
# required permissions:
# Delegated (work or school account) AppRoleAssignment.ReadWrite.All and Application.Read.All, AppRoleAssignment.ReadWrite.All and Directory.Read.All
# get-mgcontext | select -Property scopes
# https://learn.microsoft.com/en-us/graph/api/serviceprincipal-post-approleassignments?view=graph-rest-1.0&tabs=powershell#permissions
$tenantID = ""
$spObjId = ""
@kkazala
kkazala / siteTheme.json
Last active March 16, 2023 06:58
SPFx siteTheme
// CODE:
// const theme = (process.env.NODE_ENV !== 'production')
// ? createTheme({
// palette: (window as any).__themeState__.theme
// })
// : getTheme();
// console.log(theme);
// RESULTS:
{
@kkazala
kkazala / PageViewsHeatmap.txt
Created February 23, 2023 11:22
Gallery Template for Application Insights Workbook. Displays Page views by calendar week/week day rendered as a Heatmap
{
"version": "Notebook/1.0",
"items": [
{
"type": 9,
"content": {
"version": "KqlParameterItem/1.0",
"parameters": [
{
"id": "efdcbd97-a282-49a4-97c2-0d1f3618a086",