---
title: "View a guest reference in Sitecore CDP"
slug: "view-a-guest-reference-in-sitecore-cdp"
abstract: "How to view a guest reference in Sitecore CDP."
---
# View a guest reference in Sitecore CDP

If you [enable the debug feature flag](https://doc.sitecore.com/cdp/en/users/sitecore-cdp/managing-sitecore-cdp-system-settings/enable-features-in-sitecore-cdp.html "Enable features in Sitecore CDP"), you can find the unique identifier for a guest profile. The guest reference is a unique identifier that Sitecore CDP assigns the guest. It is useful to know the guest reference when searching for guests, previewing experiments, and so on.

To view a guest reference:

1. [Search for the guest](https://doc.sitecore.com/cdp/en/users/sitecore-cdp/managing-guests-in-sitecore-cdp/search-for-a-guest-in-sitecore-cdp.html "Search for a guest in Sitecore CDP").
2. On the **Guest Profile** screen, click the ![cdp_debug_icon.png](https://doc.sitecore.com/api/markdown-image/cdp/en/users/sitecore-cdp/images/cdp_debug_icon.png) icon.

    ![Accessing the debug feature on the Guest Profile screen.](https://doc.sitecore.com/api/markdown-image/cdp/en/users/sitecore-cdp/images/Debug_John_Doe.png)

3. A window displays that includes data in a table, as shown in the following image:

    ![Viewing debug mode in a table format.](https://doc.sitecore.com/api/markdown-image/cdp/en/users/sitecore-cdp/images/debug_mode_john_doe.png)

4. To see the data in JSON format, click **Show as JSON**. A JSON representation of data displays. The unique guest reference displays as the value for the `ref:` attribute, as shown in the following image:

    ![Viewing the guest reference in JSON format.](https://doc.sitecore.com/api/markdown-image/cdp/en/users/sitecore-cdp/images/cdp_JSON_guestRef.png)

5. To return to the previous screen, click ![cdp_closeicon.png](https://doc.sitecore.com/api/markdown-image/cdp/en/users/sitecore-cdp/images/cdp_closeicon.png).