---
schema_version: "1"
id: 1b625965c7b777c4ef2dd1fa04ea73064ce0460ba214ba23516f99f40263c91e
title: Determine Row-Level Security for the Dataset
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/analytics/264-0-0/bi_security_rowlevel_example_teammembership_determinerls.md
canonical_url: https://help.salesforce.com/s/articleView?id=analytics.bi_security_rowlevel_example_teammembership_determinerls.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 76e4fb488dc3a6300af8c10c0638651c538d2ceb258bf95f75f0a1542b92da40
description: Now it’s time to think about row-level security. How will you restrict access to each record in this dataset?
products:
  - CRM Analytics
  - Cross Cloud
release: "264"
---
# Determine Row-Level Security for the Dataset

Now it’s time to think about row-level security. How will you restrict access to each record in this dataset?

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in Salesforce Classic and Lightning Experience.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available with CRM Analytics, which is available for an extra cost in <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions. Also available in <strong>Developer</strong> Edition.</td></tr></tbody></table>

You decide to implement the following predicate on the dataset.

```
'UserId' == "$User.Id"
```

This predicate compares the UserId column in the dataset against the ID of the user running a query against the dataset. The UserId column in the dataset contains the user ID of the team member associated with each opportunity. To determine the ID of the user running the query, CRM Analytics looks up the ID of the user making the query in the User object.

For each match, CRM Analytics returns the record to the user.