Hi team, I am try to run curl
command and query graphql API
to add technical owner to a table. Datahub version used : 0.12.0. I am running curl command from inside Airflow. This command to add technical owner to a snowflake table. Curl command used is as below
--header 'Authorization: Bearer <access token>' \
--header 'Content-Type: application/json' \
--data-raw '{ "query": "mutation addOwners { addOwner(input: { ownerUrn: \"urn:li:corpGroup:Fency Clement\", resourceUrn: \"urn:li:dataset:(urn:li:dataPlatform:snowflake,<database.schema.tablename>,PROD)\", ownerEntityType: CORP_GROUP, type: TECHNICAL_OWNER }) }", "variables":{}}'```
But it is throwing exception as below.
```"errors":[{"message":"Unauthorized to perform this action. Please contact your DataHub administrator.","locations":[{"line":1,"column":22}],"path":["addOwner"],"extensions":{"code":403,"type":"UNAUTHORIZED","classification":"DataFetchingException"}}],"data":{"addOwner":null},"extensions":{}}```
Can someone help me to identify the issue?