What is a user?

  • wp_users – stores basic details like username, email, and hashed passwords
  • wp_usermeta – stores everything else: roles, capabilities, preferences, and sessions

Key Concepts Covered

  • Sessions: Every login creates a session—a unique identifier saved in both the database and the user’s browser as a cookie. Multiple sessions can exist across devices or browsers.
  • Security risk: If someone steals your session cookie (e.g., via malware), they could access your site without knowing your username or password.
  • Types of user accounts:
    • Site owners, team members, and contributors
    • Customers (e.g., WooCommerce logins)
    • Plugin-created or automated system accounts
    • External services using Application Passwords
  • Application Passwords:
    • Found in the user profile screen
    • Allow external tools (e.g. Zapier, CRMs) to authenticate via the REST API
    • Bypass 2FA and pose a real security risk if not managed properly

Key Actions to Take Away

  • Audit your users regularly:
    • Who are they?
    • Why do they have access?
    • Do they still need it?
  • Be cautious with Application Passwords:
    • Revoke any unused or unknown ones
    • Especially after a breach or when rotating credentials
  • Understand sessions:
    • Know that each session is independent. Track and manage accordingly
    • We’ll cover how to mitigate session hijacking risks later
  • Prepare for the next step:
    • Once a user should exist, the next question is what kind of access they need
    • This is managed using roles and capabilities

WordPress users are more than names and emails. They are database entries with metadata and active sessions. Proper user management is the cornerstone of good security. If someone no longer needs access, remove them.


Web Resources

learn.wordpress.org – Basic Introduction to user management.

How WordPress Stores User Data – A more technical explanation of how WordPress stores user data.

Introduction To WordPress Security (coming soon)

Update Management (coming soon)

Browser Security (coming soon)

Configuration Management (coming soon)

Hosting and Backups (coming soon)

Monitoring (coming soon)

Compliance (coming soon)

Putting it all together (coming soon)