I'm having a play around with the client side object model and apps for SharePoint Online. I can retrieve the information from a Person and Groups field using a FieldUserValue object, however, how can I determine from this if the value entered is simply a user, or a SharePoint group?
As far as I can tell, the FieldUserValue only has a LookupId and LookupValue as its properties, which doesn't specify if it is a group or not. Have I gone the wrong way about this and is there a much better way of querying the field and checking if the value is a user of SharePoint group?
Thanks
FieldUserValue singleValue = (FieldUserValue)targetItem["Single"];FieldUserValue[] multValue = targetItem["Multiple"] as FieldUserValue[];from there. Also looking at this answer, you can guess which field interests you in your case (instead of "Single" and "Multiple") - Kilazur