SP.GroupCollection.getById(id) Method
Applies to: SharePoint Foundation 2010
Returns a group from the collection based on the member ID of the group.
var value = SP.GroupCollection.getById(id);
Parameters
- id
A 32-bit integer that specifies the member ID.
Type: Int32
Return Value
Type: SP.Group
Applies To
Exceptions
- SPException
The group cannot be found. Error Code: -2130575246.
- ArgumentException
An unknown or incorrect group collection type is to be initialized. Error Code: -2147024809.
- UnauthorizedAccessException
The current user has insufficient permissions. Error Code: -2147024891.