通过除外部用户以外的所有人添加用户权限 [英] Get user permission when its added via everyone except external users
问题描述
大家好,
我正在从网站的共享点组中删除用户的权限,方法是加载用户组列表,然后使用csom从该组中删除。 / p>
existingSiteUser.Groups.Where(gs => gs.Id!= web.AssociatedOwnerGroup.Id)
如果通过&strong; 除外部用户或csom中的任何默认用户组以外的所有人在网站上提供用户权限,我们如何获得用户权限。
任何帮助都会很棒。
Rajendra Singh
嗨Rajendra,
你可以利用
Web。 GetUserEffectivePermissions方法获取有效权限t指定用户在网站内的帽子。
以下文章供您参考。
最好的问候,
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.
Best Regards,
Dennis
这篇关于通过除外部用户以外的所有人添加用户权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!