Download Cloud Rules - Formatting

Hi all,

We’re having to make a change to one of our cloud rules, I’ve gone to download the script however the formatting is quite ugly.

Is there a way we are able to download this script from ISC in a way that doesn’t require manual formatting - how it is being exported is difficult to interpret:

EG: you can see all the spacing, the \r\n - etc…

Hoping to get something like this (but without manual manipulation)

Cheers

Hi @SeanK-W

Try using the Visual Studio Code extension “SailPoint Identity Security Cloud“. Install and export the objects of your tenant here and view all the rules.

Thanks

If you need all the required steps. Let me know. Will share you the documentation for this.

Currently this extension does not support Cloud rules. You can view only Connector rules

I don’t think there is a ready solution available for this. However, I developed an application using NodeJS and Electron that reads the cloud rules using SP-Config API and displays the code formatted as shown below:

which can easily be downloaded as a java file attached.

Epic SER Multivalued Update_1760356154356.java (6.3 KB)

Oh Sorry, I missed that line. Thanks @iamnithesh .

1 Like

Is the application that your have developed is available to all ?

Hi @SeanK-W ,

I will recommend you to install the Command Line Interface(CLI) tool to download all the rules from the ISC tenant with a proper rule format as per below documentation which has information about installation, configuration & usage.

Note: I’m currently using the CLI tool to download the rules from the ISC tenant with a proper rule formatting.

3 Likes

Hi Manish,

I was mistaken when I originally made the post (will edit), this is actually a connector rule - not a cloud rule.

Which means I can see this rule via Visual Studio Code; however, the formatting is still the same :frowning:

Thank you Dinesh! I’ll look into this :slight_smile:

@SeanK-W you can also use a free online JSON escape/unescape editor, for example Free Online JSON Escape / Unescape Tool - FreeFormatter.com. Just paste your code from the script and hit the “Unescape JSON“ button.

1 Like

Hi @markomanium - this is EXACTLY what I am after; however, not sure about how safe it is to use being a public website… Do you know if there is a way SailPoint offer formatting for the code stored in their own DB?

@dineshdupati , I have tried your method but sadly the formatting persists:

image

you can use Java/.NET String Escaper | SailPoint Developer Community

2 Likes

Perfect! Now this is exactly what I was after.

Surprised it isn’t mentioned in any of the documentation… I’ll need to pay more attention to the tools tab on the dev site.

Cheers!

1 Like

In VS Code, if you right click on the rule and select “Edit script”, it will display as the format you are looking for. You can even edit and save without having to convert back to JSON.