安全修整的托管导航 [英] Security trimmed managed navigation

查看:81
本文介绍了安全修整的托管导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

专家们,

我需要使用JS开发经过安全调整的托管导航.我了解OOB管理的导航已进行了安全性调整,但由于某些要求(OOB不支持),因此我正在使用JS创建导航.有人可以建议我如何实现这一目标吗? 也可以有一些外部链接.

I need to develop security trimmed managed navigation using JS. I understand OOB managed navigation are security trimmed but I am creating my navigation using JS due to some requirement which is not supported OOB. Can anyone suggest how I can achieve this? There can be some external link as well.


此致

Ankit

推荐答案

嗨Ankit,

Hi Ankit,

我能想到的一种方法是让听众"作为每个节点的属性之一.在呈现导航链接时,只需验证当前登录的用户是否是用户"列表的一部分即可.指定并基于此隐藏/显示链接

One way i could think of is to have "Audience" as one of the property for each nodes. When rendering the navigation link, just verify whether current logged in user is part of the "Audience" specified and hide/show link based on that

用于验证用户是否属于该组的代码:

Code to verify whether the user is part of the group : 

https://sharepoint.stackexchange.com/questions/86912/check-if-user-is-in-a-specified-group

https://sharepoint.stackexchange.com/questions/86912/check-if-user-is-in-a-specified-group

此致

授予


这篇关于安全修整的托管导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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