To apply a connection-scope security policy to a report, follow the steps below:
After you have applied a connection-scope security policy for a report in JReport Designer, you can then publish it to JReport Server as normal. Then when you log onto JReport Server as different users, you will find that the security settings have been applied to the report. That is, different users will only see the data they are supposed to see. However, as the user defined users and roles in a connection-scope security policy may not be recognized by JReport Server, if your security policy contains such users/roles, you need to first create these users and roles respectively on JReport Server, and then in JReport Designer, synchronize the security information with the server by means of importing security information from the sever with the Merge option checked.
Notes:
main | sub | Users in Policy | Users NOT in Policy |
---|---|---|---|
Ð | Ð | No security policy is applied to either the primary report or the subreport. Users can therefore view all records in both reports. | |
Ï | Ð | Can view specified records in the primary report and all records in the subreport. | Can view no records in the primary report and all records in the subreport. |
Ð | Ï | Can view all records in the primary report and specified records in the subreport. | Can view all records in the primary report and no records in the subreport. |
Ï | Ï | Can view specified records in both the primary report and the subreport. | Can view no records in either the primary report or the subreport. |
Ï - Security policy has been set and applied.
Ð - Security policy has not been set and applied.