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 (assign, readwrite, nonatomic) NSString *_Nonnull identity; -
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 (assign, readwrite, nonatomic) RLMPermissionRole *_Nonnull role; -
Roles which this user belongs to.
Declaration
Objective-C
@property (readonly, nonatomic) RLMLinkingObjects<RLMPermissionRole *> *_Nonnull roles; -
Get the user object in the given Realm, creating it if needed.
Declaration
Objective-C
+ (nonnull RLMPermissionUser *)userInRealm:(nonnull RLMRealm *)realm withIdentity:(nonnull NSString *)identity;
View on GitHub
Install in Dash
RLMPermissionUser Class Reference