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

Grant-SISupportAccess

Give or remove the Invardia Support app's access to SecurityInsight

Purpose

Gives the customer's Invardia Support app the access only SecurityInsight can grant, with NO standing admin: read the SecurityInsight Key Vault, the just-in-time support grant in each product database (its signed procedures, the Support app's own database user in a read-only role -- never db_owner, never the SQL admin group -- and the customer's consent at the chosen level) and the two Azure roles the support grant uses -- or takes all of it away again with -Remove (the customer's switch-off). The earlier standing model (db_owner, SQL admin group membership, app ownership) only with -LegacyStandingAccess, which is off.

When to run it

When the customer agrees that Invardia support may help with SecurityInsight (Level troubleshoot = read, setup = also repair), and again with -Remove when support access ends.

Who may run it

KindRoleScopeWhy
azureRbacOwner or User Access Administratorthe SecurityInsight Key Vault and the install's resource groupto add / remove the Key Vault role assignment and the support grant's two roles (the request queue, the support grant job)
otherEntra admin of the Pro SQL server (member of the SQL admin group)the product databasesto install the support grant (tables, signed procedures), the Support app's own read-only database user and the consent -- and, with -Remove only, to drop that user and the consent
entraRolePrivileged Role Administratorthe SecurityInsight SQL admin group (role-assignable) -- only with -Remove or -LegacyStandingAccessto remove (or, legacy only, add) the Support app as a member; a role-assignable group's members are changed only by this role
entraRoleApplication Administrator or owner of the appthe SecurityInsight app registrations -- only with -Remove or -LegacyStandingAccessto remove (or, legacy only, add) the Support app as an owner

What it changes

WhereActionWhatPermission / roleScopeWhyUndo
Azure RBACgrantthe Support app's service principalKey Vault Reader (troubleshoot) / Key Vault Secrets Officer (setup)the SecurityInsight Key Vaultsupport reads the install's configuration pointers; setup level may repair secretsGrant-SISupportAccess -Remove
Pro SQL databasecreatethe just-in-time support grant: its tables and four signed procedures, the Support app's own database user from its client id (WITH SID, TYPE = E) in the read-only role si_support_read (metadata and health, no data), and the consent at this level -- never db_owner; with -Remove: the user and the consent are droppedeach product databasesupport gets admin only while a support session is open, at most at the consented level, for at most 8 hoursGrant-SISupportAccess -Remove
Azure RBACgrantthe Support app's service principalStorage Queue Data Message Senderthe queue si-support-requestsa support session asks for its just-in-time grant; the queue starts the support grant job, so the Support app holds no right on any jobGrant-SISupportAccess -Remove
Azure RBACremovethe Support app's service principalContainer Apps Jobs Operator (given by an earlier release)the job caj-si-support-granta right to start a job also lets its holder change what the job runs; the queue starts the job instead (removed only once the job is started by its queue)none needed: support asks through its queue
Entra groupupdateLEGACY ONLY (-LegacyStandingAccess, off): the Support app as a standing member of the SQL admin group; -Remove takes a membership awaythe group onlythe earlier standing modelGrant-SISupportAccess -Remove
Entra app registrationupdateLEGACY ONLY (-LegacyStandingAccess, off): the Support app as an owner of SecurityInsight's app registrations; -Remove takes an ownership awayApplication.ReadWrite.OwnedBythose app registrations onlythe earlier standing modelGrant-SISupportAccess -Remove

What it only reads

  • the install configuration (Key Vault, SQL server, group and app names)
  • whether the Support app is still a standing member of the SQL admin group or an owner of an app registration (said, never added again by default)

Parameters

ParameterRequiredDefaultWhat it does
-AppIdyes
-Levelno'troubleshoot'
-Removeno
-LegacyStandingAccessnothe earlier model: ALSO standing db_owner + SQL admin group membership + app ownership. OFF; only on Invardia's word.
-ConfigPathno
-ManagementAppIdno''

Preview with -WhatIf

Prints every grant, database step, membership and ownership it would add or remove; adds or removes nothing.

Undo

Run the same command with -Remove: the roles, the database user, the consent, a membership and an ownership are taken away.

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, database.windows.net, graph.microsoft.com, invardia.com, login.microsoftonline.com, management.azure.com, monitor.azure.com, outlook.office.com, outlook.office365.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/Grant-SISupportAccess.ps1 -OutFile Grant-SISupportAccess.ps1
.\Grant-SISupportAccess.ps1 -AppId <AppId>

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

SHA-256 583a312bd49990ff9973c890ef3a817d03e6be6884f5f433ec889aad11786586

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 .\Grant-SISupportAccess.ps1 -Full · Source: Grant-SISupportAccess.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