SP.UserCollection.getById Method (sp.js)

Gets the user with the specified member identifier (ID).

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

SP.UserCollection.getById()

Parameters

  • id
    Type: int

    The member ID of the user.

Return value

Type: SP.User

The user with the specified member ID.

REST resource endpoint

See UserCollection resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/sitegroups(groupid)/users/getById(id)

HTTP requests

This resource supports the following HTTP commands:

  • POST

GET syntax

GET http://<sitecollection>/<site>/_api/web/sitegroups(groupid)/users/getById(id)

POST syntax

POST http://<sitecollection>/<site>/_api/web/sitegroups(groupid)/users/getById(id)

Resource parameters

  • id