隐藏基于AD用户组的列

隐藏基于AD用户组的列

问题描述:

你好

任何基于AD用户组隐藏EditForm.aspx中列的解决方案.

Any solution to hide column in EditForm.aspx based on AD User Group.

谢谢.

你好Ameenah,

Hi Ameenah,

对于您的请求,建议您创建REST服务并使用  SPUtility.GetPrincipalsInGroup从域组中获取用户.然后使用CSR隐藏基于用户的列.

For your request, I suggest you creating a REST service and using  SPUtility.GetPrincipalsInGroup to get users from the domain group. Then use CSR to hide the columns based on the users.

参考:

使用Sharepoint API获取AD域组的成员

Getting members of an AD domain group using Sharepoint API

https://stackoverflow.com/questions /4314767/使用共享点API获取一个广告域组的成员

类似的帖子供您参考:

https://sharepoint.stackexchange .com/questions/184654/hide-columns-in-new-edit-form-for-specific-users/184713

最诚挚的问候,

Grace Wang

Grace Wang