Search Results for

    Show / Hide Table of Contents

    Interface IUserProfile

    An entry point for the user profile APIs

    Inherited Members
    IDataModel<IUserProfile>.Requested
    IDataModel<IUserProfile>.HasValue(string)
    IDataModel<IUserProfile>.HasChanged(string)
    IDataModel<IUserProfile>.IsPropertyAvailable(Expression<Func<IUserProfile, object>>)
    IDataModel<IUserProfile>.ArePropertiesAvailable(params Expression<Func<IUserProfile, object>>[])
    IDataModel<IUserProfile>.EnsureProperties(params Expression<Func<IUserProfile, object>>[])
    IDataModel<IUserProfile>.EnsurePropertiesAsync(params Expression<Func<IUserProfile, object>>[])
    IDataModel<IUserProfile>.ExecuteRequestAsync(ApiRequest)
    IDataModel<IUserProfile>.ExecuteRequest(ApiRequest)
    IDataModel<IUserProfile>.ExecuteRequestBatchAsync(ApiRequest)
    IDataModel<IUserProfile>.ExecuteRequestBatch(ApiRequest)
    IDataModel<IUserProfile>.ExecuteRequestBatchAsync(Batch, ApiRequest)
    IDataModel<IUserProfile>.ExecuteRequestBatch(Batch, ApiRequest)
    IDataModelParent.Parent
    IDataModelWithContext.PnPContext
    IDataModelGet<IUserProfile>.GetBatchAsync(Batch, params Expression<Func<IUserProfile, object>>[])
    IDataModelGet<IUserProfile>.GetAsync(params Expression<Func<IUserProfile, object>>[])
    IDataModelLoad<IUserProfile>.LoadBatchAsync(Batch, params Expression<Func<IUserProfile, object>>[])
    IDataModelLoad<IUserProfile>.LoadAsync(params Expression<Func<IUserProfile, object>>[])
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public interface IUserProfile : IDataModel<IUserProfile>, IDataModelParent, IDataModelWithContext, ISupportModules<IUserProfile>, IDataModelGet<IUserProfile>, IDataModelLoad<IUserProfile>

    Properties

    EditProfileLink

    The link to edit the current user's profile

    Declaration
    string EditProfileLink { get; }
    Property Value
    string

    IsMyPeopleListPublic

    A Boolean value that indicates whether the current user's People I'm Following list is public.

    Declaration
    bool IsMyPeopleListPublic { get; }
    Property Value
    bool

    Methods

    GetMyProperties(params Expression<Func<IPersonProperties, object>>[])

    Gets user properties for the current user.

    Declaration
    IPersonProperties GetMyProperties(params Expression<Func<IPersonProperties, object>>[] selectors)
    Parameters
    Expression<Func<IPersonProperties, object>>[] selectors

    Specific properties to return

    Returns
    IPersonProperties

    An instance of IPersonProperties

    GetMyPropertiesAsync(params Expression<Func<IPersonProperties, object>>[])

    Gets user properties for the current user.

    Declaration
    Task<IPersonProperties> GetMyPropertiesAsync(params Expression<Func<IPersonProperties, object>>[] selectors)
    Parameters
    Expression<Func<IPersonProperties, object>>[] selectors

    Specific properties to return

    Returns
    Task<IPersonProperties>

    An instance of IPersonProperties

    GetPropertiesFor(string, params Expression<Func<IPersonProperties, object>>[])

    Gets user properties for the specified user.

    Declaration
    IPersonProperties GetPropertiesFor(string accountName, params Expression<Func<IPersonProperties, object>>[] selectors)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    Expression<Func<IPersonProperties, object>>[] selectors

    Specific properties to return

    Returns
    IPersonProperties

    An instance of IPersonProperties

    GetPropertiesForAsync(string, params Expression<Func<IPersonProperties, object>>[])

    Gets user properties for the specified user.

    Declaration
    Task<IPersonProperties> GetPropertiesForAsync(string accountName, params Expression<Func<IPersonProperties, object>>[] selectors)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    Expression<Func<IPersonProperties, object>>[] selectors

    Specific properties to return

    Returns
    Task<IPersonProperties>

    An instance of IPersonProperties

    GetPropertyFor(string, string)

    Gets the specified user profile property for the specified user.

    Declaration
    string GetPropertyFor(string accountName, string propertyName)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    string propertyName

    The case-sensitive name of the property to get.

    Returns
    string

    The specified profile property for the specified user.

    GetPropertyForAsync(string, string)

    Gets the specified user profile property for the specified user.

    Declaration
    Task<string> GetPropertyForAsync(string accountName, string propertyName)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    string propertyName

    The case-sensitive name of the property to get.

    Returns
    Task<string>

    The specified profile property for the specified user.

    GetUserOneDriveQuotaMax(string)

    Gets the user's onedrive max quota

    Declaration
    long GetUserOneDriveQuotaMax(string accountName)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    Returns
    long

    The max quota value

    GetUserOneDriveQuotaMaxAsync(string)

    Gets the user's onedrive max quota

    Declaration
    Task<long> GetUserOneDriveQuotaMaxAsync(string accountName)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    Returns
    Task<long>

    The max quota value

    ResetUserOneDriveQuotaToDefault(string)

    Resets the user's onedrive quota to the default value

    Declaration
    string ResetUserOneDriveQuotaToDefault(string accountName)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    Returns
    string

    The string outcome

    ResetUserOneDriveQuotaToDefaultAsync(string)

    Resets the user's onedrive quota to the default value

    Declaration
    Task<string> ResetUserOneDriveQuotaToDefaultAsync(string accountName)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    Returns
    Task<string>

    The string outcome

    SetMultiValuedProfileProperty(string, string, IList<string>)

    Sets the user's multi value profile property.

    Declaration
    void SetMultiValuedProfileProperty(string accountName, string propertyName, IList<string> propertyValues)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    string propertyName

    The case-sensitive name of the property to get.

    IList<string> propertyValues

    The property values

    SetMultiValuedProfilePropertyAsync(string, string, IList<string>)

    Sets the user's multi value profile property.

    Declaration
    Task SetMultiValuedProfilePropertyAsync(string accountName, string propertyName, IList<string> propertyValues)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    string propertyName

    The case-sensitive name of the property to get.

    IList<string> propertyValues

    The property values

    Returns
    Task

    SetMyProfilePicture(byte[])

    Uploads and sets the user profile picture. Users can upload a picture to their own profile only.

    Declaration
    void SetMyProfilePicture(byte[] fileBytes)
    Parameters
    byte[] fileBytes

    A byte array representing the file

    SetMyProfilePictureAsync(byte[])

    Uploads and sets the user profile picture. Users can upload a picture to their own profile only.

    Declaration
    Task SetMyProfilePictureAsync(byte[] fileBytes)
    Parameters
    byte[] fileBytes

    A byte array representing the file

    Returns
    Task

    SetSingleValueProfileProperty(string, string, string)

    Sets the user's profile property.

    Declaration
    void SetSingleValueProfileProperty(string accountName, string propertyName, string propertyValue)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    string propertyName

    The case-sensitive name of the property to get.

    string propertyValue

    The property value

    SetSingleValueProfilePropertyAsync(string, string, string)

    Sets the user's profile property.

    Declaration
    Task SetSingleValueProfilePropertyAsync(string accountName, string propertyName, string propertyValue)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    string propertyName

    The case-sensitive name of the property to get.

    string propertyValue

    The property value

    Returns
    Task

    SetUserOneDriveQuota(string, long, long)

    Sets the user's onedrive quota

    Declaration
    string SetUserOneDriveQuota(string accountName, long newQuota, long newQuotaWarning)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    long newQuota

    New quota value

    long newQuotaWarning

    Quota warning value

    Returns
    string

    The string outcome

    SetUserOneDriveQuotaAsync(string, long, long)

    Sets the user's onedrive quota

    Declaration
    Task<string> SetUserOneDriveQuotaAsync(string accountName, long newQuota, long newQuotaWarning)
    Parameters
    string accountName

    The account name, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"

    long newQuota

    New quota value

    long newQuotaWarning

    Quota warning value

    Returns
    Task<string>

    The string outcome

    Extension Methods

    DataModelGetExtensions.GetBatchAsync<TModel>(IDataModelGet<TModel>, Batch, params Expression<Func<TModel, object>>[])
    DataModelGetExtensions.GetBatchAsync<TModel>(IDataModelGet<TModel>, params Expression<Func<TModel, object>>[])
    DataModelGetExtensions.GetBatch<TModel>(IDataModelGet<TModel>, Batch, params Expression<Func<TModel, object>>[])
    DataModelGetExtensions.GetBatch<TModel>(IDataModelGet<TModel>, params Expression<Func<TModel, object>>[])
    DataModelGetExtensions.Get<TModel>(IDataModelGet<TModel>, params Expression<Func<TModel, object>>[])
    DataModelLoadExtensions.LoadBatchAsync<TModel>(IDataModelLoad<TModel>, Batch, params Expression<Func<TModel, object>>[])
    DataModelLoadExtensions.LoadBatchAsync<TModel>(IDataModelLoad<TModel>, params Expression<Func<TModel, object>>[])
    DataModelLoadExtensions.LoadBatch<TModel>(IDataModelLoad<TModel>, Batch, params Expression<Func<TModel, object>>[])
    DataModelLoadExtensions.LoadBatch<TModel>(IDataModelLoad<TModel>, params Expression<Func<TModel, object>>[])
    DataModelLoadExtensions.Load<TModel>(IDataModelLoad<TModel>, params Expression<Func<TModel, object>>[])
    DataModelLoadExtensions.QueryProperties<TModel>(IDataModelLoad<TModel>, params Expression<Func<TModel, object>>[])
    RequestModuleExtensions.WithHeaders<TModel>(ISupportModules<TModel>, Dictionary<string, string>, Action<Dictionary<string, string>>)
    RequestModuleExtensions.WithResponseHeaders<TModel>(ISupportModules<TModel>, Action<Dictionary<string, string>>)
    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer