-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access Denied (error 49) #178
Comments
I'm seeing the same with with emailClicks and other endpoints as well– dynamicContent and prospectAccount, for example. Strangely enough, it works if you include credentials in the authorization header– |
@bingjyang 's suggestion of the authorisation header is correct, under the homepage theres a banner stating query params are going to be deprecated
|
We have a new authentication requirement to not use the authentication elements on GET variables. Note the recent documentation update on how to do a GET request. |
I am getting the same error using the R package. This used to work 3 months ago but now it gives an error. Here's the R code I am using Clicks= pardot_visitor_activities(created_after='2019-03-21', type=1) data frame with 0 columns and 0 rows Is there a way to fix this? |
@kanny789 Try to change the R package by swifting the api key query param into the request auth header/body |
I am using Postman and putting user, password, & user_key into the body form-data will get you past the Access Denied. After that, you take the api_key returned from login api and use it along with user_key in Body form-data on subsequent calls to the other apis. Api_key expires after 30 minutes I believe. |
I'm getting this error while using the credentials from the Oauth Authentication: https://developer.pardot.com/kb/authentication/#oauth-authentication-domain-by-account-type |
@jtsternberg I don't see an error on that page. What error are you seeing exactly? I'm curious because I've been getting |
It's currently possible to get Access Denied when sending a Business Unit ID for a non-existent or inactive business unit. Note that if you use the wrong hostname (one of pi.pardot.com or pi.demo.pardot.com) for your request, the business unit will not be found. We will be making this error more specific in the near future. Access Denied can also be returned in cases where the user authentication is successful, but the user does not have adequate rights to access the particular endpoint. |
@noshirpatel-salesforce – do you know what might be causing the response "access_token is invalid, unknown, or malformed" when requesting with a fresh access token? |
That error is returned in a variety of circumstances. If you're seeing it for some clients and not others with a freshly obtained token, a likely cause is that some clients are trying to authenticate with users that are not synced to the business unit they are trying to access (perhaps not synced to Pardot at all). |
For me, it was the hostname (I needed to use
|
Update: We now have a separate error code for the Business Unit ID error. Extra error detail text may now be returned in some circumstances for invalid access token errors. Also, errors because the user is not valid for a business unit will now result in Access Denied with error details indicating the user is not valid. |
+1 on this. Any updates or something else that needs to be configured? |
@nitinparasa If you're having trouble authenticating, please contact support: https://help.salesforce.com/s/articleView?id=000386189&type=1 |
I am attempting to query emailClick however I am getting an error 49 (Access Denied).
I can successfully query prospect and user however all other objects that are queryable are returning Access Denied.
Here's the querystring I'm sending:
https://pi.pardot.com/api/emailClick/version/4/do/query?user_key=xxxblablabla
The user that I'm authenticating with seems to have full permission to everything and can see everything in Pardot. Is there another permission that needs to be set?
Anyone else seen this?
The text was updated successfully, but these errors were encountered: