By: Qasim Baqri user 18 Nov 2015 at 5:47 a.m. CST

0 Responses
Qasim Baqri gravatar
Hi, Is it possible to populate an attribute based on group while doing a catch refresh using Cache Refresh script. Something like : for attribute in attributes: attrName = attribute.getName() if (("memberOf" == StringHelper.toLowerCase(attrName)) and StringHelper.isNotEmpty(attribute.getValue())): if (("G1" == attribute.getValue()): attrUserPrivilages = GluuCustomAttribute("privilages", "P1 P2 P3") attributes.add(attrUserPrivilages) else if(("G2" == attribute.getValue()): attrUserPrivilages = GluuCustomAttribute("privilages", "P4 P5 P6") attributes.add(attrUserPrivilages) ... ... ... return True