Class UserInUserRolesCondition
Matches when one or all the user roles specified in UserRoleIds are assigned to the user retrieved from the path UserIdPath
Inheritance
UserInUserRolesCondition
Namespace: System.Dynamic.ExpandoObject
Syntax
[GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public class UserInUserRolesCondition : BusinessRuleCondition
Properties
Decide if all the user roles must be assigned to the user or only one of them.
Declaration
[JsonProperty("matchMode", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(StringEnumConverter))]
public ConditionMatchMode MatchMode { get; set; }
Property Value
JSON path to the field containing the id of the user that needs to be checked.
Declaration
[JsonProperty("userIdPath", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public string UserIdPath { get; set; }
Property Value
A static list of user role ids that will checked: depending on MatchMode all the user roles or only one of them must be assigned to the user.
Declaration
[JsonProperty("userRoleIds", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public ICollection<string> UserRoleIds { get; set; }
Property Value
Methods
Declaration
public static UserInUserRolesCondition FromJson(string data)
Parameters
Returns