To disable a cloud rule entirely:
- Remove the rule from all source configurations that reference it
- This is effectively the same as disabling the rule
To enable or disable a code snippet within a cloud rule:(you already put this in your question)
- Use source attributes to control whether certain code paths execute
- In the rule, read the source attribute value and use it to execute code blocks conditionally
For managing global configuration used across your tenant across all sources to avoid configuring the same thing on each source:
- Use an IdentityNow source as a centralized property store - I have written a blog on how to use a source as a property store and find code snippets to read property value by passing key in cloud rule. Refer the 2nd one in this blog