This documentation is for WSO2 Enterprise Integrator version 6.1.1 . View documentation for the latest release in the 6.x.x family and the latest release in the 7.x.x family.

All docs This doc

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

When you work with data services, you can control access to sensitive data for specific user roles. This facility is called Role-based content filtering. It filters data where specific data sections are only accessible to a given type of users.


To use this feature, it is necessary to ensure that the data service is secured with a UT policy. Note that you need to use WSO2 EI tooling to apply security policies to a data service. Therefore, if you have already created the data service using the management console as explained below, import your data service file to the tool and apply the UT security policy.

See the instructions on using WSO2 EI Tooling to develop data services.

Follow the steps below to filter a data service according to a specific user role.

  1. Log on to the management console and select  Services > List under the Main menu. 
  2. The Deployed Services window appears, which lists out all the currently active services and service groups. Click the data service you want to edit to open its dashboard. 
  3. In the dashboard, click the Edit Data Service link.

    You can directly edit the XML file or use the management console. We use the latter in this example.

  4. Navigate to the Queries page of the data service, select the query you want to edit and Edit Query.

  5. In the Output Mappings section of the query, edit the field that needs to be filtered and tick the appropriate user role in the Allowed User Roles section.

  6. Once all the required roles are set, the result entries of the Edit Query page look as follows in this example:

  7. Save the changes.