How to make a entitlement as Requestable in SailPoint

In this post, we will see how we can make entitlement as requestable in SailPoint through java bean shell code.

If you want to make all your entitlements as requestable during group aggregation, then you can write the following code in your managed entitlement rule.

if(attribute.getvalue()!=null) {
attribute.setRequestable(true);
}

setRequestable() is the method name, we can set the value as true to make all entitlement as true.

We can also modify the above code if there is a requirement to make a few entitlements as Requestable. In this case, we have to compare the value of the entitlement like below:

if(attribute.getvalue()!=null) {
if(attribute.getvalue().equals("ent1") || attribute.getvalue().equals("ent2")) {
attribute.setRequestable(true);
}
}