For the user with “View Private Room” permission only it is possible to rewrite permission role (e.g. to admin) in /api/v1/me method response via some proxy tools (e.g. Charles) and get access to server`s permissions matrix and view Direct messages.
Tested on 3.3.3
Leave existing “Guest” role with only “View Private Room” permission and associate newly created user with it .
Install Charles or another network proxy
Enable local SSL proxy.
Turn on the rewrite tool and edit body response “roles” parameter to admin (“roles”: [“admin”]) for /api/v1/me method.
Reload Rocket page.
Now you can get https://your_server/admin/permissions page with current server`s permissions.
Now you can receive Direct Messages even if “View Direct Messages” permissions is disabled for you.
The user which is not meant to be able to participate in Direct Messaging gains the ability to do so and also gets access to the server`s permissions scheme.
I found out, that ANY user with the role without permissions at all, can be added to channel, private group or direct message, and can see permission matrix as well, following the steps describe in attached video.