Connectors concerned
Confluence, Figma, GitLab, Google Workspace, HubSpot, Jira, Microsoft Teams, Monday.com, OneNote, Outlook, Power BI, Salesforce and SharePoint.Before you start
You need:- A platform super admin access token. It lists every workspace and manages the security of each. Keep it in an environment variable, never in a file you share.
- The URL of the database holding the workspace secrets. It is the permissions storage, configured by
PERMISSIONS_STORAGE_DRIVERandPERMISSIONS_STORAGE_HOST(see Environment variables). The script only renames secrets and never reads their values. - Node.js 20 or later, on a machine that reaches the API and that database.
- The scripts of the release. They are in the
scripts/folder of theprismeai-workspacessources of the release you upgrade to:grant-app-authorizations.mjsandmigrate-secret-app-namespace.mjs. Run them from the root of those sources, which holds theworkspaces/folder they read. If you do not have access to these sources, ask Prisme.ai support for the scripts of your release.
--apply to make the change. Each can be run again: what is already done is skipped.
Upgrade
1
Deploy the platform services
Bump the services to the target release and deploy them, as in Updates → Upgrade the platform services. Do not update the products yet.
2
List the installed connectors
instances.json and ends with the number of workspaces read and of errors. Rerun it if it reports errors. Both scripts take this file.3
Move the stored refresh tokens
Simulate first:Use
--driver mongo for a MongoDB permissions storage. Each WOULD MOVE line is a token that will be renamed, and the last line gives the totals. When they match what you expect, run the same command with --apply.4
Update the products
Pull the products from the Platform workspace, as in Updates → Update the products. This publishes the new versions of the connectors, which declare the roles they need.
5
Grant the installed connectors their roles
Simulate first:Each
WOULD GRANT line is a role an installed connector will be granted. Run the same command with --apply. The script grants each instance what an owner would grant from Imports, and nothing else.6
Run the token move a second time
--apply.Check the result
- Run the grant simulation again: it should end with
0 to grant. - In Builder, open a workspace that installs one of these connectors, then Imports: the connector is no longer shown as pending.
- A member connected to one of these connectors sees their scheduled synchronizations run again.
What the scripts leave aside
Each script prints the instances or tokens it does not change, with a reason. Nothing is changed for them.If a step was missed
- A member connected between the product update and the grant. Their connection works for what they do themselves, but no token was stored for the scheduled synchronizations. They connect again once the grant is done.
- A workspace installs one of these connectors after the upgrade. An owner grants it from Imports right after the installation, as for any app that asks for authorizations.