RLMPermissionUser
@interface RLMPermissionUser : RLMObject
A representation of a sync user within the permissions system.
RLMPermissionUser objects are created automatically for each sync user which connects to a Realm, and can also be created manually if you wish to grant permissions to a user which has not yet connected to this Realm.
-
The unique Realm Object Server user ID string identifying this user. This will have the same value as
-[RLMSyncUser identity]
.Declaration
Objective-C
@property (nonatomic) NSString *_Nonnull identity;
Swift
var identity: String { get set }
-
The user’s private role. This will be initialized to a role named for the user’s identity that contains this user as its only member.
Declaration
Objective-C
@property (nonatomic) RLMPermissionRole *_Nonnull role;
Swift
var role: RLMPermissionRole { get set }
-
Roles which this user belongs to.
Declaration
Objective-C
@property (nonatomic, readonly) RLMLinkingObjects<RLMPermissionRole *> *_Nonnull roles;
Swift
var roles: RLMLinkingObjects { get }