How to Restrict Input Visibility by User Group in Custom Forms

The visibility of inputs in Custom Forms can be restricted by user groups, similar to how this can be done for outputs and other objects. Inputs created through InputBuilder can be displayed only to specified user groups by the method setUserGroupView. For users without the appropriate permissions, the input will not be rendered at all and will not be included when fetching the object.

The AbstractInputBuilder method to be used:

setUserGroupView(List<String> userGroupNames) See Groovy API documentation for more details.

The comma-separated concatenations of user group names can be max 255 characters long (calculation logic throws an error if this limit is exceeded).

Note that this implementation only works for top-level inputs, for example, the context parameters that are put directly inside of customFormProcessor.addOrUpdateInput(). It does not work on nested levels, like for example inline configurators, or on rows of inputs (for example in api.inputBuilderFactory().createRowLayout("Row") ).

Available since version 15.0.