Hi Matt,
>> Is it possible to configure Gluu to automatically add custom attributes to users with some default value when they get created in OpenDJ, say when CachRefresh runs?
Yes, it's possible.
Here is what you can do:
- Create a custom attribute from oxTrust.
- Add and populate this attribute with specified values durning Cache Refresh.
- Enable this script for Cache Refresh
In order to achieve #2 from above, you can utilize Cache Refresh script ( Configuration --> Manage Custom Script --> 'Cache Refresh' tab )
After adding your custom attribute and value in CR script, to enable it.. you need to use 'Update & Validate Script' from Cache Refresh page.
Just to give you an example.. let's say we need to add 'company = Gluu Inc' for all users. We can add some quick jython pieces like below in CR script...
```
newAttrCompany = GluuCustomAttribute("company", "Gluu Inc")
attributes.add(newAttrCompany)
```