Actions17
User → Get
AI-generatedSummary
Retrieves a single user record from WordPress based on the provided user ID.
Inputs
- userId (required) — Unique identifier for the user to retrieve.
- options — Optional parameters to control the request scope and authentication.
Output shape
a single item containing the user object
The 'context' option in 'options' controls which fields are included in the response (view, embed, or edit).
Examples
Example 1: Fetch a user profile by ID
Set 'User ID' to '1' and 'Context' to 'view'.