Export run - You are not authorised to run

New Contributor

Export run - You are not authorised to run

Hi Team,

 

My requirement is to extract the data from exports and load it into the snowflake.

Currently in Postman I used the post method and create the export task

 

https://api.anaplan.com/1/3/workspaces/8a81b0945cdbe1ec015ce678a3f60051/models/420BD91A05144xxxxxxxx...

 

Once I received the task id I used get method to run the exports

https://api.anaplan.com/1/3/workspaces/8a81b0945cdbe1ec015ce67xxxxxxxx/models/420BD91A051443C6ADACxx...

 

But I am getting the response as below:

 

{

"taskId": "8C0D39D0D7554000B1947F7721xxxx",

"currentStep": "Failed.",

"progress": 0.0,

"result": {

   "details": [

     {

       "localMessageText": "You are not authorised to run xxxxx.xls",

       "occurrences": 0,

       "type": "notAuthorised"

     }

   ],

   "failureDumpAvailable": false,

   "objectId": "116000000005",

   "successful": false

},

"taskState": "COMPLETE"

}

 

Please let me know how to fix the issue.

 

Thanks

KAndasamy

Message 1 of 6
5 REPLIES 5
Certified Master Anaplanner

Re: Export run - You are not authorised to run

Hi,

 

Please check in Users -> Actions tab if the account role being used for the GET call has access to the export action.

 

image.png

 

Regards,

Anirudh

Message 2 of 6
New Contributor

Re: Export run - You are not authorised to run

Hi Anirudh

 

I checked the Users -> Actions tab  the users are  having export privileges as you have shown in the screenshot.

In the Postman when I run the export I am getting response as "You are not authorized to run xxxx.xls "

 

 

Thanks

Kandasamy

 

Message 3 of 6
Certified Master Anaplanner

Re: Export run - You are not authorised to run

Can you please check if the user role has Read/Write access to the module from which the data is exported. Ex: the action is exporting data from a module called REP02; please check in the Roles -> Modules tab if the access to the module has been given

 

image.png

Message 4 of 6
Certified Master Anaplanner

Re: Export run - You are not authorised to run

Can you confirm you have the authorization included in the headers similar to the attached? 

 

You can:  1.  create the Post request to generate the key   2.  append that to the Token in the value column and run your request.

 

Let me know if that helps.


Jt

Message 5 of 6
Highlighted
Expert

Re: Export run - You are not authorised to run

To get this message there must be a problem with role-based access - either for the export or the source data (module or list).

Message 6 of 6