# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://better-wizard.gitbook.io/lead-connector-wizard/crm-wp-communication/add-remove-wp-user-role.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
