I tried to use the dynamic groups feature as follows:
getDfSession().addDynamicGroup("dm_superusers_dynamic")
but it seems that after that line executes the user is still not a superuser. I added the parent role which contains the actual role the user belongs to, as well as, adding the actual user directly as a potential members of the dm_superusers_dynamic role.
I used the following test which returns false:
getDfSession().getUser(null).isSuperUser()
I'm trying to update an attribute which a typical user cannot (I get the no updateable error), but which works if the user is a superuser.
FYI: The user does have DELETE permit on the document.
Am I missing something?