How to View Okta User Metadata and Creation Date Directly in a Web Browser (Without an API Token)
Last Updated:
Overview
Administrators require a method to view a user's complete Okta profile object and system metadata directly in a web browser without generating an Application Programming Interface (API) token or using external API tools. Okta stores system-level user metadata fields on the Okta User object in the database, even after System Log events age past the 90-day retention window. Administrators can query the /api/v1/users endpoint directly in a new browser tab using either the Okta User ID or the email address.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Okta Admin Console
- Okta Users API
Solution
What are the prerequisites for viewing user metadata?
Verify the active administrator session in the Okta Admin Console and note the exact Admin URL from the browser address bar to ensure the correct permissions and domain are available.
- Maintain an active administrator session in the Okta Admin Console with permissions to view users under Directory and People (such as Super Admin, Org Admin, User Admin, or Read-Only Admin).
- Note the exact Admin URL shown in the browser address bar when signed into the Admin Console (for example,
https://<yourOktaDomain>-admin.okta.com,https://<yourOktaDomain>-admin.oktapreview.com, orhttps://<yourOktaDomain>-admin.okta-emea.com).
Retrieve User Information Using the Okta User ID
Locate the 20-character Okta User ID from the user profile URL in the Admin Console and open the /api/v1/users/<userId> endpoint in a new browser tab to load the JavaScript Object Notation (JSON) record.
- Sign in to the Okta Admin Console.
- Navigate to Directory and People.
- Select the target user to open the profile page.
- Observe the URL in the address bar, which appears similar to
https://<yourOktaDomain>-admin.okta.com/admin/user/profile/view/00u.... - Copy the 20-character alphanumeric string at the end of the URL starting with
00uto obtain the unique Okta User ID. - Open a new tab in the same browser window.
- Enter
https://<yourOktaDomain>-admin.okta.com/api/v1/users/<userId>in the address bar, replacing<yourOktaDomain>-admin.okta.comwith the Admin Console domain and<userId>with the copied 20-character ID (for example,https://<company>-admin.okta.com/api/v1/users/00u...). - Press Enter to load the JSON record.
How is user information retrieved using the email address?
Open a new browser tab and query the /api/v1/users/<userEmailOrLogin> endpoint directly using the email address to load the JSON record.
- Sign in to the Okta Admin Console.
- Open a new tab in the same browser window.
- Enter
https://<yourOktaDomain>-admin.okta.com/api/v1/users/<userEmailOrLogin>in the address bar, replacing<userEmailOrLogin>with the Okta username (for example,https://<company>-admin.okta.com/api/v1/users/user@example.com).
NOTE: If the login contains special characters, replace@with%40(for example,https://<company>-admin.okta.com/api/v1/users/user%40example.com), or use the search parameter lookup. - Press Enter to load the JSON record.
Retrieve User Information Using the Search Parameter
Enter the /api/v1/users?q=<userEmailOrLogin> search parameter lookup in a new browser tab to return a JSON list of matching user objects when multiple users share a similar email prefix or when a direct path lookup encounters special character issues.
- Open a new tab in the same browser window.
- Enter
https://<yourOktaDomain>-admin.okta.com/api/v1/users?q=<userEmailOrLogin>in the address bar (for example,https://<company>-admin.okta.com/api/v1/users?q=user@example.com). - Press Enter to return a JSON list of matching user objects.
Format and search the output in the browser.
Enable the browser formatting tool to indent the text, and use keyboard shortcuts to search the JSON data and locate specific user metadata fields, such as the creation date.
- Select the Pretty-print box at the top-left corner of the browser page to automatically format the raw text into a clean, indented list.
- Press Ctrl plus F (Windows) or Cmd plus F (Mac) to search for the specific attribute.
"created": The exact Coordinated Universal Time (UTC) date and time in International Organization for Standardization (ISO) 8601 format that Okta originally created the user account (for example,"created": "2024-03-15T14:22:10.000Z")."activated": The exact UTC date and time Okta first activated the user account."statusChanged": The exact UTC date and time Okta last changed the lifecycle status."lastLogin": The timestamp of the most recent authentication."lastUpdated": The exact UTC date and time Okta last modified the user profile."passwordChanged": The exact UTC date and time Okta last updated the password."provider": Shows whetherOKTA,ACTIVE_DIRECTORY,LDAP, or anIMPORTsource provides the credentials.
