SP.Web.getPushNotificationSubscribersByUser Method (sp.js)

Queries for the push notification subscribers over the site for the specified user.

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

SP.Web.getPushNotificationSubscribersByUser()

Parameters

  • userName
    A string that specifies the login name of the user.

Return value

SP.PushNotificationSubscriberCollection

Collection of push notification subscribers.

Remarks

It must not be null. It must not be empty.

REST resource endpoint

See Web resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/getPushNotificationSubscribersByUser(userName)

HTTP requests

This resource supports the following HTTP commands:

  • POST

GET syntax

GET http://<sitecollection>/<site>/_api/web/getPushNotificationSubscribersByUser(userName)

POST syntax

POST http://<sitecollection>/<site>/_api/web/getPushNotificationSubscribersByUser(userName)

Resource parameters

  • userName