Restricting access to debugging for services
You might need to limit access to debugging functions in the Inspector. For services other than human services, you can control which users have the ability to debug services. To edit the settings, copy the code snippet and then make the necessary changes.
The settings are checked by the server that runs the service. They need to be applied to the configuration file of your Business Automation Studio when you debug locally in your designer. The configuration file of the online server is checked when you run and debug on an online workflow server.
The following elements enable you to configure debugging functions for services.
| Element | Default setting | Description |
|---|---|---|
<enabled merge="replace">true</enabled>
|
true
|
On Business Automation Studio: Establishes whether debugging of services is enabled. If set to false,
when you attempt to debug a service in the Inspector, the service simply runs without any debugging
feedback.On the workflow server: Establishes whether running and debugging of services is enabled. If set to false, your attempt to run or debug a service in the Inspector is rejected. |
<enforce-debug-role
merge="replace">true</enforce-debug-role>
|
false
|
Establishes whether users who don't belong to the Debug group (defined in the
following setting) can access the debugging function. Only one user role can be defined. By
default, this element is set to |
<debug-role merge="replace">debug</debug-role>
|
debug
|
Specifies the group that users must be a member of so they can access the
debugging function. Only one group can be defined. If one or both of the preceding settings is
false ( If both of the preceding settings are true, then
|
<server>
<debug>
<enabled merge="replace">true</enabled>
<enforce-debug-role merge="replace">true</enforce-debug-role>
<debug-role merge="replace">debug</debug-role>
</debug>
</server>
For information about the 100Custom.xml file's location and how to create, modify, and deploy it, see The 100Custom.xml file and configuration.