This file contains hidden or 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
# Alexander Holmeset | |
# Version 1.0 | |
# This script is designed to extract sensitivity labels from files in SharePoint document libraries in one tenant and apply them to the same files in another tenant. | |
# It uses Microsoft Graph API to interact with SharePoint and sensitivity labels. | |
# The script connects to two different tenants using app registrations and retrieves files from SharePoint document libraries. | |
# App regstiration permissions source: Directory.Read.All, Files.Read.All, Sites.Read.All and InformationProtectionPolicy.Read.All | |
# App regstiration permissions target: Directory.Read.All, Files.ReadWrite.All, Sites.Read.All and InformationProtectionPolicy.Read.All | |
# Parameters for the app registration source tenant | |
$ClientId = "xxxxxxx" |
This file contains hidden or 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
#Threshold for the last activity | |
$threshold = 50 | |
$CopilotLicenseGroupID = "xxxxx-xxx-xxxx-xxx" | |
# Connect to Microsoft Graph using the Tenant ID and Client Secret Credential | |
Connect-MgGraph -identity |
This file contains hidden or 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
#Requires -Modules Microsoft.Graph | |
# Install the module. (You need admin on the machine.) | |
# Install-Module Microsoft.Graph | |
# Set Static Variables | |
$TenantID="Enter your Tenant ID" | |
$LogicAppDisplayname = "CopilotActivityCheck" | |
# Define dynamic variables | |
$ServicePrincipalFilter = "displayName eq '$($LogicAppDisplayname)'" |
This file contains hidden or 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
#Requires -Modules Microsoft.Graph | |
# Install the module. (You need admin on the machine.) | |
# Install-Module Microsoft.Graph | |
# Set Static Variables | |
$TenantID="Enter your Tenant ID" | |
$LogicAppDisplayname = "NewCopilotUserEmail" | |
# Define dynamic variables | |
$ServicePrincipalFilter = "displayName eq '$($LogicAppDisplayname)'" |
This file contains hidden or 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
{ | |
"definition": { | |
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", | |
"contentVersion": "1.0.0.0", | |
"triggers": { | |
"Recurrence": { | |
"type": "Recurrence", | |
"recurrence": { | |
"interval": 3, | |
"frequency": "Month", |
This file contains hidden or 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
{"text":"Hello World"} |
This file contains hidden or 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
base64ToBinary(variables('audiostring')) |
This file contains hidden or 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
outputs('http_3')?['body/$content'] |
NewerOlder