SOLVED

Access Denied when accessing Campaigns in REST API

Go to solution
Anonymous
Not applicable

Access Denied when accessing Campaigns in REST API

I'm getting "Access Denied" with a response code of 603 anytime I try to access and of the Campagin endpoints. I have an API user setup and working, with Lead and activity Read-Write permissions. I am able to access and edit leads and lists without a problem. This is a problem with both the GET method and POST in conjunction with the _method parameter. I have also tried giving the API Role all permissions just for testing and am still experiencing the issue. ANy Suggestions would be greatly appreciated.
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Access Denied when accessing Campaigns in REST API

When we set up our API Role, they did not have the permissions either.
The "fix" seems to be to create a new API Role and the permissions will show.
Then just assign that new API role to your existing user.


Here's the solution we got from Marketo support:

I figured out the issue. It looks like we introduced 4 new permissions in the June release and one of them is "read-write campaign". However, if you go edit the existing role, these new permissions don't show up for you to select. If you create a new role such as the test one I created called "Mkto Support Test Role", you will see 4 new permissions available.

To get around this issue, you will need to do the following:
(1) Create a new API role with the extra permissions you need
(2) Assign the new role to your API user and remove the old role
(3) Delete the old API role if you don't need it anymore.

View solution in original post

4 REPLIES 4
Kenny_Elkington
Marketo Employee

Re: Access Denied when accessing Campaigns in REST API

Hey Dev,

Do the campaigns you're trying to access have the Campaign is Request trigger with a source of Web Service API?  Have you activated them?
Anonymous
Not applicable

Re: Access Denied when accessing Campaigns in REST API

Have you set your API role with all of the proper permissions?
We had this same issue and found out there are specific permissions for campaigns.

Make sure your API Role has everything set like below:
http://imgur.com/x58tFE9

I know you said you set all permissions, but it's worth a double check.
Anonymous
Not applicable

Re: Access Denied when accessing Campaigns in REST API

The "Execute Campaign", "Read-only Campaign" and "Read-Write Campaign" options don't even appear in our permissions box. 
0EM50000000SCTs.jpg

That is likely the culprit. What are some reasons they wouldn't be available?
Anonymous
Not applicable

Re: Access Denied when accessing Campaigns in REST API

When we set up our API Role, they did not have the permissions either.
The "fix" seems to be to create a new API Role and the permissions will show.
Then just assign that new API role to your existing user.


Here's the solution we got from Marketo support:

I figured out the issue. It looks like we introduced 4 new permissions in the June release and one of them is "read-write campaign". However, if you go edit the existing role, these new permissions don't show up for you to select. If you create a new role such as the test one I created called "Mkto Support Test Role", you will see 4 new permissions available.

To get around this issue, you will need to do the following:
(1) Create a new API role with the extra permissions you need
(2) Assign the new role to your API user and remove the old role
(3) Delete the old API role if you don't need it anymore.