Versions Compared

Key

  • 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. Follow the instructions given below to add role-based filtering for output elements in your data service. 

  1. Open the data service file in WSO2 EI tooling.
  2. Add an output element to your data service:
    1. Right-click the data service and click Add Query to add a new query.
      Image Modified
    2. Right-click the query and click Add Output Mapping to add an output mapping.
      Image Modified
    3. Right-click the oupt output mapping and add go to Add Output Mapping → Add Element to add an element.
      Image Modified
  3. Add the user roles as a comma-separated list in the Allowed User Roles field for the output element as shown below.
    Image Modified

Adding multiple data services

...