Write Policies Payloads and Response Schema Reference Guide
Manual write access grant payload
The parameters for manually granting write access to a data source without using a policy are outlined in the table below.
Parameter | Description | Required or optional | Default values | Accepted values |
---|---|---|---|---|
profileId | The unique identifier of the user to whom you are granting write access. | Required | - | - |
state | The user's role on the data source. | Required | - |
|
accessGrant | The type of access to grant the user. | Required | - |
|
Global write policy payload
The parameters for creating a global write policy are outlined in the table below.
Parameter | Description | Required or optional | Default values | Accepted values |
---|---|---|---|---|
type | The type of policy to create. | Required | - |
|
name | The name of the policy. | Required | - | - |
template | Specifies whether or not the policy should be available as a template. | Optional |
|
|
Required | - | |||
staged | When | Required | - |
|
Optional | By default, the policy applies to all data sources. | - |
Actions array
The actions array specifies the policy access type and restriction level. Its child parameters are outlined in the table below.
Parameter | Description | Required or optional | Default values | Accepted values |
---|---|---|---|---|
type | The type of policy. For write access policies, the type is | Required | - |
|
accessGrant | The type of access the user is granted. | Required | - |
|
description | The description of the policy. | Optional |
| - |
subscriptionType | The restriction level of the subscription policy. | Required | - |
|
Circumstances object
The circumstances object specifies the conditions under which the policy applies to a data source. Its child parameters are outlined in the table below.
Parameter | Description | Required or optional | Default values | Accepted values |
---|---|---|---|---|
operator | Specifies how to combine the conditions of the policy. | Required | - |
|
type | The type of condition under which to apply the policy. | Required | - |
|
columnRegex | This object indicates that the policy should apply to data sources with column names that match the regular expression. Its child parameters are outlined below. | Required when type is | - | - |
columnRegex.regex | A regular expression that matches names of columns. | Required when type is | - | - |
columnRegex.caseInsensitive | When | Optional |
|
|
columnTag | This object specifies the column tags required for the policy to apply to the data source. Child parameters are outlined below. | Required if type is | - | - |
columnTag.name | The name of the tag. | Required if type is | - | - |
columnTag.displayName | The display name of the tag. | Optional | - | - |
columnTag.hasLeafNodes | When | Optional | - | - |
server | The server that contains the data sources the policy should be applied to. | Required when type is | - | - |
startDate | Applies the policy to data sources created on or after this startDate and before the endDate (if the endDate is specified). | Required when type is | - | - |
endDate | Applies the policy to data sources created on or before this endDate and after the startDate. | Optional |
| - |
Global write policy response schema
Parameter | Description |
---|---|
policyKey | The unique name of the policy. |
createdBy | The unique identifier of the user who created the policy. |
createdByName | The username of the user who created the policy. |
createdAt | The date the policy was created. |
clonedFrom | The unique identifier of the policy that the new policy was cloned from. |
systemGenerated | Indicates whether or not the policy is system-generated. |
deleted | When |
id | The unique identifier of the policy. |
type | The type of policy. For write access policies, the type is |
name | The name of the policy. |
template | Specifies whether or not the policy is available as a template. |
certification | The certification object only applies to data policies, not write access policies. |
actions | Specifies the policy access type and restriction level. |
actions.type | The type of policy. For write access policies, the type is |
actions.accessGrant | The type of access the user is granted. For write access policies, actions.accessGrant is |
actions.description | The description of the policy. |
actions.allowDiscovery | When |
actions.subscriptionType | The restriction level of the subscription policy. |
actions.shareResponsibility | When |
actions.automaticSubscription | When |
staged | When |
circumstances |
Manual write access grant response schema
Parameter | Description |
---|---|
isSubscriptionOverride | When |
id | The unique identifier of the user's subscription to the data source. |
modelId | The unique identifier of the data source. |
modelType | The type of model the subscription policy applies to. For write policies, modelType is |
state | The type of role the user has, such as |
admin | The unique identifier of the user who granted write access to the data source subscriber. |
denialReasoning | If the user was denied access to the data source, this field contains the reason entered by the owner who denied access. |
profile | The unique identifier of the user who has been granted write access. |
group | The name of the group that has been granted write access, when applicable. |
policy | When |
expiration | The date the user's access expires. |
acknowledgeRequired | When |
createdAt | The date and time the user's access to the data source was granted. |
updatedAt | The date and time the user's access to the data source was updated. |
accessGrant | The type of access the user has to the data source: |
approved | When |