Row-level policy filters
Implement row-level security in embedded Tellius Vizpads using userId tokens and postMessage to enforce data access policies per user.
Steps to apply row-level policy
Connect with Tellius
var telliusFrame ;
document.querySelector("iframe").addEventListener("load", function() {
telliusFrame = document.getElementsByTagName("iframe")[0].contentWindow;
telliusFrame.postMessage('INITIALIZE', "*");
telliusFrame.postMessage({
actionType: "INITIALIZE_ROW_LEVEL_POLICY",
rowLevelPolicies: [{
"rowLevelPolicy": {
"operator": "and",
"args": [
{
"value": "Second Class",
"field": "Ship_Mode",
"condition": "="
}
]
},
},
{
"rowLevelPolicy": {
"operator": "and",
"args": [
{
"value": [
"Wuhan"
],
"field": "City",
"condition": "in"
}
]
},
}],
}, "*")
})Supported filters
Sample code for timeline filter
Sample code for custom range filter
Last updated
Was this helpful?