Can we get old and current lcs in before provisioning rule?

:bangbang: Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.

Hi All,
I have a before provisioning rule for Open LDAP and i want to get the old and current lcs to compare the lcs to do some OU movement operation.
I have used below condition in the rule, does this bring old and current LCS from the plan? Any answer would be appreciated.

String oldlcs = plan.getObjectAttribute("oldlcs");
String currentlcs = plan.getObjectAttribute("currentlcs");

Thanks,
Shantha Kumar

Hi,

OldValue is available only with in the transforms context and will not be available in plan.

Regards,
VK.

Hi @venkateshkan Is there any way to get the oldlcs of the user in the cloud rule?
We can get the currentlcs like this:

String currentlcs = identity.getAttribute(“cloudLifecycleState”);

Its not available for any rule to process. Only you get is the current value on the identity attribute.

Regards,
VK.

1 Like

You get oldValue reference in Transform, create identity attributes for old LCS and new LCS then you can use them in Before Provisioning Rule.

Thanks
Krish