Skip to content
InvardiaInvardia
Why InvardiaProductsFeaturesPricingCommunity
Docs
All documentation
Product documentationPIM ManagerSecurityInsight
SettingsPIM Manager settingsSecurityInsight settingsEntra Policy Suite settings
ScriptsPIM Manager scriptsSecurityInsight scriptsEntra Policy Suite scriptsInvardia scripts
Error codesPIM Manager error codesSecurityInsight error codes
API and MCPPIM Manager APIPIM Manager MCP toolsSecurityInsight APISecurityInsight MCP tools
SecurityPIM Manager security packSecurityInsight security packEntra Policy Suite security pack
Network and designPIM Manager network guidesPIM Manager command wizardNetwork egressDesign your installationCalculate your cost
SupportSetup scriptsRemote support access
Search the docs
SupportAboutContactBook a demoCustomer portalDesign your installationFree Pro trial

SecurityInsight scripts

Set-SIInstallTenant

Record the tenant's name for the web app's header

Purpose

Reads the tenant's own name and onmicrosoft.com domain from Entra ID (Microsoft Graph) and records them in the Pro database, so the web app's header shows the tenant by name.

When to run it

Normally never: setup runs it when SecurityInsight is installed. Run it for an install built another way, or after the tenant was renamed.

Who may run it

KindRoleScopeWhy
otherany signed-in account of the tenant (an application needs Directory.Read.All or Organization.Read.All)the tenantto read the organization's name
otherthe install identity (service principal + certificate)the Pro databaseto write cfg.InstallState

What it changes

WhereActionWhatPermission / roleScopeWhyUndo
Pro SQL databaseupdatecfg.InstallState: Tenant (name, domain, set by)the Pro databasethe web app's header shows the tenant by namerun it again, or set "Tenant name (override)" on the Settings page

What it only reads

  • Microsoft Graph: the organization (name, verified domains)

Parameters

ParameterRequiredDefaultWhat it does
-NamenoThe tenant's name to record without asking Microsoft Graph.
-InitialDomainnoThe tenant's onmicrosoft.com domain to record without asking Microsoft Graph.
-GraphTokennoA Microsoft Graph access token to read the organization with (default: the guided install's sign-in, else setup's own sign-in).
-SetByno'setup'Who records it (shown in the web app's tooltip).
-Serverno[string]$global:SI_ProSqlServer
-Databaseno[string]$global:SI_ProSqlDatabase
-AppIdno[string]$global:SI_SPN_AppId
-TenantIdno[string]$global:SI_SPN_TenantId
-CertThumbprintno[string]$global:SI_SPN_CertThumbprint
-StorenoThe database, already open (New-SIProSettingsStore -Invoke ...): a test's fake, or a caller's store.
-GraphGetnoReturns the GET /organization response: a test's fake (no Graph call is made then).
-PassThruno

Preview with -WhatIf

Says what would be read and where it would be recorded; neither Microsoft Graph nor the database is opened.

Undo

Run it again, or set "Tenant name (override)" on the Settings page.

Network

It connects to: *.blob.core.windows.net, *.queue.core.windows.net, *.table.core.windows.net, *.vault.azure.net, 169.254.169.254, api.loganalytics.io, api.msrc.microsoft.com, api.security.microsoft.com, api.securitycenter.microsoft.com, api.securityplatform.microsoft.com, database.windows.net, entra.microsoft.com, graph.microsoft.com, invardia.com, licenses.nuget.org, login.microsoftonline.com, management.azure.com, monitor.azure.com, nvd.nist.gov, outlook.office.com, outlook.office365.com, portal.invardia.com, storage.azure.com, vault.azure.net

Download and run

Run these lines in PowerShell: the first downloads the script into the current folder, the second runs it.

Invoke-WebRequest https://invardia.com/support/si/Set-SIInstallTenant.ps1 -OutFile Set-SIInstallTenant.ps1
.\Set-SIInstallTenant.ps1

To check the download first, compare its SHA-256 with the published one:

SHA-256 00d3eb62e9e5a28c0e64450892f207362b48c588ad0bcfbd55f003d8e888a862

Checksums: SHA256SUMS.txt · Version 3.0.79

Before you run it, compare the file's SHA-256 with its line in SHA256SUMS.txt.

Every parameter: Get-Help .\Set-SIInstallTenant.ps1 -Full · Source: Set-SIInstallTenant.ps1

Every script, identity and permission for your security review: SecurityInsight

InvardiaInvardia

See the risk. Control the access.

Products

PIM ManagerSecurityInsightEntra Policy SuiteAll featuresPricingFree 60-day Pro trialBook a demoWhy Invardia

Docs

DocumentationSearch the docsPIM Manager settingsSecurityInsight settingsPIM network guidesCommand wizardNetwork egressPIM Manager design configuratorSecurityInsight design configuratorDesign your installationCalculate your cost

Company

AboutContactCustomer portalSupportHow support worksHow updates reach youSupport in numbersSetup scriptsRemote support accessContact: info@invardia.com

Legal

Terms of saleLicence termsData processingPrivacyCookiesCompany information
© 2026 Invardia – a brand of 2LINKIT, founded and owned by Morten Knudsen · Strandvejen 21A, 6000 Kolding, Denmark · VAT DK39208032 · Contact: info@invardia.com