Setting row-level security for reports
Depending on the user's group, row-level security can be implemented for each report.
To apply row-level security
- Log in to the Remedy Mid Tier as a Reporting Administrator.
- Choose Applications > Smart Reporting > Smart Reporting console.
- On the Remedy Smart Reporting(Smart Reporting) console, choose Administration > Admin Console.
- From the Data Sources option, click AR System.
- On the Data Source details, under Security, select Yes for Source Filters.
An additional step is added to at the top of the page. - Click Step 2.
- In the Filters section, click Add.
- Select Scheduled SQL Query Data Entry, and click Next.
- From the Available Filter Types box, click Edit.
- On the Filter Type dialog box, click Add and enter a unique code and description. Click Add again, and then click Save.
- On the Filters page, from the Refresh Type options, select Updates will overwrite current entries. All previous records will be deleted.
- Define a filter query:
Add the filter query.
SELECT 'User ID',`CTM:SupportGroupAssocPeopleLookUp`.`Login ID`+'@bmc','Support Group',
`CTM:Support Group`.`Support Group Name`FROM `AR System Schema`.`CTM:SupportGroupAssocPeopleLookUp`INNER JOIN `AR System Schema`.`CTM:Support Group`ON( `CTM:SupportGroupAssocPeopleLookUp`.`Support Group ID` = `CTM:Support Group`.`Support Group ID`)- Set the Frequency for the query.
- Click Save.
- Click the filter name to open the details.
- To view the filtered data, click Refresh this filter now.
- Click Step 1 on the top of the page, and then click Save.
The defined query fetches the user IDs and associated Support Groups. - Assign this source filter to the appropriate field in the View to implement row-level security in the reports.
Following is an example of assigning the source filter to the Assignee Group field in the Incident Management module. Then, you can select the filter when you create a report using the Incident Management view. The report data is restricted to the associated support group of the user who is logged in.- On the Smart Reporting console, go to Administration > Admin Console.
- Under views, select AR System > Incident Management, and click Edit.
- For Edit Type, select Clone and click Continue.
- Click Step 2 on the top of the page.
- Under Available Fields, expand the Incident detail folder and search for the Assignee Group field.
Double-click the field to open the field properties. - On the Access tab, from the Access Filter drop-down box, select the Support Group filter you created, and click Save.
- Click Step 4 and click Activate.
Make sure you remove (Clone) from the view name before you click Activate again to activate the view.
Now, when you create a report using the Incident Management view, in the Data section of the report, the Source Filters section is displayed under the Report Data section. Select this option to apply the filter values. Users who log in will see report data based on the support group to which they belong.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*