realm-object-server
realm-object-server copied to clipboard
Feature Request: User Retrieval API for Managing Permissions
Goals
If I'm logged into a shared, partially synced realm (such as the default realm) as an admin user, I may want to be able to manage the permissions for another user. This is technically already possible through the current API:
await realm.WriteAsync(tempRealm => {
var testRole = PermissionRole.Get(tempRealm, "testrole");
testRole.Users.Add(PermissionUser.Get(tempRealm, "internalUserIdentity"));
var permission = Permission.Get(testRole, tempRealm);
permission.CanUpdate = true;
permission.CanModifySchema = true;
permission.CanRead = true;
permission.CanQuery = true;
});
The problem is that I have no way of programmatically obtaining the user Identity (marked as internalUserIdentity above) without being logged in as that user, so any user management would currently have to be done in Realm Studio and requires some technical knowledge of how Realm works.
Expected Results
I would like to be able to retrieve a list of users for use with the permissions API.