Users
Overview
Read and update AAM user settings. Routes use /wp-json/aam/v2 on a standard WordPress installation.
Endpoints
| Method | Route | Input | Purpose |
|---|---|---|---|
| GET | /user/{id} |
id, fields |
Get user. |
| PATCH | /user/{id} |
id, status, expiration, add_capabilities, deprive_capabilities, remove_capabilities, fields |
Update user. |
| DELETE | /user/{id} |
id, fields, reset |
Reset user. |
| GET | /users |
fields, search, offset, per_page, role, status |
Get users. |
PATCH rows also accept POST and PUT because WordPress registers them as editable routes. The Input column lists route-specific parameters. A path parameter in {braces} is required. WordPress validates body and query parameters against the registered route schema.
Parameter guide
The route table shows which operation uses each parameter. Path parameters are required; other requirements depend on the operation.
| Parameter | Type | Meaning |
|---|---|---|
add_capabilities |
array |
Capabilities to add. |
deprive_capabilities |
array |
Capabilities to deny directly. |
expiration |
object |
User access expiration date-time & trigger. |
fields |
string |
List of additional fields to return. |
id |
number |
Unique user id. |
offset |
number |
Pagination offset. |
per_page |
number |
Pagination limit per page. |
remove_capabilities |
array |
Capabilities to remove. |
reset |
string |
Limit reset to user access expiration. |
role |
string |
Return users only for given role. |
search |
string |
Search string. |
status |
string |
Return users with the selected access status. |
Access level and authorization
This endpoint group does not use the shared access-level selector unless a row explicitly names it.
Required permission: aam_manager and aam_manage_users. See Authentication and Error handling.
Example
GET /wp-json/aam/v2/users
Authorization: Basic <base64 username:application-password>
This lists WordPress users and their AAM access details.