IAdmExchangeMailboxRights

The IAdmExchangeMailboxRights interface enables management of access rights to an Exchange mailbox. The interface allows you to modify mailbox rights in two ways: either by overriding all current access permissions for a mailbox or by adding/removing a permission without changing the existing permissions.

Inheritance: IUnknown

To create a new instance of the IAdmExchangeMailboxRights interface, you need to call the default constructor of the AdmExchangeMailboxRights class that implements the interface.

 How
PowerShell
[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")

$mailboxRights = New-Object "Softerra.Adaxes.Adsi.Exchange.AdmExchangeMailboxRights"
C#
using Softerra.Adaxes.Interop.Adsi;
using Softerra.Adaxes.Adsi;
using Softerra.Adaxes.Interop.Adsi.Exchange;
using Softerra.Adaxes.Interop.Adsi.PersistentObjects;
class Program
{
    static void Main(string[] args)
    {
        AdmExchangeMailboxRights mailboxRights =
            new AdmExchangeMailboxRights();
    }
}

Methods

Properties

Details

AddPermission()

Adds the specified permission to the current mailbox rights.

void AddPermission(IAdmExchangeMailboxPermission permission)

AddModification()

Adds the specified modification to the current mailbox rights.

void AddModification(IAdmExchangeMailboxRightsModification modification)

GetPermissions()

Returns an array of the current mailbox rights.

IAdmExchangeMailboxPermission[] GetPermissions()

GetModifications()

Returns an array of all modifications to be performed on the current mailbox rights.

IAdmExchangeMailboxRightsModification[] GetModifications()

RemovePermission()

Removes the specified permission from the current mailbox rights.

void RemovePermission(IAdmExchangeMailboxPermission permission)

RemoveModification()

Removes the specified modification from the current mailbox rights.

void RemoveModification(IAdmExchangeMailboxRightsModification modification)

SetPermissions()

Sets an array of permissions to be applied to the mailbox.

void SetPermissions(IAdmExchangeMailboxPermission[] permissions)

SetModifications()

Sets an array of modifications to be performed on the permissions for the mailbox. The method discards all existing modifications and replaces them with the modifications specified in the modifications parameter.

void SetModifications(IAdmExchangeMailboxRightsModification[] modifications)

GetTrusteesGrantedRights()

Returns an array of trustees who are granted the specified rights for the mailbox.

IAdmObjectReference[] GetTrusteesGrantedRights(ADM_EXCHANGE_MAILBOX_RIGHTS_ENUM permissions)

Parameters

The permissions parameter specifies the type of permissions that a trustee should be granted in order to be returned by the method.


SetTrusteesGrantedRights()

Modifies the current instance of the interface so that the specified trustees are granted the specified mailbox access permissions.

void SetTrusteesGrantedRights(IAdmObjectReference[] trustees,
                              ADM_EXCHANGE_MAILBOX_RIGHTS_ENUM permissions)

Parameters

  • trustees - Specifies the trustees whom the permissions will be granted.
  • permissions - Specifies the permissions that will be granted.

Owner

Gets or sets the mailbox owner.


OwnerModificationEnabled

Gets or sets a value indicating whether the Owner property will be modified.

  • Type:
  • bool
  • Access:
  • Read/Write

PermissionsModificationEnabled

Gets or sets a value indicating whether permissions will be modified.

  • Type:
  • bool
  • Access:
  • Read/Write

Requirements

Minimum required version: 2010.2

See also