In a data query, use the ER SECURITY operator to make sure
that the results returned for 3DEXPERIENCE platform objects are compliant with the security and access control (P&O
context).
Warning:
Without this security operator, data visualizations show all
Result Set objects without distinction.
Right-click the central panel, and select Security > ER SECURITY.
Option
Description
Index unit
Set to 3Dspace by default.
You can specify another ER
index unit if its data model is compatible with the 3Dspace
data model.
Login
Set to User.login() by default.
Login role
The security context applied to the user. For example,
ctx::VPLMCreator.Company Name.Common Space
By default, double
quotes "" are empty, which means that all security contexts are
applied.
Click the point at the output of the first operator, and select Terminal > TO VARIABLE.
In the right panel, go to the General section, and for
Variable name, enter acl_list.
To filter your results, you can now define the following expression in your
SEARCH or FILTER operator.
(
(bo->dov.`_inverted_accessbyname.pass`["yes"] || []).anyMatch(v => v IN @acl_list)
OR
(bo->iov.`_inverted_accessbyname.pass`["yes"] || []).anyMatch(v => v IN @acl_list)
)
AND NOT (bo->iov.`_inverted_accessbyname.pass`["no"] || []).anyMatch(v => v IN @acl_list)
AND NOT (bo->dov.`_inverted_accessbyname.pass`["no"] || []).anyMatch(v => v IN @acl_list)
AND NOT (bo->iov.`_inverted_accessbyname.pass`["maybeNo"] || []).anyMatch(v => v IN @acl_list)
AND NOT (bo->dov.`_inverted_accessbyname.pass`["maybeNo"] || []).anyMatch(v => v IN @acl_list)
Where:
acl_list is the variable name that contains the ER user rights.
bo is the variable that contains the input stream.