简体   繁体   中英

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());

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM