开发者

Sharepoint 2010 COM groups silverlight

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜