I am not allowed to post on Wordpress site

Hello, my flow worked perfectly with WordPress - Create Post. But I want to use my flow on many wordpress sites, and for this, I added a site URL column to my source Excel sheet.

I tried many things but I get this answer: Status 401: post creation is not allowed for this user.

My user is admin on my test site, I have the Basic Auth plugin activated, I created even an application password. What can be the problem?

You’ll probably want to attach a picture of your flow so the people trying to help can see what it is doing.

You are right. Here’s the screenshot from the software.

The body:

{
  "tags": [
    12,
    18
  ],
  "title": "{{step_4['title']}}",
  "status": "publish",
  "content": "{{step_14}}",
  "categories": [
    {{trigger['values']['E']}},
    {{trigger['values']['F']}}
  ],
  "featured_media": {{step_15['body']['output']['url']}}
}

I tried it on another site and the system throw the same arror, I am not allowed to do this. I used a custom HTTP request as well. Meantime my other automation works well.

the first parameter in URL is like : https://mysite.com/

If you have any security plugins installed, try disabling them one at a time and testing again to see if they’re causing the issue.

Additionally, check your hosting settings. In my case, using Plesk, I had to disable the WordPress site security setting under the Plesk dashboard—specifically, the “Enable Bot Protection” option. Once disabled, I was able to post to WordPress successfully.

If you’re running a scheduled automation, you may want to keep this setting disabled. Otherwise, you can simply toggle it back on once you’ve completed your posting.

Hope this helps.

EDIT

Also, I noted you said in your initial post:

multiple WordPress sites

The issue you will face with the above approach is that each site will need an application password created for the user account on each.

I don’t think there is a way to set the application password on one site and use it for multiple, that would be a huge security flaw.

So it is highly likely, you would also need to update the Authorization value to accomadate for each URL you want to post too. This would also likely explain why you get the error:

Status 401: post creation is not allowed for this user.

hi @Vii

Do you have a screenshot of the output? i have been struggling with this alot, my solution back then was creating a new admin account and use that one… Not a clean way but it fixed it straight away.

I don’t know why wordpress does it, but their API often has som rarities

KR Bram