27 def updateUser(self, user, configurationAttributes):
28 attributes = user.getCustomAttributes()
31 attrPrefferedLanguage = GluuCustomAttribute(
"preferredLanguage",
"en-us")
32 attributes.add(attrPrefferedLanguage)
35 attrUserPassword = GluuCustomAttribute(
"userPassword",
"test")
36 attributes.add(attrUserPassword)
39 for attribute
in attributes:
40 attrName = attribute.getName()
41 if ((
"givenname" == StringHelper.toLowerCase(attrName))
and StringHelper.isNotEmpty(attribute.getValue())):
42 attribute.setValue(StringHelper.removeMultipleSpaces(attribute.getValue()) +
" (updated)")