Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Feature Request: User Retrieval API for Managing Permissions #378

Open
Jyosua opened this issue May 30, 2018 · 0 comments
Open

Feature Request: User Retrieval API for Managing Permissions #378

Jyosua opened this issue May 30, 2018 · 0 comments

Comments

@Jyosua
Copy link

Jyosua commented May 30, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants