I need to Generate the current date in ‘yyyy-mm-dd’ format, I tried below transform but its showing me 8601 FORMATS only, can’t we get the date in this format?
not sure if this reflects what you’re actually trying to do with your transform or if it’s just an example, but just as a heads-up - it’s not best practice to tie an identity attribute to a transform that returns the current date/time. this will then update for every user every time identities are processed, which will cause a lot of annoying clutter in the Access History list.
We are currently implementing this for testing purposes, and later it will be integrated into our account provisioning plan. Before incorporating it into our provisioning policy, I wanted to validate the format with you to ensure everything aligns with best practices.
Thank you in advance for your guidance and suggestions.
Hey , I tried its not working showing me blank output. Shall I put my requirement here again for better understanding ?
I am looking to pass current date of today in my Disable Account policy in this format yyyy-mm-dd format.
Hey @amishra97 , I tried its not working showing me blank output. Shall I put my requirement here again for better understanding ?
I am looking to pass current date of today in my Disable Account policy in this format yyyy-mm-dd format. Can you suggest what should be the best option.
The issue with your original transform was a format mismatch between the dateMath output and dateFormat input expectations:dateMath with "expression": "now" outputs in format "yyyy-MM-dd'T'HH:mm". This mismatch caused the blank output
Update your Disable policy by referring the above transform. For example, the below AD policy referred the transform in the description AD attribute and given you the output as “Disabled by ISC on 2025-09-09“