IBM Verify

 View Only

 Getting the requested value within the provisioning policy

Jordan Boncz's profile image
Jordan Boncz posted Sun October 05, 2025 07:05 PM

I am working on a workflow change to move the logic for setting the Active Directory description from the workflow to the Provisioning policy and I am running into an issue trying to get the requested value from within the provisioning policy code. 

Essentially for 99% of cases the Active Directory Description is subject.getPropertyAsString("bcCostCenterDesc"); but in a few very select cases we would like to allow the Active Directory Description to set to a custom 'note' of sorts. 

In the workflow I have it checking if the value begins with ':note:' and if it does it lets it go through, if it doesnt it sets the description to the bcCostCenterDesc. While transitioning it to the provisioning policy I am stumped on how to find what the requested value is. Per documentation there is a context object but It doesnt seem to have any attributes I can key in off of. 

Look forward to hearing from anyone regarding this issue.

Thanks.

Franz Wolfhagen's profile image
Franz Wolfhagen

I am not able to understand the flow you describe here - but let me try explain what I regard as "best practice" when working with this.

The first and most import rule is that you should never change the same attribute in a Provisioning Policy and an Operational Workflow (and do try to use the Provisioning Policy Entitlement Workflow - in general that is a left over from previous times but left in there for backwards compatibility).

In most cases you should handle the problem in the Provisioning Policies. My guess is that you want some users having another value in the AD Description - so the problem is how to identify these users upfront before the Policy is executed. If this is something that can be deducted by their user data then you can create a dynamic role and create a Policy for that role with a higher priority (lower priority value :-)) that overrides the default value - ensure the attribute join directive is set to "priority".

If this is something that cannot be derived then you can create a static role for those users that drives the process.

The problem in this scenario is that you cannot have "mandatory value" for the default scenario and the "allow values" if you want to automate the process - and changing it in the Operation Account workflows is not an option as the value will be validate there as well.

HTH