Unauthorized exception while adding technical owner to Snowflake table using GraphQL API in Datahub

Original Slack Thread

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?

Hey there! :wave: Make sure your message includes the following information if relevant, so we can help more effectively!

  1. Which DataHub version are you using? (e.g. 0.12.0)
  2. Please post any relevant error logs on the thread!

Hey Fency, Can you share the policy that is assigned to the user?