EZP-22146: fixed: assert assignment type
Merge pull request #717 from ezsystems/fix-EZP-22146-role-groupId-removal

Fix EZP-22146: roles applied to many users cause fatal errors