Using Credentials in ID Cloud Scheduler script (without hardcording)

Hi,

Any advice on how to use credentials in Identity cloud scheduler without exposing the creds. I have use the AM authenticate endpoint to trigger a journey with a service account username and password.

Please let me know what are the options. I tried openidm decrypt against the service account password field , but that didnot work.

I tried to use ESV in a IDM scheduler systemEnv.getProperty(‘esv.****’), didn’t work.

Any suggestions please.

Thanks -Mat

@mdaveiam you’re using the right approach, but invoking the wrong object. See: Use ESVs in scripts :: ForgeRock Identity Cloud Docs

e.g:

identityServer.getProperty("esv.my.variable")
2 Likes

Thanks patrick, it is working now, seems like when i did that initially , it took a bit before the variable was availble after it was created.

Cheers.

1 Like