COOK-2210 New way to manage user rights

Depends on COOK-2211
Still need to find a way to hnadle modified permissions, do not merge it yet, I'll provide an update.