Interface IGraphUser
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
Email adress of the user
string Mail { get; set; }
Property Value
OfficeLocation
Office location of the user
string OfficeLocation { get; set; }
Property Value
UserPrincipalName
User principle name (UPN) of the user
string UserPrincipalName { get; set; }
Property Value
Methods
AsSharePointUser()
Returns this Graph user as a SharePoint user for the connected site collection
ISharePointUser AsSharePointUser()
Returns
AsSharePointUserAsync()
Returns this Graph user as a SharePoint user for the connected site collection
Task<ISharePointUser> AsSharePointUserAsync()
Returns
SendMail(MailOptions)
Sends an email under a specific user context
void SendMail(MailOptions mailOptions)
Parameters
mailOptionsMailOptions
SendMailAsync(MailOptions)
Sends an email under a specific user context
Task SendMailAsync(MailOptions mailOptions)
Parameters
mailOptionsMailOptions