Web.GetUserById method

SharePoint Online

Returns the user corresponding to the specified member identifier for the current site.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

public User GetUserById(
	int userId
)

Parameters

userId
Type: System.Int32

Specifies the member identifier.

Return value

Type: Microsoft.SharePoint.Client.User
The user corresponding to the specified member identifier.
Show: