Skip to main content
All CollectionsEnterprise org administration
Configure custom access to Packs
Configure custom access to Packs

For Enterprise only: Use custom configs to grant Pack access to certain users, block access for others, and limit Pack functionality

Updated over 2 months ago

Org admins for teams on Coda’s Enterprise plan can already control which Packs are accessible to users within their workspaces. And with custom Pack configurations, org admins have the additional ability to control:

  • Who can add connections for a Pack in the organization’s docs

  • What functionality of that Pack can be used and how users can use the Pack

  • How docs containing that Pack can be shared within their organization

For example, you might want to allow org members to only be able to view data from the Slack Pack without being able to take actions in Slack. Or maybe you want Group A to access all projects from the Jira Pack, and block Group B from accessing ProjectX.

Furthermore, you can also optionally create configs to enforce DLP-like controls over how docs containing sensitive Pack data are shared, and ensure that only the designated users or groups have the privilege to access documents containing Pack data defined in the config. For example, Admins can allow only GroupB to access the revenue reports from SFDC and also ensure that the doc with this SFDC data cannot be shared with anyone outside of the members in GroupB.

If you’re an org admin, you can create these Pack configs using JSON to only authorize access to specific parts of a Pack for a specific users (or user groups). Read on to learn all about Pack configurations!

Within this article, you’ll find...


Getting started

All Pack approvals and configurations can be managed in the Pack approvals section of your admin settings.

If you want to require admin approval for all Packs, you can toggle on the Require admin approval and policies setting, which will require org members to request approval anytime they want to add a new Pack to a doc. Org admins will then have to approve or deny each Pack request. Learn more about Pack requests and approvals here.

But if you don’t want the overhead of reviewing and approving every single Pack request, you can pre-configure how certain Packs can be used by specific members (or groups) of your organization. The section below will dive into how to create the configurations. But first - a bit of context:

Packs can be in one of the following three states within your organization:

  • Approved Packs: They can be used by any user on docs within workspaces in your organization. This includes users outside of your org.

  • Denied Packs: They can not be used by anyone. Your org users can not install or connect an account to this Pack in any doc.

  • Configured Packs: They have configurations created by the org admin that dictates who has access to these Packs and how they can be used. Users outside your org will not be able to use these Packs with their accounts on docs within workspaces in your organization. Similarly, org users will not be able to use these Packs in workspaces that are outside of your organization. Learn about these custom configurations in the following section.

The Packs approvals section of your organization will show the following tabs:

  • Packs you have configured or denied/allowed: If Pack approvals are disabled, this tab will show a list of Packs that have been configured for members in your organization to use, and Packs that are explicitly denied with a configuration. If Pack approvals are enabled, this tab will contain a list of Packs that have been approved for all users or approved with a configuration.

  • Packs used in your organization: This tab shows all Packs that have been installed the docs in your organization, or Packs with an account connected by a user in your org.

  • All Packs: This tab will show all Packs that you and users in your organization have access to. You can pre-configure or approve/deny access to any of these packs if needed.

Create custom configurations

To get started with creating Pack configurations, follow these steps:

  1. From the left panel, select Admin settings

  2. Navigate to to - or search for - the Pack approvals tab

  3. Scroll to see the list of Packs, and click the Packs used in your organization tab

  4. Find the Pack you’d like to configure. Expand to see details.

  5. To create a new configuration for the Pack, click + Add new configuration

    1. Note: When you configure a Pack, the default configuration is set to Allow all access which means any member within your organization can install the Pack and access all functionalities.

  6. To modify an existing configuration, click on the vertical three dots to the left of the the existing configuration. Then select Configuration policy settings.

From here, there are two main ways to utilize Pack configurations:

  1. Limit which users have access to a Pack (Restrict Pack users)

  2. Limit how those members can use the Pack (Restrict Pack functionality)

Check out the corresponding sections below for details on each.

Restrict Pack users

To change who can access a specific Pack, click on Edit Configuration and turn off Entire organization has permission to use this configuration.

Then you can add specific users and groups that are allowed to use this Pack below. If you use SCIM groups, you should be able to see and select your SCIM groups in auto-suggest as you type.

enterprise pack config limit users.gif

To delete a user or group from having access to Pack, you can click on the delete button (small x) next to the user or group name.

Restrict Pack to specific docs

You can also use Pack configurations to limit the Pack to only being installed in specific docs. This requires more effort to manage, but can be useful for particularly sensitive Packs.

The list of allowed docs is specified in the Pack configuration policy JSON, as an array of either doc IDs or URLs.

{
"doc": {
"sharing": {
"allowedDocs": [
"https://coda.io/d/_dabcdefhijk",
"https://coda.io/d/_dlmnopqrstu"
]
}
}
}

Restrict Pack functionality

If you want to control what aspects of the Pack is made available to specific users and groups, you can do so by editing the Pack configuration. The configuration uses a JSON schema and is flexible in supporting any policy you might want to set.

Restricting Pack components

There are two flavors to choose from when restricting Pack functionality:

  • Broad-based restrictions: You can independently choose to allow Pack components that fetch data from the third-party system (called fetches ) and Pack components that update data in the third-party’s system (called actions)

  • Granular restrictions: You can choose to enable individual formulas in the Pack (via the formulas configuration) and individual Packs tables (via the syncTables configuration).

If you choose to restrict Pack components via either of these directives, any Pack component that is not explicitly enabled will be disallowed.

If you want to control what aspects of the Pack is made available to specific users and groups, you can do so by editing the Pack configuration. The configuration uses a JSON schema and is flexible in supporting any policy you might want to set.

You can see what building blocks and OAuth scopes are used by a Pack by clicking on the open button next to the heading. You will be taken to the Packs page which has all the details about the Pack in the About and Security tabs to help you decide if you want to restrict access to any part of the Pack.

To get started easily, you can click on the Quick start menu to see the syntax for a few examples of policies that you may want to set for the Pack. You can select one of these examples and click on the Use button to apply the syntax.

1_1 (3).png

Note that the Quick Starts are meant to just provide the initial outline. You must then edit the initial outline of configuration policy with the necessary details.

Here’s a little bit about the different kinds of Quick Start policies you can configure for a Pack:

  • Allow all usage: This is the default option that allows unrestricted access to all building blocks and functionalities of a Pack.

  • Only allow buttons with private connections: Use this to only allow users to use buttons using their private accounts to take actions. Shared accounts will be disabled for all actions, and other functionality of the pack such as sync tables will also be disabled.

  • Only allow a few Packs tables: Use this to only allow users to specific authorized sync tables. All other sync tables, and other functionality of the pack such as buttons will be disabled.

  • Restrict sharing to users who can access this Pack config: Use this to restrict sharing of docs with Pack data to only the set of users that have access to the Pack. Sharing of the doc with anyone else will be disabled.

    • Note: This is a restrictive action and we only recommend using this policy on Packs that have sensitive data that shouldn’t be visible to users outside authorized SCIM groups.

  • Allow explicitly declared OAuth scopes: Use this if you want to allow specific OAuth scopes that the Pack has permission to.

For a detailed set of examples, please see our Configuration cookbook.

Restricting Pack component inputs

If you implement granular Pack component restrictions (via above), you can choose to further restrict inputs to those components in order to solve a particular use case. This is accomplished via the following

  • For Pack tables and formulas, inputs to these components can be restricted by editing the parameters component of the config.

  • For dynamic Pack tables, the dynamicUrl input can be restricted by editing the dynamicUrl component of the Pack table config.

If a configuration has a restriction on an input (parameters or dynamicUrl), then that parameter will be required and must pass validation in order for the component to work.

Please see Configuration cookbook for some examples for how this can be used.

Best practices

Any changes you make to Pack configurations will have an immediate impact on users and docs within your organization that rely on that Pack configuration.

Typically, it is desirable to test out a new Pack configuration by:

  • Creating a new configuration (not disrupting any existing configurations)

  • Sharing that new configuration with a trusted set of testers and using that Pack configuration in a doc, iterating on it as required.

  • After the policy has been deemed suitable to the use case, there are two different ways of rolling out the change, depending upon if this is a newly approved Pack or one already in use.

    • For a newly approved pack, share the newly create configuration with the users who require it

    • If there is an existing configuration already in live docs, modify the existing configuration. Then, delete the configuration used to test the policy.

Additional documentation

There are several mechanisms for getting help about writing Pack configurations:

  • Contextual editor help: In the Pack configuration editor, as you edit the JSON config there will be tooltips over the various options, autocomplete for options, and highlights for issues in the schema.

  • Schema documentation: On every Pack listing page (linked from the Coda gallery or the Pack configuration editor), the Administer tab contains a full list of JSON options for the particular pack (including the various formulas, Pack tables, and parameters).

1_1 (4).png

User experience with Pack configurations

This sections explains what members of your org will experience when encountering various aspects of Pack configurations.

When installing a Pack

When a Pack is installed, the configuration associated with that Pack (and all policies contained within) is bound to that doc until the Pack is uninstalled from the doc.

  • If the user does not have access to any Pack configurations: If a none of the existing configurations for that Pack give access to this particular user, the user will be unable to install a Pack and will be given the option to request access to a Pack.

  • If the user has access to multiple configurations: In some instances, it may be desirable to have multiple configurations for a single Pack. For example, you could have a limited Pack configuration applicable to your entire organization, and then a more open configuration for a trusted set of users. In such a case, the installing user will get a prompt similar to the one below asking them which configuration they want to bind to the Pack.

Frame 1 (3).png

Disabled Pack functionality

When an org admin restricts Pack functionality, this is exposed to the user via a number of mechanisms.

  • Disabled user experience: Coda will disable parts of the Packs experience that are incompatible with the installed Pack configuration of the doc. Members will see a message in their doc that explains the limitation.

  • Runtime errors: When an action occurs that violates the policy of a Pack configuration, Coda will return an error telling the user that the action they tried to perform violates the policies of the IT administrator.

  • Uninstalling a Pack: When an action occurs that causes the doc and Pack to become incompatible with the configuration that the Pack was installed with, the Pack will be uninstalled. For more details on when this happens, see Policy enforcement amid changes.

1_1 (5).png

FAQs

What's the difference between enabling Pack approvals and creating custom Pack configurations?

Enabling Pack approvals will require all users in your org to explicitly request access to a Pack before they can use it. Admins then review these requests, and can either approve or deny them. Approving a Pack will approve it for all members in org, so control is less granular than Pack configs. This simple feature is a good way to know which Packs your org members actually want. Check out this article to learn more.

Creating Pack configurations, on the other hand, is a more granular way to pre-set who has access to which Packs, and what they can do with each Pack. You can proactively approve (or block) users from certain Packs and certain Pack functions. Each Pack can have as many configurations as needed, and you can even create user groups. For instance, you can allow everyone in the Engineering department full access to the Jira Pack, while granting only partial access to the Marketing team. Admins who use custom Pack configs - instead of Pack approvals - won't have to worry about reviewing and actioning every Pack request from users in their org.

Do I need to enable Pack approvals in order to create Pack configurations?

No - enabling pack approvals and creating Pack configs are separate functionalities. You can utilize both, either, or neither for your org.

Which Packs can I create custom configurations for?

Pack configurations are a platform-level concept within Coda and can be used to control and configure the usage of all Packs within Coda.

What happens if I update a Pack configuration?

If a Pack is already in use in docs in your org, you may wonder what will happen when you make changes to (or even delete) the configuration for that Pack. When a Pack configuration is updated, the behavior depends on the kind of policy change that was made. If they are connection changes or changes to restrict access to a specific pack component / scope, the updated policy would apply to any new docs that’d be created. Existing docs with Pack connections will be unaffected but any invocation of the restricted pack components will be blocked.

If the policy change was made to restrict sharing of docs containing Pack data, the Pack will be uninstalled from docs that use this configuration and are incompatible with the updated policy.

You can read more about various scenarios here.

What happens when a user group has access to a Pack config but the user is removed from the group?

If the user is deleted from a group or if the group is deleted, we will automatically uninstall the Pack from their documents. The user will no longer be able to able to install the Pack if they don’t have access to it.

I have a config that restricts sharing docs that have data from a specific Pack to only those users that are allowed access to the Pack. What happens if the user tries to share the doc more broadly?

If doc sharing restrictions are enabled for a Pack, users will not be able to share docs that have data from that specific Pack with unintended users. Coda will block users from sharing the doc with members that do not have access to the Pack. If the doc is moved to folder that has users who don’t have access to the Pack config, the Pack will be uninstalled from the doc. To learn more about how different changes to user, doc or folder affect policy enforcement, see Policy enforcement amid changes.

What happens if an org member / group is deleted from a Pack configuration?

When permission on a Pack configuration is deleted, all Pack installs using that configuration are evaluated to see if the installer of the Pack configuration still has access to the configuration.

If neither the original Pack installer nor the doc owner have access to the Pack configuration, then the pack is uninstalled.

If doc.sharing.enforcePackConfigurationPermissions is set to true in the configuration, we will also validate that the updated set of permissions on the Pack configuration remains compatible with the doc permissions for all Pack installs using the configuration. If they are not compatible, the Pack will be uninstalled.

What happens to existing configurations if our organization acquires a new domain?

When you add a new domain to your list of owned domains (under the Domains registration tab or your admin settings), Coda will automatically create a configuration that allows users from the new domain to use Packs.


Related resources

Did this answer your question?