KRACOEUS-6294: code changes for doc level role conversion