SP.User.update() Method

Applies to: SharePoint Foundation 2010

Updates the user with changes that have been made to the user properties.

SP.User.update();

Applies To

SP.User Class

Exceptions

Exceptions

Descriptions

[Microsoft.SharePoint.SPDuplicateValuesFoundException]

Duplicate value was found for one or more user properties. Error code: -2130575169.

[Microsoft.SharePoint.SPException]

User does not exist. Error code = -2130575338.

[Microsoft.SharePoint.SPListDataValidationException]

Validation failed for a field in the corresponding user information list item. Error code = -2130575163.

[Microsoft.SharePoint.SPListDataValidationException]

Validation failed for the corresponding user information list item. Error code = -2130575162.

[Microsoft.SharePoint.SPListDataValidationException]

Validation failed for the corresponding user information list item or one of the user information list item fields. Error code = -2130575161.

[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: -2147024891.

See Also

Reference

SP.User Methods

SP.User Properties

SP Namespace