> For the complete documentation index, see [llms.txt](https://better-wizard.gitbook.io/lead-connector-wizard/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://better-wizard.gitbook.io/lead-connector-wizard/crm-wp-communication/add-remove-wp-user-role.md).

# 10.4 Add/ remove WP user role from workflow

\[this is a premium feature]

{% embed url="<https://youtu.be/OaABBXxIC1k>" %}

You can manage WordPress user roles directly from your workflow. To do this you need to send a webhook to your website. Let me walk through this.

1. **Add a user role to a WordPress user:** Add a webhook action and set the method to **POST**.  set the **URL** to your WordPress website address. you need to add **CUSTOM DATA** with the key 'lcw\_add\_wp\_user\_role' and set the WordPress user role value, let's say 'group\_leader'.  see the screenshot to get a clear idea.

<figure><img src="https://660943784-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz05QvQmZlyr3X728HXAZ%2Fuploads%2F8ZIkhEmJLONJY9SHI0zW%2FCleanShot%202024-12-21%20at%2002.48.32.png?alt=media&amp;token=67793990-552b-4bb8-80c9-918320d18783" alt=""><figcaption></figcaption></figure>

2. **Remove a user role from WordPress user:** It's similar to the add user role. You need to use a different key for custom data. add the key **lcw\_remove\_wp\_user\_role** and set the user role value as the value let's say **subscriber**. see the screenshot to get a clear idea.

<figure><img src="https://660943784-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz05QvQmZlyr3X728HXAZ%2Fuploads%2FKR53HJ7M4lo5ruWZIlT7%2FCleanShot%202024-12-21%20at%2002.50.25.png?alt=media&amp;token=f10fd4f7-2d6f-4408-9968-ffb7ff83e0ae" alt=""><figcaption></figcaption></figure>
