Skip to main content
POST
/
v1
/
datasets
/
{dataset_id}
/
policies
Create a Personalized Data Permission (PDP) Policy
curl --request POST \
  --url https://api.domo.com/v1/datasets/{dataset_id}/policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Only Show Attendees",
  "filters": [
    {
      "column": "Attending",
      "values": [
        "TRUE"
      ],
      "operator": "EQUALS"
    }
  ],
  "users": [
    27
  ]
}
'
{
  "id": 8,
  "type": "user",
  "name": "Only Show Attendees",
  "filters": [
    {
      "column": "Attending",
      "values": [
        "TRUE"
      ],
      "operator": "EQUALS",
      "not": false
    }
  ],
  "users": [
    27
  ],
  "groups": []
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
string
required

Body

application/json
name
string
required

Name of the Policy

filters
object[]
required
users
integer[]

List of user IDs the policy applies to

groups
integer[]

List of group IDs the policy applies to

type
string

Type of policy (user or system)

Response

201 - application/json

Returns a subset of the DataSet object specific to the data permission policy.

id
integer
type
string
name
string
filters
object[]
users
integer[]
groups
object[]