WordPress - Get Users
Description
Section titled “Description”This module allows querying and searching users from a WordPress site. Supports filters by role, search by name or email, and getting a specific user by ID.
Configuration
Section titled “Configuration”Credentials
Section titled “Credentials”| Field | Description | Example |
|---|---|---|
url | WordPress site base URL | https://my-site.com |
username | WordPress username | admin |
application_password | Application password generated in WordPress | xxxx xxxx xxxx xxxx |
Parameters
Section titled “Parameters”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | WordPress credential |
| user_id | text | No | Specific ID. If empty, lists all |
| search | text | No | Search by name or email |
| roles | select | No | Filter: All, Administrator, Editor, Author, Subscriber |
| per_page | number | No | Results per query (1-100). Default: 10 |
Output
Section titled “Output”{ "success": true, "users": [ { "id": 1, "name": "Juan Perez", "slug": "juan-perez", "email": "juan@misitio.com", "roles": ["administrator"], "avatar_urls": { "96": "https://..." } } ], "total": 5}Usage Example
Section titled “Usage Example”List all users
Section titled “List all users”{ "per_page": 100}Search user by name
Section titled “Search user by name”{ "search": "Juan"}Filter by role
Section titled “Filter by role”{ "roles": "editor"}API Used
Section titled “API Used”- Endpoint:
GET /wp-json/wp/v2/users - Documentation: WordPress REST API - Users
- The user ID can be used as
authorin the Create Post node. - Requires administrator permissions to view emails and roles of other users.
- Users with “subscriber” role cannot create content.
Related Nodes
Section titled “Related Nodes”- WordpressCreatePost - Create post specifying the author by ID
- WordpressGetPosts - Get posts from a specific author