KRACOEUS-6294: code changes for doc level role conversion

These are code changes for doc level conversions.

These code changes can now be merged at anytime.  Our environments will need the conversion program to be executed for doc level access to be properly migrated