---
schema_version: "1"
id: 6e192dba0c936997f45a1447f9eec5615e8ae66e427fdc00adc2e72d2b65a13c
title: Modify the Dataflow Based on Row-Level Security
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_addpredicate.md
canonical_url: https://help.salesforce.com/s/articleView?id=analytics.bi_security_rowlevel_example_teammembership_addpredicate.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 89726a82fa0325f330334a113b1700ba9188bc1d02bc2088f38e2d2c3a4e3298
description: It’s now time to add the predicate in the dataflow definition file.
products:
  - CRM Analytics
  - Cross Cloud
release: "264"
---
# Modify the Dataflow Based on Row-Level Security

It’s now time to add the predicate in the dataflow definition file.

### 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 add the predicate to the Register transformation that registers the OppTeamMember dataset as shown below.

```
{    
   "Extract_OpportunityTeamMember": {        
      "action": "sfdcDigest",        
      "parameters": {            
         "object": "OpportunityTeamMember",            
         "fields": [                
            { "name": "Name" },                
            { "name": "OpportunityId" },                
            { "name": "UserId" }            
         ]        
      }    
   },        
   "Extract_Opportunity": {        
      "action": "sfdcDigest",        
      "parameters": {            
         "object": "Opportunity",            
         "fields": [                
            { "name": "Id" },                
            { "name": "Name" },                
            { "name": "Amount" },                
            { "name": "StageName" },                
            { "name": "AccountId" },                
            { "name": "OwnerId" }            
         ]        
      }   
   },    
   "Augment_OpportunityTeamMember_Opportunity": {        
      "action": "augment",        
      "parameters": {            
         "left": "Extract_OpportunityTeamMember",            
         "left_key": [                
            "OpportunityId"            
         ],            
         "relationship": "TeamMember",            
         "right": "Extract_Opportunity",            
         "right_key": [                
            "Id"            
         ],            
         "right_select": [                
            "Name","Amount"            
         ]        
      }    
   },    
   "Register_Dataset": {        
      "action": "sfdcRegister",        
      "parameters": {        
         "alias": "OppTeamMember",        
         "name": "OppTeamMember",        
         "source": "105_Augment_OpportunityTeamMember_Opportunity",            
         "rowLevelSecurityFilter": "'UserId' == "$User.Id""        
      }    
   }
}
```