Realm.Sync.Permission

A permission which can be applied to a Realm, Class, or specific Object. Permissions are applied by adding the permission to the Realm.Permission singleton object, the RealmClass.Permission object for the desired class, or to a user-defined Realm.List<Realm.Permission> property on a specific Object instance. The meaning of each of the properties of Permission depend on what the permission is applied to, and so are left undocumented here.

Since: 2.3.0

Related Classes

Class
Realm
Role
User
canCreate

Whether the user can create new objects of the type this Permission is attached to.

This property is only applicable to Permissions attached to Classes, and not to Realms or Objects.

Type:
boolean
canDelete

Whether the user can delete the object to which this Permission is attached.

This property is only applicable to Permissions attached to Objects, and not to Realms or Classes.

Type:
boolean
canModifySchema

Whether the user can modify the schema of the Realm which this Permission is attached to.

This property is only applicable to Permissions attached to Realms, and not to Realms or Objects.

Type:
boolean
canQuery

Whether the user can subscribe to queries for this object type.

This property is only applicable to Permissions attached to Classes, and not to Realms or Objects.

Type:
boolean
canRead

Whether the user can read the object to which this Permission is attached.

Type:
boolean
canSetPermissions

Whether the user can add or modify Permissions for the object which this Permission is attached to.

Type:
boolean
canUpdate

Whether the user can modify the object to which this Permission is attached.

Type:
boolean
role

The Role which this Permission applies to. All users within the Role are granted the permissions specified by the fields below any objects/classes/realms which use this Permission.

This property cannot be modified once set.

Type:
Role