Table of Contents

Interface IGraphUser

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

Public interface to define a Microsoft 365 user

public interface IGraphUser : IDataModel<IGraphUser>, IDataModelParent, IDataModelWithContext, ISupportModules<IGraphUser>, IDataModelGet<IGraphUser>, IDataModelLoad<IGraphUser>, IGraphPrincipal, IQueryableDataModel
Inherited Members
Extension Methods

Properties

Mail

Email adress of the user

string Mail { get; set; }

Property Value

string

OfficeLocation

Office location of the user

string OfficeLocation { get; set; }

Property Value

string

UserPrincipalName

User principle name (UPN) of the user

string UserPrincipalName { get; set; }

Property Value

string

Methods

AsSharePointUser()

Returns this Graph user as a SharePoint user for the connected site collection

ISharePointUser AsSharePointUser()

Returns

ISharePointUser

AsSharePointUserAsync()

Returns this Graph user as a SharePoint user for the connected site collection

Task<ISharePointUser> AsSharePointUserAsync()

Returns

Task<ISharePointUser>

SendMail(MailOptions)

Sends an email under a specific user context

void SendMail(MailOptions mailOptions)

Parameters

mailOptions MailOptions

SendMailAsync(MailOptions)

Sends an email under a specific user context

Task SendMailAsync(MailOptions mailOptions)

Parameters

mailOptions MailOptions

Returns

Task