.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

PermissionPolicyUser Class

An XAF user who has a list of associated security roles that support the Allow/Deny Permission Policies.

Namespace: DevExpress.Persistent.BaseImpl.PermissionPolicy

Assembly: DevExpress.Persistent.BaseImpl.v20.1.dll

Declaration

[ImageName("BO_User")]
[Persistent("PermissionPolicyUser")]
[RuleCriteria("PermissionPolicyUser_XPO_Prevent_delete_logged_in_user", DefaultContexts.Delete, "[Oid] != CurrentUserId()", "Cannot delete the current logged-in user. Please log in using another user account and retry.")]
[RuleObjectExists("PermissionPolicyUser_XPO_Prevent_remove_last_admin_user", DefaultContexts.Delete, "[IsActive] = True And [Roles][[IsAdministrative] = True]", "Cannot delete user as it is the last account with administrative access. The application must have at least one administrator.")]
[RuleObjectExists("PermissionPolicyUser_XPO_Prevent_change_last_admin_user", DefaultContexts.Save, "[IsActive] = True And [Roles][[IsAdministrative] = True]", "Cannot delete user as it is the last account with administrative access. The application must have at least one administrator.", IncludeCurrentObject = true)]
public class PermissionPolicyUser :
    BaseObject,
    IPermissionPolicyUser,
    ISecurityUser,
    ISecurityUserWithRoles,
    IAuthenticationActiveDirectoryUser,
    IAuthenticationStandardUser
<ImageName("BO_User")>
<Persistent("PermissionPolicyUser")>
<RuleCriteria("PermissionPolicyUser_XPO_Prevent_delete_logged_in_user", DefaultContexts.Delete, "[Oid] != CurrentUserId()", "Cannot delete the current logged-in user. Please log in using another user account and retry.")>
<RuleObjectExists("PermissionPolicyUser_XPO_Prevent_remove_last_admin_user", DefaultContexts.Delete, "[IsActive] = True And [Roles][[IsAdministrative] = True]", "Cannot delete user as it is the last account with administrative access. The application must have at least one administrator.")>
<RuleObjectExists("PermissionPolicyUser_XPO_Prevent_change_last_admin_user", DefaultContexts.Save, "[IsActive] = True And [Roles][[IsAdministrative] = True]", "Cannot delete user as it is the last account with administrative access. The application must have at least one administrator.", IncludeCurrentObject:=True)>
Public Class PermissionPolicyUser
    Inherits BaseObject
    Implements IPermissionPolicyUser,
               ISecurityUser,
               ISecurityUserWithRoles,
               IAuthenticationActiveDirectoryUser,
               IAuthenticationStandardUser

Remarks

Associated roles are exposed via the PermissionPolicyUser.Roles property.

See Also