...
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.
- Open the data service file in WSO2 EI tooling.
- Add an output element to your data service:
- Right-click the data service and click Add Query to add a new query.
- Right-click the query and click Add Output Mapping to add an output mapping.
- Right-click the oupt output mapping and add go to Add Output Mapping → Add Element to add an element.
- Right-click the data service and click Add Query to add a new query.
- Add the user roles as a comma-separated list in the Allowed User Roles field for the output element as shown below.
Adding multiple data services
...