Get a user
get_userFetch a WordPress user's profile by ID or 'me' for the authenticated user, returning roles and capabilities.
Instructions
Fetch one user by ID, or the authenticated user with id: "me". Includes roles and a summary of notable capabilities when permitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The user ID, or "me" for the account this server authenticates as. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |