开发者

Sharepoint 2010 COM groups silverlight

开发者 https://www.devze.com 2023-02-28 20:24 出处:网络
I\'m getting开发者_开发技巧 the groups with: var GruposSP = web.SiteGroups; ClientContextLocator.ClientContextHome.Load(GruposSP, groups => (groups.Include(g => g.Users)), groups => (groups.

I'm getting开发者_开发技巧 the groups with:

var GruposSP = web.SiteGroups;
ClientContextLocator.ClientContextHome.Load(GruposSP, groups => (groups.Include(g => g.Users)), groups => (groups.Include(g => g.LoginName)));

And it throws me:

"Access Denied". You do not have permission to perform this action or access this resource

Is there any way to get the users from a site without permission?


My Solution:

With the next line you get the users and groups from the web

ListItemCollection usersList = ctx.Web.SiteUserInfoList.GetItems(CamlQuery.CreateAllItemsQuery());
0

精彩评论

暂无评论...
验证码 换一张
取 消