Skip to main content

Give a service account data access

A new service account reads no data until you give it access in Data Security, the same way you do for a user or a group. Every policy form has a Service Accounts field.

Prerequisites​

  • Your role includes the permission for the policy type: governance:permissions:grant (Access), governance:row_policies:write (Row level filter), or governance:masking_policies:write (Masking). The portal_admin and policy_manager roles have all three.
  • To add the account to a tag policy, your role includes governance:tag_policies:write. The portal_admin and policy_manager roles have it.
  • The service account is Active. Disabled and deleted accounts cannot be selected.

Add the account to a policy​

  1. In the left sidebar, select Data Security → Resource policies.

  2. Open the tab of the policy type you need.

    TabUse it toDetails
    AccessLet the account read or change a catalog, schema, or table.Grant data access with an access policy
    Row level filterLimit the rows it sees in one table.Filter rows with a row level filter policy
    MaskingHide the values of a column.Mask columns with a masking policy
  3. Create a policy, or open an existing one.

  4. In Service Accounts, select the account.

  5. Select Create or Save.

The account can use the new access within about 1 minute.

Give the account only what its job needs. For example, a dashboard that reads one schema needs SELECT on that schema, not on the whole catalog.

Add the account to a tag policy​

Tag policies have a Service Account field in each rule.

  1. In the left sidebar, select Data Security → Tag policies.
  2. Open the Access or Masking tab.
  3. Select Create access policy or Create masking policy, or open an existing policy and select Edit.
  4. In a rule, select the account in Service Account.
  5. Select Create or Save.

Tag policy changes apply to queries within 10 minutes when the system works normally. See Allow or deny access with a tag policy and Mask tagged columns with a tag policy.

Remove access​

Open the policy, remove the account from Service Accounts, and select Save. See Edit, deactivate, or delete a policy.

To block the account everywhere at once, disable it instead. See Disable, enable, or delete a service account.

What happens to policies when the status changes​

Status changeEffect on policies
Disable or DeleteThe account loses all its access. It stays listed in its policies.
EnableThe account gets back the access from those policies.

Find the policies of a service account​

The Resource policies list has no filter by service account. Look for the account in the Service Account column of the list.

On the Tag policies page, select Filters and choose the account in Principal.

Next steps​