在自定义列表中显示所有用户组 [英] Show all user groups in a custom list

查看:86
本文介绍了在自定义列表中显示所有用户组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在自定义列表中显示所有用户组的列表.

I need to show the list of all user groups in a custom list.

我有一个自定义列表,其中每个记录应显示用户所属的所有组.

I have a custom list where each record should show all groups that a user is part of. 

要恢复,我想获得检查用户权限"的结果,在另一个列表中,并为我要检查的用户使用一个变量.

To resume, I'd like to have the results of "Check user permission" in another list and using a variable for the user that I want to check.

您能帮我吗?

推荐答案

我们可以创建一个可视化Web部件,使用服务器对象模型来获取所有用户组,并在gridview中显示数据.

We can create a visual web part, use Server Object Model to get all the user groups and show the data in a gridview.

按用户添加过滤器以管理用户组.

Add the filter by user to filer the user groups.

如果您想将所有组保存在自定义列表中,我们可以创建一个计时器作业,以将数据添加到自定义列表中.

If you want to save all the groups in a custom list, we can create a timer job to add the data into custom list.

以下文章供您参考:

在SharePoint 2010中创建可视Web部件

https://msdn.microsoft.com/zh-我们/library/office/ff597539(v=office.14).aspx

以编程方式获取具有组名的SharePoint用户

http://sharepoint-works.blogspot.sg/2012/05 /programmatically-get-sharepoint-users.html

在SharePoint 2010中创建针对特定服务的计时器作业

https://msdn.microsoft.com/zh-我们/library/office/hh528519(v=office.14).aspx

最好的问候,

丹尼斯


这篇关于在自定义列表中显示所有用户组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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