DataIKU Scenario not running with API - Dataset READ_DATA action Forbidden

Solved!
yjagger
Level 2
DataIKU Scenario not running with API - Dataset READ_DATA action Forbidden

While trying to run a scenario remotely, the job is failing. (PFB point of failure from stack trace)

[2022/12/05-10:52:06.889] [qtp1423491597-38] [INFO] [dku.job.slave]  - Trying to obtain grant: datasetread::READ_DATA::<DATASET_NAME>
[2022/12/05-10:52:06.899] [qtp1423491597-38] [WARN] [dip.http.utils]  - Got response code 403
[2022/12/05-10:52:06.901] [qtp1423491597-38] [ERROR] [dku.job.kernelbase]  - Call failed
com.dataiku.common.server.APIError$APIErrorException: Action on dataset forbidden
	at com.dataiku.dip.util.HTTPClientUtils.handleJSONResp(HTTPClientUtils.java:222)

Error => Trying to obtain grant: datasetread::READ_DATA::

I imported this project (with the scenario) from my team mate

Manual triggers are okay but triggering the scenario using run_and_wait api from my local jupyter notebook is not working.

While it is working as expected for another project

can you help in suggesting the changes i need to do for the project with error?


Operating system used: Windows

0 Kudos
1 Solution
yjagger
Level 2
Author

I noticed that for the scenario imported, it was being run as someone else.

Once I changed it to Run as => my user, it was fine.

Screenshot attached for reference

View solution in original post

0 Kudos
1 Reply
yjagger
Level 2
Author

I noticed that for the scenario imported, it was being run as someone else.

Once I changed it to Run as => my user, it was fine.

Screenshot attached for reference

0 Kudos