This project has moved. For the latest updates, please go here.

Sharepoint Groups

Dec 15, 2015 at 4:33 PM
Edited Dec 15, 2015 at 4:34 PM
Hi Yvand,

It is possible to resolve also Sharepoint Groups with PickerEntity class?
I'm trying to use the following code but the PickerEntity is not resolved.
                        SPGroup group = web.SiteGroups["GroupName"];
                        PickerEntity entity = new PickerEntity
                        {
                            Key = group.LoginName,
                            DisplayText = group.Name,
                            Description = group.Name,
                        };
                        entity.EntityData.Add("AccountName", group.LoginName);
                        entity.EntityData.Add("SPGroupID", group.ID.ToString());
                        entity.EntityData.Add("PrincipalType", "SharePointGroup");
                        entity = peopleEditor.ValidateEntity(entity);
Please note that the "entity.IsResolved" property value is False, but if I try the same code in an environment where LDAPCP is not installed, the entity is resolved.

Can you help me with this?

Thank you very much for your support,
Michael
Coordinator
Dec 30, 2015 at 3:24 PM
Hello Michael,
I'm not familiar with PeopleEditor.ValidateEntity, but without LDAPCP, on what claim type the permission is created?
What are you trying to achieve with this code?
thanks,
Yvan