Realm.Sync.User.PermissionChange

Objects of this class allow to change permissions of owned Realms. They are created exclusively by the client and are processed by the server as indicated by the status fields. PermissionChange objects allow to grant and revoke permissions by setting mayRead, mayWrite and mayManage accordingly. If any of these flags are not set, these are merged with either the existing or default permissions as applicable. As a side-effect this causes that the default permissions are permanently materialized for the affected Realm files and the affected user. Once the request has been processed, the Status, StatusMessage, and ErrorCode will be updated accordingly.

createdAt

Gets the creation time of this object.

Type:
Date
id

Gets the unique identifier of this object in the Management realm.

Type:
string
mayManage

Should the user be allowed to manage the Realm?

Type:
bool
mayRead

Should the user be allowed to read from the Realm?

Type:
bool
mayWrite

Should the user be allowed to write to the Realm?

Type:
bool
realmUrl

The URL for the Realm that the changes should apply to.

Type:
string
statusCode
statusMessage

A detailed message describing the status (success, error) of the operation. null if the object has not been processed yet. Filled by the server after an object was processed with additional info explaining the status if necessary.

updatedAt

Gets when the object was updated the last time.

Type:
Date
userId

The identifier of the user who will have changed permissions

Type:
string