Add data policy
POST
/api/service/personas/{id}/policies#data
Add a single data policy to a persona.
Path parameters
-
id string Required
Unique identifier of the persona to which to add the policy.
Body Required
Details of the policy to add to the persona.
POST /api/service/personas/{id}/policies#data
curl \
-X POST https://tenant.atlan.com/api/service/personas/9bee3ff8-9bf4-436f-927b-3e415fd3afe9/policies#data \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type":"dataPolicy","policy":{"actions":["select"],"assets":["default/snowflake/1655116256"],"connectionName":"","connectionId":"74b02320-3b01-4896-81ea-b7ac4d5e4b9b","type":"null","allow":true,"name":"Full data access to all of Snowflake","description":""}}'
Request example
{
"type": "dataPolicy",
"policy": {
"actions": [
"select"
],
"assets": [
"default/snowflake/1655116256"
],
"connectionName": "",
"connectionId": "74b02320-3b01-4896-81ea-b7ac4d5e4b9b",
"type": "null",
"allow": true,
"name": "Full data access to all of Snowflake",
"description": ""
}
}
Response example (200)
{
"actions": [
"select"
],
"allow": true,
"assets": [
"default/snowflake/1655116256"
],
"connectionId": "74b02320-3b01-4896-81ea-b7ac4d5e4b9b",
"connectionName": "",
"createdAt": 1655221480475,
"createdBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
"description": "",
"id": "d0edeb50-696b-4e97-b04b-ba8ed01978a1",
"name": "Full data access to all of Snowflake",
"type": "null"
}