How to Find your WordPress User ID

There are many reasons why you may need to access background information about your WordPress installation, especially if you are considering going deeper with your WordPress development. Customizing your WordPress site may often require special back-end data you can only find in your WordPress database. In this article, we are going to learn how to find your WordPress User ID number.

Find WordPress User ID via phpMyAdmin

  1. cmPape 03

    Log into cPanel

  2. findWPUser 01

    Under Databases select phpMyAdmin

  3. findWPUser 02

    Select the database for your WordPress installation

  4. findWPUser 03

    Select users table

findWPUser 04

Now that you are in the users table, you will see all registered users in your WordPress site. In this example pictured, there is only one registered user. You will find the user ID number in the ID column.

Using SSH and WP-CLI

Using SSH and WP-CLI requires some knowledge in using the Linux command line.

  1. Log into your server via SSH
  2. Use the cd command to navigate to the directory which contains your WordPress core files
  3. Enter the following command to list your WordPress users
     wp user list 

The wp user list command will list the WordPress users and the ID numbers in columns and fields, and you will be able to see the number assigned to your user.

Well done! You now know how to find WordPress user IDs in the WordPress database via phpMyadmin and using SSH and the WP-CLI.

CM
Christopher Maiorana Content Writer II

Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.

More Articles by Christopher

Was this article helpful? Let us know!