---
title: "Allow Anonymous Access to Person or Dataset Portals"
slug: "allow-anonymous-access-to-person-or-dataset-portals"
updated: 2025-08-11T20:23:36Z
published: 2025-08-11T20:23:36Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.technolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Allow Anonymous Access to Person or Dataset Portals

You can create portals with the [Anonymous/Guest security setting](/v1/docs/portal-authentication-methods) to display information to the general public, like links to forms or event registrations.

However, you might want to give your visitors different experiences depending on their logged-in status:

- If the visitor is **logged in**or accesses the portal via a personalized URL, they see personalized content.
- If the visitor is **not logged in**or accesses the portal via a non-personalized URL, they see generic, default content.

The **anonymous access**portal setting lets you build a single person or dataset portal that offers both experiences.

## The anonymous access portal setting

To configure a person or dataset portal for anonymous access:

1. Go to **Database → Portals**.
2. [Create a new portal](/v1/docs/creating-a-custom-portal), or select an existing one.
3. Select **Edit.**
4. From the **Scope** list, select either **Person** or **Dataset**.
5. Select **Save.**If you’re creating a new portal, select **Edit**again.
6. Ensure **Secure Link**is set to **Enable access via secure link**.
7. From the **Anonymous Access**list, select **Allow anonymous access to view unpersonalized content**. ![](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/Screenshot 2024-09-06 at 2.17.30 PM.png)
8. Select **Save.**

The remainder of this article covers the different ways you can present personalized information to the logged-in users of this portal.

## Using queries to display personalized information

When a query is created, the [portal identity filter](/v1/docs/portal-identity-filter) is created automatically.

This filter uses the `@identity` variable to query information about the logged-in visitor.

![](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/Portal identity filter(1).png)

When the portal is accessed anonymously, the `@identity` variable is **null**. A null value causes all queries to return zero rows, and thus not display any personalized information.

## Using filters to display personalized information

When you [create a view in a portal](/docs/creating-a-custom-portal#step-5-creating-portal-views), you populate it with various **parts** from the palette.

When you configure a portal to allow anonymous access to view unpersonalized content, each of these parts is in turn given a new setting called **anonymous access filter.**

This setting has two options, which determine the type of filters that can be added to the view part:

- **Use standard filters**: The default setting. Lets you to add filters to the portal view part that match the scope of the portal. If you add any non-system filter to the part, this part will not appear to anonymous visitors to the portal.
- **Use system filters only**: Prevents you from adding any filters that would hide the part from someone viewing the portal anonymously. If you choose this setting, but do not add any filters, the setting resets to the default *Use standard filters* setting.

#### Example: Filtering for entry term

If you’d like your portal to display specific information to prospects in a particular term, you could:

1. Create a portal view part displaying that content.
2. Leave **Anonymous Access Filter**set to **Use standard filters (restrict all anonymous access)**.
3. Add an **Entry Term**filter. ![](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/Anonymous access filter - Use standard filters (restrict all anonymous access).png)

Anonymous visitors to your portal do not ever see this content, while records that log in or access the portal via a personalized URL, if they met the filter criteria, do see the content.

#### Example: Event open to the public

On the other hand, say you’re announcing an event that’s open to everyone, and you want the portal to automatically update once the announcement is live. You can:

1. Create a portal part.
2. Leave **Anonymous Access Filter**set to **Use system filters only.**
3. Add a **Current Date**filter.
4. Configure the filter to display the portal part on or after a specific date. ![](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/Screenshot 2024-10-17 at 3.59.29 PM.png)

Regardless of whether someone uses a personalized link, a login, or anonymous access, they’ll only be able to see this portal part when the filter criteria evaluates on that date.

## **Using Liquid markup to display personalized information**

You can add [Liquid markup](/v1/docs/getting-started-with-liquid-markup) to a portal view to display conditional content.

#### Example: Greeting with first name

For example, the portal may be set up to display “Welcome, `{{first}}`!” if the visitor is accessing the portal via a personalized link or login, and to otherwise display “Welcome!” if the portal is being accessed anonymously.

In the source code of the view where these messages should appear, you’d enter the following Liquid markup:

```plainText
Welcome{% if first %}, {{first}}!{% else %}!{% endif %}
```

[![Welcome Text](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/cx304hn47eiqor47le2iwmceclip2.png)](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/cx304hn47eiqor47le2iwmceclip2.png)

If a value for `first` is populated in the portal query, then the view will display the visitor’s first name. Otherwise, it will display nothing:

- First name exists in the query:

[![Personalized Example](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/4znk6vwykec6qtaqmnxnamceclip2.png)](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/4znk6vwykec6qtaqmnxnamceclip2.png)
- First name does not exist in the query:

[![Anonymous Example](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/ykukq1rykewnlpr4qmbmqwmceclip3.png)](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/ykukq1rykewnlpr4qmbmqwmceclip3.png)

Additional customizations can be made, such as personalizing content based on other fields using Liquid markup.

## Using custom form links to display personalized information

The same logic can be applied when creating links in the portal. For example, if the id of the record exists in the query, then add `&amp;person={{id}}` (or `?person={{id}}` if the form has an alias) to the form or event registration URL:

[![URL Text](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/4v9tiiojl0m9oeenhv9fugmceclip3.png)](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/4v9tiiojl0m9oeenhv9fugmceclip3.png)

```xml
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    {% if id %}<a href="/register/request-info?person={{id}}">Click here to request information!</a>
    {% else %}<a href="/register/request-info">Click here to request information!</a>
    {% endif %}
</body>
</html>
```

The result of this code is:

- **Automatically linked to the associated record:**Pre-populates any previously collected data for that record.[![Personalized Form Response](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/ojocuhheeeoitxpzmia1jqmceclip4.png)](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/ojocuhheeeoitxpzmia1jqmceclip4.png)
- **Not automatically linked to a record:**ID does not exist. Will not pre-populate any data.

[![Anonymous Form Response](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/63ucynj62kybqv0rguckamceclip5.png)](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/63ucynj62kybqv0rguckamceclip5.png)

## Creating and sending a personalized access link

You can create a **personalized link**that displays all of the conditional content you’ve created to that visitor. The personalized link includes the person or dataset GUID, which allows access to the portal.

> [!NOTE]
> 💡 If the portal URL is not personalized, records can still access the portal, but the content will not be personalized.

To create and send this link:

1. Go to **Deliver.**
2. Select an existing mailing, or [create a new one](/v1/docs/deliver-overview).
3. Create a **recipient list**that includes the **person GUID**or **dataset GUID.**

[![Recipients List Query](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/eqttqswq1e1grspkgvyowmceclip5.png)](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/eqttqswq1e1grspkgvyowmceclip5.png)
4. Edit the message and add the desired template, formatting, and text.
5. Add a link to your portal in the body of the message. Format the link as follows:
  - **For person-scoped portals:**

```plainText
slate-university.edu/portal/person_portal_key?key={{Person-GUID}}
```

Where `person_portal_key` is the **key**of the person-scoped portal and `Person-GUID` is the exact name of the GUID export merge field from your recipient list.
  - **For dataset-scoped portals:**

```plainText
slate-university.edu/portal/dataset_portal_key?key={{Dataset-Row-GUID}}
```

Where `dataset_portal_key` is the **key**of the dataset-scoped portal and `Dataset-Row-GUID` is the exact name of the GUID export merge field from your recipient list.

[![Mailing with URL](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/olopkcrlg0cfnasb2cjt1amceclip6.png)](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/olopkcrlg0cfnasb2cjt1amceclip6.png)

## Testing the portal

As long as the [secure link access setting is enabled](/v1/docs/allow-anonymous-access-to-person-or-dataset-portals#the-anonymous-access-portal-setting), the personalized link you’ve created should provide access to the conditional content you created in your portal.

[![Personalized Experience Gif](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/anonymous.gif)](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/anonymous.gif)

A **globally-unique identifier**, or one-of-a-kind ID that can be used to identify a record or object in your Slate database.
