SP.Group.canCurrentUserViewMembership property (sp.js)
Gets a value that indicates whether the current user can view the membership of the group.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.Group.get_canCurrentUserViewMembership ()
Return value
Type: Boolean
true if the current user can view the membership of the group; otherwise, false.
REST resource endpoint
See Group resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/sitegroups(groupid)/canCurrentUserViewMembership
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/sitegroups(groupid)/canCurrentUserViewMembership
GET syntax
GET http://<sitecollection>/<site>/_api/web/sitegroups(groupid)/canCurrentUserViewMembership