I've written a custom script for cache refresh to populate the user role based on the existence of a user attribute synced in.
def updateUser(self, user, configurationAttributes):
print "Cache refresh. UpdateUser method"
attributes = user.getCustomAttributes()
attr1 = user.getAttribute("attr1")
attr2 = user.getAttribute("attr2")
print "attr1 is: %s" % attr1
print "attr2 is: %s" % attr1
# Check if attr1 or attr2 is present and set role accordingly
print "User is Role1"
role = GluuCustomAttribute("role", "Role1")
print "User is Role2"
role = GluuCustomAttribute("role", "Role2")
However, when I enabled the script and ran cache refresh, only new users or users with changes are updated.
Is it possible to re-run the cache refresh on the entire user population so that I can add in the role attribute for all the users already synced in?