¿Cómo puedo obtener asignaciones de funciones completas de SP 2010 usando C # y la interfaz del modelo de objetos del cliente?

I've been trying to get all the RoleAssignments using the COM interface. the problem is that i get the AD user group names instead of the actual users inside the groups.

mi código se parece a esto:

ClientContext cc = new ClientContext(#SiteURL);

RoleAssignmentCollection Roles = cc.Web.RoleAssignments;

IEnumerable<RoleAssignment> newRoleAssignmentsCollection = cc.LoadQuery(Role.Include(role => role.Member));

AsyncDelegate execDel = new AsyncDelegate(cc.ExecuteQuery);

execDel.BeginInvoke(arg => { cc.ExecuteQuery();

foreach (RoleAssignment RoleAssign in newRoleAssignmentsCollection)
{ 
    RoleAssign.Member.LoginName; // <------- Here is my problem!!! 
}

}, null);

Can anyone please tell me how to get the users which are inside the Active Directory group?

Thanks in advance, Itay.

preguntado el 08 de noviembre de 11 a las 13:11

you need to get all users from particular group? or get all users that have particular rights? -

All users that have paticular right would help. but i can manage with all the users from particular group as well... -

0 Respuestas

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.