> 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

{% 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="/files/npZNasQeFpUV21XUelyS" 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="/files/UwsX0l8h8VjWyTFZeDiK" alt=""><figcaption></figcaption></figure>
