Table of contents
TOC
Collapse the table of content
Expand the table of content

ExternalSharingExtensions.InviteExternalUser Method

SharePoint Dev Documents|Last Updated: 6/19/2017
|
1 Contributor

Invites an external user as a group member

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static SharingResult InviteExternalUser(this Group group, String email, Boolean sendEmail = True, String emailBody = "Site shared with you.")

Parameters

group

  Type: Microsoft.SharePoint.Client.Group
  Group to add the user to

email

  Type: System.String
  The email address of the external user

(optional) sendEmail

  Type: System.Boolean
  Should we send an email to the given address

(optional) emailBody

  Type: System.String
  Text to be added to the email

Return Value

Type: SharingResult
A SharingResult object

See also

© 2018 Microsoft