Preview a personal table’s workspace access with the Inbound API

Compare members’ access before and after a proposed ownership change without changing the table or its permissions.

Use a personal test table to preview what would happen if it became a workspace table. The API key’s acting user needs Manage Database and unrestricted access to the active personal table.

Read the current access

Use the base URL from API Access, load the key from your secret manager, and replace 123 with the test table ID.

curl --silent --show-error --fail-with-body \
  "${NIXA_API_BASE_URL}/tables/123/promotion-context" \
  -H "X-API-Key: ${NIXA_API_KEY}"

Check the table name and the inventory in data.impact. Use data.shares to identify current shares and data.groups to check active workspace groups and their permission rules. Save the complete data.snapshotHash as NIXA_SNAPSHOT_HASH.

Preview your choices

This example assumes one current direct share. Replace 456 with its id from data.shares. Include every share ID exactly once, with retain set to true to keep it or false to remove it in the preview. Use "shares":[] for a table with no shares. Leaving groupGrants empty keeps existing group rules in the projection.

curl --silent --show-error --fail-with-body \
  --request POST "${NIXA_API_BASE_URL}/tables/123/promotion-permission-review" \
  -H "X-API-Key: ${NIXA_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data "{\"snapshotHash\":\"${NIXA_SNAPSHOT_HASH}\",\"shares\":[{\"shareId\":456,\"retain\":true}],\"groupGrants\":[]}"

To preview a group rule change, add that group’s groupId and a permissions object with all five booleans read, create, update, delete, and export. For that group’s table rules, true grants the action without a record filter and false denies the action.

Check who would gain or lose access

Compare before and after in data.members, starting with members marked changed: true. For each record action, check its level and any filters. Also check canManageSchema and canShareTable. The review covers table-level permissions and preserves restrictions on individual records and views.

If the table or its permissions changed after you read the context, fetch the latest context and update your choices before requesting a new review. Once the access is correct, you can review and apply the ownership change in Mainbase with the required permissions.

Transfer a personal table to another owner with the Inbound API

Turn a personal table into a workspace table with the Inbound API

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?