Run a workbook with service account credentials
If you use OAuth to connect to your data platform, you might want some workbooks to run using service account credentials instead of as the individual users viewing the workbook. For example, if your workbook contains critical scheduled exports and materializations owned by a user that inconsistently accesses the workbook. If that user’s OAuth token expires, the exports and materializations fail to run.
You can set a workbook to run using service account credentials in one of two ways, depending on the configuration of the OAuth connection to your data platform used for the workbook data sources:
- The connection uses the same OAuth configuration as the one used to log in to your Sigma organization (organization-level OAuth): A user assigned the Admin account type can configure the workbook to run queries using the service account configured on the connection. See the requirements and setup instructions.
- The connection uses an OAuth configuration specific to the connection (connection-level OAuth): A user with access to edit the workbook can swap the data source of the workbook to a different connection configured with service account credentials.
If you choose to run a workbook using service account credentials, Sigma queries data and evaluates permissions for the workbook differently. Refer to the following table to compare the behavior across different settings:
Requirements
-
To configure this setting on a workbook, you must be assigned the Admin account type.
-
The Run as service account option is only available on workbooks that use an OAuth connection that meets the following criteria:
-
A service account has been configured for the OAuth connection.
For information on how to configure a connection with a service account, see the documentation for your connection type:
-
OAuth is configured at the organization level. If your connection uses OAuth at the connection level, this option is not available. Instead, set up a second connection that uses service account credentials and change the source of the workbook to use that connection.
-
Run an individual workbook as a service account
- Open the workbook.
- Click the down arrow (
) to open the workbook menu.
- Select Share….
- Turn on the Run as service account toggle.

