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

PIM Manager scripts

Set-PimManagerAccess

Set who may use PIM Manager

Part of the PIM Manager release - not a standalone download; it runs via the product's own install command or the updater.

Purpose

Sets who may use PIM Manager and at what level (Reader, Admin, SuperAdmin or Delegated) by writing the ManagerAccess setting in the environment's store: it merges with what is stored, refuses a model with no SuperAdmin, and reads the result back.

When to run it

To give the first SuperAdmin access to a new environment, or to add, change or (with -Replace) remove Manager users when the Manager itself cannot be used for it. PIM Manager names this script when nobody has access yet.

Who may run it

KindRoleScopeWhy
otherMember of the environment's SQL admin group (grp-pim-sql-admins), signed in through the browser or the Invardia Support app session (no Azure CLI)the environment's SQL databaseThe access model lives in pim.Settings; only the SQL admin group may write it. With -UseSignedInAccount the signed-in az user is used (asserted to be a user in -TenantId). Alternatively the admin application's certificate (-AdminAppId + -AdminCertThumbprint).

What it changes

WhereActionWhatPermission / roleScopeWhyUndo
Environment SQL databaseupdatepim.Settings row 'ManagerAccess' (the list of identity = role entries: Reader, Admin, SuperAdmin, Delegated)this environment's PIM ManagerDecides who may use PIM Manager and at what level. Merged with what is stored, keyed on identity; -Replace drops entries that are not in the input. A model with no SuperAdmin is refused unless -AllowNoSuperAdmin.Run the script again with the previous entries (and -Replace to drop what was added).
Local file (only with -OutFile)createthe result file named by -OutFile (ok, reason, installed / replaced / removed identities)this computerFor a caller that runs the script unattended and reads the outcome.Delete the file.

What it only reads

  • pim.Settings 'ManagerAccess' (the stored model; a read failure stops the script)
  • pim.Settings 'License' (only when a NEW Delegated user is added -- scoped Manager users need a Pro licence)

Parameters

ParameterRequiredDefaultWhat it does
-TenantIdyesThe environment's tenant id.
-SqlServerFqdnyesThe environment's SQL server (<name>.database.windows.net).
-SqlDatabasenoPimPlatformThe environment's database.
-UseSignedInAccountnofalseReach the store as the signed-in az user (a member of the SQL admin group). The recommended way.
-AdminAppIdnoAutomation: the admin application's client id (with -AdminCertThumbprint) instead of -UseSignedInAccount.
-AdminCertThumbprintnoAutomation: the thumbprint of the admin application's certificate in the local machine store.
-AdminSecretnoLegacy automation only: a client secret for -AdminAppId. Not for customer use; prefer -UseSignedInAccount.
-AccessJsonyesA JSON file path or raw JSON: { "managerAccess": [ { "identity": "<UPN, object id or group>", "role": "Reader|Admin|SuperAdmin|Delegated" } ] }.
-ReplacenofalseReplace the stored list instead of merging; the entries it drops are listed first.
-AllowNoSuperAdminnofalseAllow a model with no SuperAdmin (only when the container settings still carry one).
-OutFilenoWrite the outcome as JSON to this file.

Preview with -WhatIf

Validates the input, reads the stored model, prints the resulting model (entries, SuperAdmin count, what -Replace would remove) and 'What if: Performing the operation "write N entr(y/ies): <identity>=<role>, ..." on target "pim.Settings['ManagerAccess'] in <server>/<database>"', then stops: nothing is written.

Undo

Run the script again with the previous list and -Replace. The previous list is printed as 'already stored' at the start of every run.

Network

It connects to: login.microsoftonline.com (sign-in / token for Azure SQL), <server>.database.windows.net:1433

How it runs

Part of the PIM Manager release - not a standalone download; it runs via the product's own install command or the updater.

Release 3.0.70

Every script, identity and permission for your security review: PIM Manager

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