Roles and permissions


Hi, I’m very new to Realm platform
I’m walking through the doc and created some sample realm, but I found that the roles and permissions are not working.

I use .NET C# and when I try the code in this section:

// List all roles
var roles = realm.All<PermissionRole>();

I got this exception:
System.ArgumentException: ‘The class PermissionRole is not in the limited set of classes for this realm’

And I don’t see those __Role, __Permission in the Realm Studio (I’ve checked the “show system realms, classes…etc”) like below:

Am I missing anything?


How are you opening the Realm? If those are missing, it’s probably because you’re using FullSyncConfiguration. You can read up here on how to open a Realm in query based mode.


Thanks, will try that.