Archive for the ‘Sharepoint User Group’ Category

Find User from LookUp Field

 This code snippet is how to get user from the Lookup field here I am leaving upto SPUser object.   ►objItem is List Item which has user/group LookUp Field SPFieldLookupValue UserLookUPValue = new SPFieldLookupValue(objItem[“YourLookUPFieldName”].ToString());  if (((SPFieldUserValueCollection)objItem[[“YOURLOOKUPFIELDNAME”]).Count > 0)  {      while (intUserCount < ((SPFieldUserValueCollection)objItem[“YOURLOOKUPFIELDNAME”]).Count)      {          if (((SPFieldUserValueCollection)objItem[“YOURLOOKUPFIELDNAME”])[intUserCount].User != null)          {              //If [...]

Continue reading »

AD User Group in Sharepoint

An AD user by name domainName\ADUserName added in your SharePoint site in Site Owner group. Now you change the user name in AD ,this change will not reflect in Sharepoint. On reimport of user profile will update the User Profile Database . Sharepoint group uses UserInfo Table STSADM -o migrateuser -oldlogin domainName\ADUserName -newlogin domainName\ADNewUserName -ignoresidhistory [...]

Continue reading »

Follow

Get every new post delivered to your Inbox.