Custom Fields Settings
Physically, controller is located in the main module. However, created a dedicated scope for REST (AJAX can be used to query as main.userfieldconfig.*).
For methods to operate correctly, application must have access not only to
userfieldconfig scope, but also to scope with updated field settings. For example, to update field settings in the RPA module, application must have access to both userfieldconfig, and rpa
Querying any of the method requires passing moduleId. This ID determines user access to fields.