Skip to main content

Snowflake

Snowflake is a cloud data platform. The Snowflake connector uses Snowflake's SCIM API, where a SCIM group is a Snowflake role. Owlie syncs users, roles and role membership. It can also create, update, disable, enable and delete users, create and delete roles, and add or remove a user's membership of a role.

Capabilities​

CapabilitySupportedDetails
SyncYesUsers and roles, plus role membership.
Incremental syncNoEvery run is a full sync.
Account provisioningYesUsers: create, update attributes, disable, enable and revoke. By default, revoking disables the user.
Grant writesYesRole membership (member_of).
NotificationsNo
Custom operationsNo

Authentication​

The connector has one authentication method, Bearer token. Owlie sends a token that you create in Snowflake with every SCIM request. You own the token and decide when to rotate it.

Get credentials from Snowflake​

  1. In Snowflake, create the role the SCIM integration runs as and a SCIM security integration with SCIM_CLIENT = 'GENERIC' and RUN_AS_ROLE = 'GENERIC_SCIM_PROVISIONER'. Snowflake's guide has the statements: Custom SCIM integration with Snowflake.
  2. Generate an access token for the integration and copy it.
  3. Note your account identifier, the hyphenated organization and account name, such as acme-prod1.

The SCIM role can manage only the users and roles it owns. A user or role created outside the integration must be transferred to that role before Owlie can change it.

Connect Snowflake in Owlie​

FieldRequiredWhat to enter
Account identifierYesThe hyphenated Snowflake account identifier, without snowflakecomputing.com, for example acme-prod1.
Integration UUIDNoOnly for a Snowflake SCIM integration addressed by UUID. Leave empty otherwise.
User fieldsYesThe user attributes this installation syncs and provisions, each bound to a SCIM path. The defaults suit most installations.
Group fieldsYesThe group attributes this installation syncs, each bound to a SCIM path.
Filterable attributesYesThe SCIM paths the server accepts in filters. The default is userName and displayName. Owlie refuses a lookup on any other path instead of sending it.
Bearer tokenYesThe token you copied. Owlie stores it as a secret.

Owlie calls https://<account identifier>.snowflakecomputing.com/scim/v2. The connection test lists one user and one group.

The connector runs in Owlie's cloud. If the endpoint is reachable only from your network, turn on Run through gateway in the install form's Execution section. See private-network gateways.

Entities​

EntityIn SnowflakeIdentifierKey attributesSyncCreateUpdateDeleteGrants (as target)
UserA user. This is the account entity.id, or userNameuserName, email, givenName, familyName, displayName, externalId, activeYesYesYesYesNo
GroupA Snowflake role, which the SCIM API presents as a group.id, or displayNamedisplayNameYesYesNoYesmember_of

Owlie shows a user whose active field is false as disabled. By default, Sync matches a user to an identity by the user's email, or userName when there is no email, against the identity's email. Change the matching rule on the account's Sync job. See account matching.

Grant kinds​

Grant kindIn SnowflakePrincipal → targetWritableQualifiersPasses access through
member_ofA user's membership of a role.User → GroupYesNoneYes: a member holds what the group grants.

Provisioning behaviour and limits​

OperationWhat happens in Snowflake
ProvisionCreates the user.
Update attributesWrites the mapped fields, skipping read-only ones.
DisableSets the user's active attribute to false.
EnableSets the user's active attribute to true.
RevokeRemoves the user's managed memberships, then disables the user by default. To delete the user instead, change the revoke state in the provisioning profile.

The default provisioning profile gives a new user the Owlie identity's email as userName and email, and the identity's first name, last name and display name. Change these in the resource's provisioning profile.

Limits:

  • Owlie can create and delete roles through the connector, but it doesn't rename or otherwise update them.
  • Each Grant add or remove changes one user's membership of one group.
  • When the provider rate-limits a request, Owlie reports a temporary error that can be retried.

Troubleshooting​

An operation fails with "The connector's credentials were rejected by the provider." The token is wrong, expired or revoked, or it lacks the rights the request needs. Create a new token in Snowflake and update Bearer token.

An operation fails with "The provider rate-limited the request." Snowflake is throttling requests. Retry the operation later.

Changelog​

The Snowflake connector is at version 1. Owlie shows each connector's changelog with the connector in the catalog.