Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Populate People/Group column in sharepoint list through code

$
0
0
Hi All,

To populate the people/group column in sharepoint i need to send data in the format as "ID;#username_alias". But this works if i know the user belongs to site say Http://bg4ws0209:3535/ , where the list is present. IF the user does not belong to the site , ID field becomes null and throws an exception "User Not found" (since i am using web services to do this). Also i need to maintain the permissions of the site Http://bg4ws0209:3535/ such that if "x" is not a user, i dont have permissions to add the user and then get the ID and then populate the username. Is there a way out of this?
Can anyone please help me out with this?

Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>