通过除外部用户以外的所有人添加用户权限 [英] Get user permission when its added via everyone except external users

查看:105
本文介绍了通过除外部用户以外的所有人添加用户权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在从网站的共享点组中删除用户的权限,方法是加载用户组列表,然后使用csom从该组中删除。 / p>

 existingSiteUser.Groups.Where(gs => gs.Id!= web.AssociatedOwnerGroup.Id)  

如果通过&strong; 除外部用户或csom中的任何默认用户组以外的所有人在网站上提供用户权限,我们如何获得用户权限。


任何帮助都会很棒。







Rajendra Singh 

解决方案

嗨Rajendra,


你可以利用
Web。 GetUserEffectivePermissions方法
获取有效权限t指定用户在网站内的帽子。


以下文章供您参考。


https://social.msdn.microsoft.com/Forums/office/en-US/eeed7fba-b6e9-4a54-8eba-0d1e449f8f6c/client-object-model-to-check-the-user-role-assignment -in-sharepoint-2010?forum = sharepointdevelopmentprevious


https://stackoverflow.com/questions/27862632/get-all-the-users-based-on-a-specific-permission -using-csom-in-sharepoint-2013


最好的问候,


Dennis



Hi all,

I am removing permission of user from share point group for site, by loading list of group of user and then removing from that group using csom.

existingSiteUser.Groups.Where(gs => gs.Id != web.AssociatedOwnerGroup.Id) 

How can we get user permission if it given on site via everyone except external users or any default user group in csom.

Any help will be great.


Rajendra Singh 

解决方案

Hi Rajendra,

You could utilize Web.GetUserEffectivePermissions method to gets the effective permissions that the specified user has within the web site.

The following articles for your reference.

https://social.msdn.microsoft.com/Forums/office/en-US/eeed7fba-b6e9-4a54-8eba-0d1e449f8f6c/client-object-model-to-check-the-user-role-assignment-in-sharepoint-2010?forum=sharepointdevelopmentprevious

https://stackoverflow.com/questions/27862632/get-all-the-users-based-on-a-specific-permission-using-csom-in-sharepoint-2013

Best Regards,

Dennis


这篇关于通过除外部用户以外的所有人添加用户权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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