pem.exchange.grantDeliveryPermissions

This method is supported by Operations starting from version 2.9 hotfix03

This method grants the Send As or Send On Behalf delivery permissions to the list of Hosted Exchange entities (Mailboxes and Distribution Lists) for the specified Hosted Exchange entity (Mailbox, Distribution List, and Pubic Folder).

The method has the following input parameters:

Name

Type

Short Description

[mailbox_id]

int

ID of Mailbox

[distribution_list_id]

int

Distribution List ID

[public_folder_id]

int

Public Folder ID

permissions

array of struct

The list of Hosted Exchange entities to which the delivery permissions are granted.

  • trustee

struct

Hosted Exchange entity (Mailbox and Distribution List) and its delivery permission

  • [mailbox_id]

int

Mailbox ID

  • [distribution_list_id]

int

Distribution List ID

  • [display_name]

string

Display Name of Hosted Exchange entity. This parameter is optional. It is ignored if the parameter is specified.

  • permission

int

Delivery permission. There are the following options:

  • 1 – Send As
  • 2 – Send On Behalf

Notes:

1. The mailbox_id, distribution_list_id, and public_folder_id optional parameters are mutually exclusive. The one Hosted Exchange entity should be specified.

2. The method can take the output of the pem.exchange.getDeliveryPermissionsCandidates method.

The method has no output parameters.

Note: This method can also be called under Reseller permissions.