Table of Contents

Class DnnUserProfile

Namespace
ToSic.Sxc.Dnn.DataSources
Assembly
ToSic.Sxc.Dnn.Core.dll

Get DNN user profiles as IEntity objects of one or many users.

[PublicApi]
[VisualQuery(NiceName = "Dnn User Profiles", UiHint = "Users profiles of specified users in Dnn", Icon = "face", Type = DataSourceType.Source, NameId = "ToSic.Sxc.Dnn.DataSources.DnnUserProfile, ToSic.Sxc.Dnn", ConfigurationType = "|Config ToSic.SexyContent.DataSources.DnnUserProfileDataSource", NameIds = new string[] { "ToSic.SexyContent.Environment.Dnn7.DataSources.DnnUserProfileDataSource, ToSic.SexyContent" })]
public class DnnUserProfile : CustomDataSourceAdvanced, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
Inheritance
object
ServiceBase
DnnUserProfile
Implements
Inherited Members

Constructors

DnnUserProfile(MyServices, IDataFactory)

public DnnUserProfile(DnnUserProfile.MyServices services, IDataFactory dataFactory)

Parameters

services DnnUserProfile.MyServices
dataFactory IDataFactory

Properties

ContentType

Gets or sets the Name of the ContentType to simulate

[Configuration(Field = "ContentTypeName", Fallback = "UserProfile")]
public string ContentType { get; set; }

Property Value

string

Properties

List of profile-properties to retrieve, comma-separated

[Configuration(Fallback = "DisplayName,Email,FirstName,LastName,Username")]
public string Properties { get; set; }

Property Value

string

TitleField

Gets or sets the Name of the Title Attribute of the DNN-UserInfo

[Configuration(Field = "TitleFieldName", Fallback = "DisplayName")]
public string TitleField { get; set; }

Property Value

string

UserIds

The user id list of users to retrieve, comma-separated

[Configuration]
public string UserIds { get; set; }

Property Value

string