在 Sitecore 中查看和清除所有用户特定权限

发布于 2024-11-19 02:54:23 字数 171 浏览 2 评论 0原文

我们正在清理 Sitecore 实例中的权限,并且我们正在遇到多年来被授予特定访问权限的用户。现在我想将所有权限放入角色中,并且仅通过角色授予权限。

有没有办法查看专门分配给用户的权限?我们的用户数量足够少,我可以手动修复此问题,但安全查看器显示用户权限和角色权限的累积权限。

We are cleaning up the permissions in our Sitecore instance and we are running in to users that were granted specific access over the years. Now I would like to put all of our permissions in to roles and only grant rights via roles.

Is there a way to see the rights specifically assigned to a user? We have a small enough number of users that I could fix this manually, but the security viewer shows the cumulative permissions from user rights and role rights.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

情愿 2024-11-26 02:54:23

查询的想法确实有效。因此,您可以使用 Xpath Builder(在开发中心)来实现此目的。它会有点慢,但会为您提供以下项目:

/sitecore/content/myRoot//*[contains(@__Security,'username')]

The query idea actually worked. So you can use Xpath Builder (in Dev Center) for this. It will be a little slow, but gives you the items:

/sitecore/content/myRoot//*[contains(@__Security,'username')]

べ繥欢鉨o。 2024-11-26 02:54:23

乔什,
我刚刚发布了一个小脚本,应该可以帮助您继续前进。该脚本将显示 __security 字段的所有值,并允许您全部重置。您将需要进行修改才能为特定用户重置。

http://seankearney.com/post/Sitecore-Security-Report-and -重置.aspx

Josh,
I just released a little script that should help you get moving on this. This script will show you all values of the __security field and allow you to reset them all. You will need to modify to reset for a specific user.

http://seankearney.com/post/Sitecore-Security-Report-and-Reset.aspx

海夕 2024-11-26 02:54:23

我想在用 Rocks 进行一些测试后我会把它扔掉。

您可以报告 Sitecore Rocks 的安全性(如我对 Bryan 的评论中所述):

从 /sitecore/content/home/ 选择 @@ID 作为 ID、@@Name 作为名称、@@Path 作为路径、@__Security /*[contains(@__Security,'xxxx')];

您也可以使用查询重置安全字段!

更新集@__Security = "" from /sitecore/content/home//*[contains(@__Security,'xxxx')];

Figured I would throw this out there after some testing with Rocks.

You can report on security from Sitecore Rocks (as mentioned in my comment to Bryan):

select @@ID as ID, @@Name as Name, @@Path as Path, @__Security from /sitecore/content/home//*[contains(@__Security,'xxxx')];

You can also reset the security field with a query too!

update set @__Security = "" from /sitecore/content/home//*[contains(@__Security,'xxxx')];

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文