I have a super annoying issue where this is the process:
- User fills in form
- My application uses CSOM to get a list of users from the form (these are selected by the user with people picker - I also want the
Author
) - I need to add these users to some groups, and here is the problem..
The ListItem
user fields are returning FieldUserValue
s rather than User
objects - and these don't contain the user's login name, so how am I supposed to add that user to a group?
It seems ridiculous that I have to write some query using the user's lookup ID, can't I just pass in the FieldUserValue
to a group creation method? The only way I have found is to pass in the UPN of the user.
Please can someone help it is so frustrating dealing with this system.