Table of Contents

Class InviteOptions

Namespace
PnP.Core.Model.Security
Assembly
PnP.Core.dll

Options that can be set when inviting users to an item

public class InviteOptions : InviteOptionsBase
Inheritance
InviteOptions
Inherited Members

Properties

ExpirationDateTime

Specify the DateTime after which the permission expires. Note: Available on OneDrive for Business, SharePoint, and premium personal OneDrive accounts.

public DateTime ExpirationDateTime { get; set; }

Property Value

DateTime

Message

A plain text formatted message that is included in the sharing invitation. Maximum length 2000 characters.

public string Message { get; set; }

Property Value

string

Recipients

A collection of recipients who will receive access and the sharing invitation.

public List<IDriveRecipient> Recipients { get; set; }

Property Value

List<IDriveRecipient>

RequireSignIn

Specifies where the recipient of the invitation is required to sign-in to view the shared item

public bool RequireSignIn { get; set; }

Property Value

bool

Roles

Specify the roles that are be granted to the recipients of the sharing invitation.

public List<PermissionRole> Roles { get; set; }

Property Value

List<PermissionRole>

SendInvitation

Specifies if an email or post is generated (false) or if the permission is just created (true).

public bool SendInvitation { get; set; }

Property Value

bool