Authorization Issue with Wordpress Node

Hello Community,

I’m encountering an authorization issue with the WordPress node in my n8n workflow when attempting to perform operations that involve creating or modifying content (e.g., creating posts, updating users). Despite ensuring that my authentication token has administrator-level permissions , I consistently encounter “Unauthorized” errors.
while actions like getting users or pages is working just fine!

Information on your n8n setup

  • **Running n8n via :cloud
2 Likes

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Malak Welcome to the n8n community! :tada:

Do you mind updating the n8n version you’re using along with any screenshots showing the error you’re facing?

Thank you.

1 Like

here is the version : 1.42.1
and for the error , it shows this


on my Wordpress , this user is an admin
for getting data from the website , it works well

Alright, I see the problem here.

Instead of using your WordPress account password. Create an Application Password.

This can be done easily

  1. Go to Profile in the WP Dashboard
  2. Give a name
  3. Click on “Add New Application Password”
  4. Use that generated password inside n8n

I just tested it myself and it works.

3 Likes

Thank you so muuuuch , It finally works

3 Likes

Awesome. Glad it works :100:

1 Like

I don’t know what happened but it is not working anymore
but it is only when I add the status: publish
for draft creation it works
I didn’t had this problem before activating a theme called newsy

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.