Disable Policy In SailPoint ISC

Hi Folks,

New to ISC, So just trying to create a disable policy for a source, in that there is a attribute called user valid to in which we need to enter the value of the one day before date of when the account is disabled i.e. yesterday’s date in yyyy-mm-dd format.

So tried to write the below transform:

“name”: “User Valid To”,

        "transform": {

            "type": "static",

            "attributes": {

                "date": {

                         "type": "dateFormat",

                        "attributes": {

                            "inputFormat": "yyyy-MM-dd'T'HH:mm",

                            "outputFormat": "yyyy-MM-dd",

                            "input": {

                                    

                                    "attributes": {

                                        "expression": "now-1d",

                                        "roundUp": true

                                        },

                                    "type": "dateMath"

                            }

                        }

                    },

                "value":"$date"

            }

        },

Can anybody give suggestions if it is correct or need any updation.

Hi @Amsingh1

Your Transform doesn’t seem correct.

Try this one and let me know if it works fine.

{
“name”: “User Valid To”,
“type”: “dateFormat”,
“attributes”: {
“inputFormat”: “yyyy-MM-dd’T’HH:mm”,
“outputFormat”: “yyyy-MM-dd”,
“input”: {
“type”: “dateMath”,
“attributes”: {
“expression”: “now-1d”,
“roundUp”: true
}
}
}
}

Hi @nhassan ,

could you please let me know like what was the issue with previous one

I don’t think a static transform contain other transforms inside it e.g dateFormat or dateMath as It only accepts fixed text or numbers.

Did you test my transform and did it work as per your desired result?

Actually I used my version in identity profile just to preview the value it is fetching so it is giving previous day date.

1 Like

This is incorrect. You can nest other transforms within a static transform in order to populate variables that you can then reference in Apache Velocity scripting within the static transform’s value attribute.

1 Like

Thanks for clarifying, also one thing I want to check, Is there any way I check that the disable policy is working like how I can test this