Questions tagged [spuserfield]

7 questions
2
votes
2 answers

SharePoint CSOM: How to update person or group field using ValidateUpdateListItem?

I am updating a SharePoint list item using the ValidateUpdateListItem method of the client-side object model to prevent creation of a new item version. This basically works fine for all fields except the ones with person or group field type. Does…
Erwin
  • 33
  • 1
  • 1
  • 6
2
votes
1 answer

Sharepoint SPUserField

Is it possible to use the SPUserField in a custom aspx page without the SPUserField being bound to a field (it always asks for FieldName). I basically have a custom page which ultimately creates a list item, i want the user to be able to pick…
SteveCl
  • 4,529
  • 6
  • 29
  • 38
1
vote
1 answer

Sharepoint SPFx spuser getting addition fields

I'm using the SPFx with React in Typescript and able to get the SPUser, but it only has a couple of fields like displayName, email, and loginName. Is there a way to get the Department of the user? Or do I have to use PNP-JS? Example how I get the…
1
vote
2 answers

Updating User field in SharePoint

I am harnessing batch update of SharePoint list in order to update my list items. I have a field of SPUser type named as 'UserName'. If i try to update the value of that particular field using batch, am obtaining unexpected error. I tried out both…
Raghu
  • 185
  • 2
  • 7
  • 18
1
vote
0 answers

sharepoint 2013 user field value types?

i would like to read a user field value from properties.AfterProperties(or the list item) in an ItemUpdating event receiver and get a SPUser (or at least a SPFieldUserValue) object so i tried: var fldValue = properties.AfterProperties[fldName] ??…
garglblarg
  • 576
  • 1
  • 8
  • 16
0
votes
1 answer

Convert text to UserField in SharePoint2010

How to convert simple text to userField in SharePoint2010 library? Idea: I uploading specific document in xml format, that contains text field in next format - domain\username (e.g. 'CSIA\ROV'). My library has a field with type UserField (Person or…
Witcher
  • 1,070
  • 2
  • 15
  • 38
0
votes
1 answer

How to insert 'Person or Group' field in list using VS2013?

I am using string field = list.Fields.Add(StaticName, SPFieldType.User, true); SPFieldUser user = new SPFieldUser(list.Fields, field); user.AllowMultipleValues = allowMultiple; user.Required = Required; user.SelectionMode = mode; user.LookupField =…