在领域对象服务器上的不同用户之间共享领域? [英] Share realm between different users on Realm Object Server?

查看:81
本文介绍了在领域对象服务器上的不同用户之间共享领域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前是否存在允许多个用户访问同一领域的方法?

现在,我唯一能找到的方法是使用应用程序帐户"代替用户帐户,如解决方案

通常,您可以在虚拟路径上连接到Realm文件.它们必须始终是绝对的,因此请以斜杠/开头,并且切勿带有文件后缀.具有两个下划线的文件名的领域被认为是Realm Object Server的内部状态,并且具有特殊含义.

如果路径以/~/为前缀(例如主目录),则~将由用户ID扩展,该用户的ID具有创建,读取和写入此虚拟文件中的Realm文件的特权.目录.

如果没有这样的前缀(例如/global),则这是一个全局领域.全局领域只能由管理员用户创建,但默认情况下,每个人都可以读取.

很遗憾,我们还没有提供直接的客户端API来管理权限.但是,您可以使用浏览器访问位于/__admin的管理领域,并找到给定文件的权限.设置userPermission特定于此用户.没有设置用户的Permission是默认权限.它们适用于未配置特定权限的所有用户.默认情况下,所有者通过显式Permission条目具有完全访问权限.

Is there currently a way to allow multiple users to access the same Realm?

Right now the only way I could find is to use an 'app account' instead of an user account, as proposed in another question.

thanks!

解决方案

In general, you can connect to a Realm file at a virtual path. They must be always absolute, so begin with a leading slash / and never carry a file suffix. Realms at a file name with two leading underscores are considered internal state of the Realm Object Server and have special meaning.

If a path is prefixed by /~/ (like the home directory), the ~ will be expanded by the ID of the user, who is exclusively privileged to create, read and write to Realm files placed within this virtual directory.

If there is no such prefix (e.g. /global), then this is a global Realm. Global Realms may only be created by admin users, but are by default readable by everyone.

Unfortunately we don't offer a direct client-side API yet to manage permissions. But you can access the admin realm living at /__admin with the browser and find the permissions for the given file. Permission where the user is set are specific to this user. The Permission where no user is set are the default permissions. They apply for all users who don't have specific permissions configured. The owner has full access by default by an explicit Permission entry.

这篇关于在领域对象服务器上的不同用户之间共享领域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆