I am writing a user to a SharePoint list.
I read that the SharePoint user field contains a line like this inside it:
userId;#userLoginName
I tried formatting in the same way when writing to the User field, for example, when I write this line, it works:
9;#i:0#.f|membership|ectropy@example.org
But what is strange (at least for me) is that 9;#it seems to work or even 9. Even if I donโt transmit the information userLoginNameat all loginId, it seems to be enough to find out which user I'm talking to.
This, apparently, means that when writing to a SharePoint user field, you only need the identifier userLoginName, and, indeed, everything after loginIddoes not matter.
Am I correcting my reasoning here? Or maybe there were unforeseen consequences if I left userLoginName information?
source
share