Skip to main content

AdminUsersFeature

Assembly: ServiceStack.dll
View Source
Declaration
public class AdminUsersFeature : IPlugin, IHasStringId, IHasId<string>, IPreInitPlugin, IAfterInitAppHost

Properties

Id

View Source
Declaration
public string Id { get; set; }

AdminRole

View Source
Declaration
public string AdminRole { get; set; }

QueryUserAuthProperties

Return only specified UserAuth Properties in AdminQueryUsers

View Source
Declaration
public List<string> QueryUserAuthProperties { get; set; }

QueryMediaRules

Specify different size media rules when a property should be visible, e.g: MediaRules.ExtraSmall.Show<UserAuth>(x => new { x.Id, x.Email, x.DisplayName })

View Source
Declaration
public List<MediaRule> QueryMediaRules { get; set; }

UserFormLayout

View Source
Declaration
public List<List<InputInfo>> UserFormLayout { set; }

FormLayout

Which User fields can be updated

View Source
Declaration
public List<InputInfo> FormLayout { get; set; }

RestrictedUserAuthProperties

Which UserAuth fields cannot be updated using UserAuthProperties dictionary

View Source
Declaration
public List<string> RestrictedUserAuthProperties { get; set; }

ValidateFn

Invoked before user is created or updated. A non-null return (e.g. HttpResult/HttpError) invalidates the request and is used as the API Response instead

View Source
Declaration
public ValidateAsyncFn ValidateFn { get; set; }

OnBeforeCreateUser

Invoked before a User is created

View Source
Declaration
public Func<IUserAuth, Service, Task> OnBeforeCreateUser { get; set; }

OnAfterCreateUser

Invoked after a User is created

View Source
Declaration
public Func<IUserAuth, Service, Task> OnAfterCreateUser { get; set; }

OnBeforeUpdateUser

Invoked before a User is updated. (NewUser, ExistingUser, Service)

View Source
Declaration
public Func<IUserAuth, IUserAuth, Service, Task> OnBeforeUpdateUser { get; set; }

OnAfterUpdateUser

Invoked after a User is updated. (NewUser, ExistingUser, Service)

View Source
Declaration
public Func<IUserAuth, IUserAuth, Service, Task> OnAfterUpdateUser { get; set; }

OnBeforeDeleteUser

Invoked before a User is deleted

View Source
Declaration
public Func<string, Service, Task> OnBeforeDeleteUser { get; set; }

OnAfterDeleteUser

Invoked after a User is deleted

View Source
Declaration
public Func<string, Service, Task> OnAfterDeleteUser { get; set; }

ExecuteOnRegisteredEventsForCreatedUsers

Whether to execute OnRegistered Events for Users created through Admin UI (default true).

View Source
Declaration
public bool ExecuteOnRegisteredEventsForCreatedUsers { get; set; }

Methods

RemoveFromUserForm(String[])

View Source
Declaration
public AdminUsersFeature RemoveFromUserForm(params string[] fieldNames)
Returns

ServiceStack.Admin.AdminUsersFeature

Parameters
TypeName
System.String[]fieldNames

RemoveFromUserForm(Predicate<InputInfo>)

View Source
Declaration
public AdminUsersFeature RemoveFromUserForm(Predicate<InputInfo> match)
Returns

ServiceStack.Admin.AdminUsersFeature

Parameters
TypeName
System.Predicate<ServiceStack.InputInfo>match

RemoveFromQueryResults(String[])

View Source
Declaration
public AdminUsersFeature RemoveFromQueryResults(params string[] fieldNames)
Returns

ServiceStack.Admin.AdminUsersFeature

Parameters
TypeName
System.String[]fieldNames

RemoveFields(String[])

View Source
Declaration
public AdminUsersFeature RemoveFields(params string[] fieldNames)
Returns

ServiceStack.Admin.AdminUsersFeature

Parameters
TypeName
System.String[]fieldNames

BeforePluginsLoaded(IAppHost)

View Source
Declaration
public void BeforePluginsLoaded(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

Register(IAppHost)

View Source
Declaration
public void Register(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

AfterInit(IAppHost)

View Source
Declaration
public void AfterInit(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

Implements