# AuthorizationRule
An AuthorizationRule is a rule granting access on a named resource to a user or role or rejecting access on that resource from a user or role. It is an essential part of authorization management.
# Properties
# selector
This mandatory string (opens new window) property selects a resource (see the example) by its name.
# user
This optional UUID (opens new window) selects a single user which is granted access to selected resource.
WARNING
A rule must select at least a user or a role. It may select both.
# role
This optional UUID (opens new window) selects a single user which is granted access to selected resource.
WARNING
A rule must select at least a user or a role. It may select both.
# accept
This boolean (opens new window) property indicates, whether rule is granting access to selected resource (true
) or revoking it (false
). The default value is true
.
# Methods
AuthenticationRules don't have custom methods apart from basic ones (opens new window).
← UserToRole Services →