ER SECURITY

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.

See Also
TO VARIABLE
SEARCH
FILTER
Expression Language
  1. From the navigation menu, select Queries.
  2. Select a data query.
  3. Right-click the central panel, and select Security > ER SECURITY.
    OptionDescription
    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.

  4. Click the point at the output of the first operator, and select Terminal > TO VARIABLE.
  5. In the right panel, go to the General section, and for Variable name, enter acl_list.



  6. 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.
    • iov stands for inherited object vector.
    • doc stands for direct object vector.

    Example of SEARCH operator configuration:

    Example of FILTER operator configuration:

  7. From the top bar, click Save and apply.