[SP-1521]: Backport of MONDRIAN-2141 - Roles defined in DSPs don't work in PUC (5.2)

There are fix and unit tests.
Merge pull request #2080 from TatsianaKasiankova/SP-1521

[SP-1521]: Backport of MONDRIAN-2141 - Roles defined in DSPs don't work in PUC (5.2)