3.2.5.143.2.2.9 GetUserById

Return Type: Microsoft.SharePoint.Client.User

Returns the user corresponding to the specified member identifier for the current site (2).<148>

Parameters:

userId: Specifies the member identifier.

Type: CSOM Int32

Exceptions:

Error Code

Error Type Name

Condition

-2146232832

Microsoft.SharePoint.SPException

User cannot be found.

-2147024891

System.UnauthorizedAccessException

Access is denied.