Title: Users
Author: Edwin Cromley
Published: December 6, 2016
Last modified: October 14, 2026

---

# Users

## In this article

 * [Schema](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema)
 * [List Users](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#list-users)
    - [Definition](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition)
    - [Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#example-request)
    - [Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments)
 * [Create a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#create-a-user)
    - [Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-2)
    - [Definition](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-2)
 * [Retrieve a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#retrieve-a-user)
    - [Definition & Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-example-request)
    - [Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-3)
 * [Update a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#update-a-user)
    - [Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-4)
    - [Definition](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-3)
    - [Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#example-request-2)
 * [Delete a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#delete-a-user)
    - [Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-5)
    - [Definition](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-4)
    - [Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#example-request-3)
 * [Retrieve a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#retrieve-a-user-2)
    - [Definition & Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-example-request-2)
    - [Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-6)
 * [Update a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#update-a-user-2)
    - [Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-7)
    - [Definition](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-5)
    - [Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#example-request-4)
 * [Delete a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#delete-a-user-2)
    - [Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-8)
    - [Definition](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-6)
    - [Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#example-request-5)

## 󠀁[Schema](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema)󠁿

The schema defines all the fields that exist within a user record. Any response 
from these endpoints can be expected to contain the fields below unless the `_filter`
query parameter is used or the schema field only appears in a specific context.

 |   `id`  |   Unique identifier for the user.

 JSON data type: integer

Read only

Context: `embed`, `view`, `edit`

  |  
 |   `username`  |   Login name for the user.

 JSON data type: string

Context: `edit`

  |  
 |   `name`  |   Display name for the user.

 JSON data type: string

Context: `embed`, `view`, `edit`

  |  
 |   `first_name`  |   First name for the user.

 JSON data type: string

Context: `edit`

  |  
 |   `last_name`  |   Last name for the user.

 JSON data type: string

Context: `edit`

  |  
 |   `email`  |   The email address for the user.

 JSON data type: string,
 Format: email

Context: `edit`

  |  
 |   `url`  |   URL of the user.

 JSON data type: string,
 Format: uri

Context: `embed`, `view`, `edit`

  |  
 |   `description`  |   Description of the user.

 JSON data type: string

Context: `embed`, `view`, `edit`

  |  
 |   `link`  |   Author URL of the user.

 JSON data type: string,
 Format: uri

Read only

Context: `embed`, `view`, `edit`

  |  
 |   `locale`  |   Locale for the user.

 JSON data type: string

Context: `edit`

 One of: , `en_US`

 |  
 |   `nickname`  |   The nickname for the user.

 JSON data type: string

Context: `edit`

  |  
 |   `slug`  |   An alphanumeric identifier for the user.

 JSON data type: string

Context: `embed`, `view`, `edit`

  |  
 |   `registered_date`  |   Registration date for the user.

 JSON data type: string,
 Format: datetime ([details](https://core.trac.wordpress.org/ticket/41032))

Read only

Context: `edit`

  |  
 |   `roles`  |   Roles assigned to the user.

 JSON data type: array

Context: `edit`

  |  
 |   `password`  |   Password for the user (never included).

 JSON data type: string

Context:

  |  
 |   `capabilities`  |   All capabilities assigned to the user.

 JSON data type: object

Read only

Context: `edit`

  |  
 |   `extra_capabilities`  |   Any extra capabilities assigned to the user.

 JSON data type: object

Read only

Context: `edit`

  |  
 |   `avatar_urls`  |   Avatar URLs for the user.

 JSON data type: object

Read only

Context: `embed`, `view`, `edit`

  |  
 |   `meta`  |   Meta fields.

 JSON data type: object

Context: `view`, `edit`

  |

## 󠀁[List Users](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#list-users)󠁿

 Query this endpoint to retrieve a collection of users. The response you receive
can be controlled and filtered using the URL query parameters below.

### 󠀁[Definition](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition)󠁿

 `GET /wp/v2/users`

### 󠀁[Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#example-request)󠁿

 `$ curl https://example.com/wp-json/wp/v2/users`

### 󠀁[Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments)󠁿

 |   `context`  |   Scope under which the request is made; determines fields present in response.

 Default: `view`

 One of: `view`, `embed`, `edit`

 |  
 |   `page`  |   Current page of the collection.

 Default: `1`

  |  
 |   `per_page`  |   Maximum number of items to be returned in result set.

 Default: `10`

  |  
 |   `search`  |   Limit results to those matching a string.  |  
 |   `exclude`  |   Ensure result set excludes specific IDs.  |  
 |   `include`  |   Limit result set to specific IDs.  |  
 |   `offset`  |   Offset the result set by a specific number of items.  |  
 |   `order`  |   Order sort attribute ascending or descending.

 Default: `asc`

 One of: `asc`, `desc`

 |  
 |   `orderby`  |   Sort collection by user attribute.

 Default: `name`

 One of: `id`, `include`, `name`, `registered_date`, `slug`, `include_slugs`, `email`, `url`

 |  
 |   `slug`  |   Limit result set to users with one or more specific slugs.  |  
 |   `roles`  |   Limit result set to users matching at least one specific role provided. Accepts csv list or single role.  |  
 |   `capabilities`  |   Limit result set to users matching at least one specific capability provided. Accepts csv list or single capability.  |  
 |   `who`  |   Limit result set to users who are considered authors.
 One of: `authors`  |  
 |   `has_published_posts`  |   Limit result set to users who have published posts.  |

## 󠀁[Create a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#create-a-user)󠁿

### 󠀁[Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-2)󠁿

 |   `[username](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-username)`  |   Login name for the user.

 Required: 1

  |  
 |   `[name](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-name)`  |   Display name for the user.  |  
 |   `[first_name](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-first_name)`  |   First name for the user.  |  
 |   `[last_name](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-last_name)`  |   Last name for the user.  |  
 |   `[email](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-email)`  |   The email address for the user.

 Required: 1

  |  
 |   `[url](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-url)`  |   URL of the user.  |  
 |   `[description](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-description)`  |   Description of the user.  |  
 |   `[locale](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-locale)`  |   Locale for the user.
 One of: , `en_US`  |  
 |   `[nickname](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-nickname)`  |   The nickname for the user.  |  
 |   `[slug](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-slug)`  |   An alphanumeric identifier for the user.  |  
 |   `[roles](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-roles)`  |   Roles assigned to the user.  |  
 |   `[password](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-password)`  |   Password for the user (never included).

 Required: 1

  |  
 |   `[meta](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-meta)`  |   Meta fields.  |

### 󠀁[Definition](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-2)󠁿

 `POST /wp/v2/users`

## 󠀁[Retrieve a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#retrieve-a-user)󠁿

### 󠀁[Definition & Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-example-request)󠁿

 `GET /wp/v2/users/<id>`

 Query this endpoint to retrieve a specific user record.

 `$ curl https://example.com/wp-json/wp/v2/users/<id>`

### 󠀁[Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-3)󠁿

 |   `id`  |   Unique identifier for the user.  |  
 |   `context`  |   Scope under which the request is made; determines fields present in response.

 Default: `view`

 One of: `view`, `embed`, `edit`

 |

## 󠀁[Update a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#update-a-user)󠁿

### 󠀁[Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-4)󠁿

 |   `[id](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-id)`  |   Unique identifier for the user.  |  
 |   `[username](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-username)`  |   Login name for the user.  |  
 |   `[name](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-name)`  |   Display name for the user.  |  
 |   `[first_name](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-first_name)`  |   First name for the user.  |  
 |   `[last_name](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-last_name)`  |   Last name for the user.  |  
 |   `[email](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-email)`  |   The email address for the user.  |  
 |   `[url](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-url)`  |   URL of the user.  |  
 |   `[description](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-description)`  |   Description of the user.  |  
 |   `[locale](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-locale)`  |   Locale for the user.
 One of: , `en_US`  |  
 |   `[nickname](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-nickname)`  |   The nickname for the user.  |  
 |   `[slug](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-slug)`  |   An alphanumeric identifier for the user.  |  
 |   `[roles](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-roles)`  |   Roles assigned to the user.  |  
 |   `[password](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-password)`  |   Password for the user (never included).  |  
 |   `[meta](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-meta)`  |   Meta fields.  |

### 󠀁[Definition](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-3)󠁿

 `POST /wp/v2/users/<id>`

### 󠀁[Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#example-request-2)󠁿

## 󠀁[Delete a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#delete-a-user)󠁿

### 󠀁[Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-5)󠁿

 |   `id`  |   Unique identifier for the user.  |  
 |   `force`  |   Required to be true, as users do not support trashing.  |  
 |   `reassign`  |   Reassign the deleted user’s posts and links to this user ID.

 Required: 1

  |

### 󠀁[Definition](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-4)󠁿

 `DELETE /wp/v2/users/<id>`

### 󠀁[Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#example-request-3)󠁿

 `$ curl -X DELETE https://example.com/wp-json/wp/v2/users/<id>`

## 󠀁[Retrieve a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#retrieve-a-user-2)󠁿

### 󠀁[Definition & Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-example-request-2)󠁿

 `GET /wp/v2/users/me`

 Query this endpoint to retrieve a specific user record.

 `$ curl https://example.com/wp-json/wp/v2/users/me`

### 󠀁[Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-6)󠁿

 |   `context`  |   Scope under which the request is made; determines fields present in response.

 Default: `view`

 One of: `view`, `embed`, `edit`

 |

## 󠀁[Update a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#update-a-user-2)󠁿

### 󠀁[Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-7)󠁿

 |   `[username](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-username)`  |   Login name for the user.  |  
 |   `[name](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-name)`  |   Display name for the user.  |  
 |   `[first_name](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-first_name)`  |   First name for the user.  |  
 |   `[last_name](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-last_name)`  |   Last name for the user.  |  
 |   `[email](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-email)`  |   The email address for the user.  |  
 |   `[url](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-url)`  |   URL of the user.  |  
 |   `[description](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-description)`  |   Description of the user.  |  
 |   `[locale](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-locale)`  |   Locale for the user.
 One of: , `en_US`  |  
 |   `[nickname](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-nickname)`  |   The nickname for the user.  |  
 |   `[slug](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-slug)`  |   An alphanumeric identifier for the user.  |  
 |   `[roles](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-roles)`  |   Roles assigned to the user.  |  
 |   `[password](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-password)`  |   Password for the user (never included).  |  
 |   `[meta](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#schema-meta)`  |   Meta fields.  |

### 󠀁[Definition](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-5)󠁿

 `POST /wp/v2/users/me`

### 󠀁[Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#example-request-4)󠁿

## 󠀁[Delete a User](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#delete-a-user-2)󠁿

### 󠀁[Arguments](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#arguments-8)󠁿

 |   `force`  |   Required to be true, as users do not support trashing.  |  
 |   `reassign`  |   Reassign the deleted user’s posts and links to this user ID.

 Required: 1

  |

### 󠀁[Definition](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#definition-6)󠁿

 `DELETE /wp/v2/users/me`

### 󠀁[Example Request](https://developer.wordpress.org/rest-api/reference/users/?output_format=md#example-request-5)󠁿

 `$ curl -X DELETE https://example.com/wp-json/wp/v2/users/me`

First published

December 6, 2016

Last updated

October 14, 2026

Edit article

[ Improve it on GitHub: Users ](https://github.com/WP-API/docs/edit/master/reference/users.md)

Changelog

[ See list of changes: Users ](https://github.com/WP-API/docs/commits/master/reference/users.md)

[  Previous: Types](https://developer.wordpress.org/rest-api/reference/post-types/)

[  Next: Widget Types](https://developer.wordpress.org/rest-api/reference/widget-types/)