Back to Devexpress

SecurityStrategy.RolesMergingMode Property

expressappframework-devexpress-dot-expressapp-dot-security-dot-securitystrategy-733bf054.md

latest2.1 KB
Original Source

SecurityStrategy.RolesMergingMode Property

Specifies how the Security System determines if a user can perform a specific operation when this user has multiple roles with different permission sets.

Namespace : DevExpress.ExpressApp.Security

Assembly : DevExpress.ExpressApp.Security.v25.2.dll

NuGet Package : DevExpress.ExpressApp.Security

Declaration

csharp
[DefaultValue(RolesMergingMode.GrantedInAnyRole)]
public RolesMergingMode RolesMergingMode { get; set; }
vb
<DefaultValue(RolesMergingMode.GrantedInAnyRole)>
Public Property RolesMergingMode As RolesMergingMode

Property Value

TypeDefaultDescription
RolesMergingModeGrantedInAnyRole

A RolesMergingMode enumeration value specifying the roles merging mode when a user has multiple roles.

|

Available values:

NameDescription
GrantedInAnyRole

An allowed operation can be allowed in any role.

| | GrantedInAllRoles |

An allowed operation should be allowed in all roles.

|

Remarks

By default, a user can execute an operation if it is allowed in any role assigned to this user (the GrantedInAnyRole mode). You can set the RolesMergingMode property to GrantedInAllRoles to make the behavior more strict and demand that an operation should be allowed in all roles.

See Also

SecurityStrategy Class

SecurityStrategy Members

DevExpress.ExpressApp.Security Namespace