Configures whether content under a path is specifically included in or excluded from the content viewing role, optionally restricted to particular groups. This gives fine-grained control over content access - for example a specific directory can be enabled or disabled regardless of the broader role grant. Note that when a rule excludes access, other roles can still independently grant access to the same resource.

Group: IDP Rules


Properties

PropertyReturnsDescription
canAccessbooleanWhether a match grants access. True includes matching resources in the content viewer role; false excludes them.
groupsString[]The group names this rule is restricted to, or null to apply to every user regardless of group. When present, the rule only matches if the current user is a member of at least one of these groups.
pathStringThe path pattern this rule matches against, using * as a wildcard. Never null for a configured rule.

Methods

getPath()

Returns: String

The path pattern this rule matches against, using * as a wildcard. Never null for a configured rule.

getGroups()

Returns: String[]

The group names this rule is restricted to, or null to apply to every user regardless of group. When present, the rule only matches if the current user is a member of at least one of these groups.

isCanAccess()

Returns: boolean

Whether a match grants access. True includes matching resources in the content viewer role; false excludes them.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.