# Component Security on a Custom Report

You can view the components on a custom report based on user roles and custom expressions.

## Procedure

1. From the navigation pane, go to Manage > Integration.

2. On the Developer tools tab, click Report.

3. Next to the Report Name under Actions, click Edit.

4. Optional: If your report has multiple pages, click the tab for the page that you want to edit.

5. Select the component and then under Properties, in the Component Security select one of the following:

   1. All: To allow everyone see the component, select this option.

   2. CommCell Admin: To allow only CommCell administrators see the component, select this option.

   3. Tenant Admin: To allow only only tenant administrators see the component, select this option.

   4. Custom: To allow users see the report based on the permissions, select this option, then in the Security Expression box, enter a JavaScript statement.

   5. For example, to allow MSP users see the component, in the Security Expression box, enter := return cv.isMspUser.

      Note

      To add the component security at page level, click settings beside the page name, and then configure the visibility from the Component Security list. This option is not available for default page.

6. To add a Visible Expression, move the toggle key to the right and enter a JavaScript statement.

   The component security retains the space of the hidden component with width lower than the viewport, so that the position of the adjacent component is also retained.

×

Loading...