SP.Web.getUserById Method (sp.js)
Returns the user corresponding to the specified member identifier for the current site.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.Web.getUserById()
Parameters
- userId
A 32-bit integer that specifies the member identifier.
Return value
SP.User
The user corresponding to the specified member identifier.
REST resource endpoint
See Web resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/getUserById(userId)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/getUserById(userId)
Resource parameters
- userId