> For the complete documentation index, see [llms.txt](https://docs.acpt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acpt.io/forms/examples-of-form-usage/modify-an-existing-user.md).

# Modify an existing user

Create a new form and set `Post Management` as action.

You can select the user to be modified in two ways.

### Select the user from the new form modal

Choose All users in the List to populate from menu and select the User to edit, like in this example:

<figure><img src="https://3235524095-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fiyf0tSKPgXiyoQ3zV3I6%2Fuploads%2Fgit-blob-ca484387ea5b462de386808c674d709ef2faacc3%2Fform-modify-existing-user.png?alt=media" alt=""><figcaption></figcaption></figure>

### Injecting uid in the shortcode

Add uid to the shortcode:

```php
[acpt_form id="e45b2639" uid="123"] // where 123 is the ID of the user  
```

This particular syntax can also be used in combination with `get_current_user_id()` function:

```php
$userId = get_current_user_id();
echo do_shortcode('[acpt_form id="e45b2639" uid="'.$userId.'"] ');

```

{% hint style="danger" %}
Be careful, if the user ID is wrong, the form will not be displayed.
{% endhint %}
