pem.setMemberSubscriptionRestrictions

This method is supported by Operations starting from version 5.4.7.

The method sets the subscriptions access privileges for a staff member.

The method has the following input parameter:

Name

Type

Short Description

member_id

int

Identifier of the staff member for whom the available access options are to be set.

restrictions

struct

Information about subscription access settings.

  • access_all_subscriptions

boolean

The parameter value can be as follow:

  • 1 – The specified staff member can access all the clients subscriptions.
  • 0 – The specified staff member can access only the subscriptions listed in the [subscriptions] parameter.
  • [subscriptions]

list of int

Identifiers of the subscriptions to which the staff member has access. (This parameter is optional: it is required only in case of restricted access).

The method does not have any output parameters.