Add-MapiPermission

Description

Adds a permission to a folder object.

Syntax
Add-MapiPermission  
 -FolderMapiObject<Mapi.NET.Folder>
 -UserOrGroupIDsMapiObject<Mapi.Net.EntryID[]>
 -RightsMapi.NET.Flags.FolderRights[]
Add-MapiPermission  
 -FolderMapiObject<Mapi.NET.Folder>
 -UserOrGroupIDsMapiObject<Mapi.Net.EntryID[]>
 -RoleMapi.NET.Flags.FolderRoles
Add-MapiPermission  
 -FolderMapiObject<Mapi.NET.Folder>
 -UserOrGroupAddressesString[]
 -RightsMapi.NET.Flags.FolderRights[]
Add-MapiPermission  
 -FolderMapiObject<Mapi.NET.Folder>
 -UserOrGroupAddressesString[]
 -RoleMapi.NET.Flags.Roles

 

Parameters
FolderA folder object.  Use Get-MapiFolder to get an instance of this object
UserOrGroupIDsAn array of one or more EntryIDs representing mailbox users or mail-enabled security groups.
UserOrGroupAddresssesAn array of one or more email addresses representing mailbox users or mail-enabled security groups.
RightsAn array of Mapi.NET.Flags.FolderRights that are OR'd together as a rights value
  • Contact
  • Create
  • CreateFolder
  • DeleteAny
  • DeleteOwned
  • EditAny
  • EditOwned
  • FolderOwner
  • FreeBusyDetailed
  • FreeBusySimple
  • NoRights
  • ReadAny
  • Visible
RoleOne of the preset permisison roles from Mapi.NET.Flags.FolderRoles
  • Author
  • Contributor
  • Editor
  • None
  • NonEditingAuthor
  • Owner
  • OwnerContact
  • PublishingAuthor
  • PublishingEditor
  • Reviewer