Skip to main content

AclInheritanceMapping

Declares which document field holds the parent item reference used for Google Cloud Search ACL inheritance.

committer/googlecloudsearchJavadoc: AclInheritanceMapping

Notes

Lets an item inherit access rules from a parent instead of carrying the whole set itself — a file inheriting from its folder, a page from its site. The parent is identified by a reference stored on the document, and the inheritance type decides who wins when parent and child disagree.

Examples

Inherits access from the folder named in a parent_folder field, with the parent's rules taking precedence.

aclInheritanceMapping:
fromField: parent_folder
aclInheritanceType: PARENT_OVERRIDE

Usage

Full configuration skeleton, with every option and its default
aclInheritanceType: NOT_APPLICABLE
fromField: string

Properties

PropertyTypeRequiredDefault
aclInheritanceTypeenumNoNOT_APPLICABLE
fromFieldstringNo-

Property Details

aclInheritanceType

How the child's own ACLs combine with the parent's:

ValueEffect
NOT_APPLICABLENo inheritance; the item's own ACLs decide. The default.
CHILD_OVERRIDEThe child's ACLs win where the two conflict.
PARENT_OVERRIDEThe parent's ACLs win where the two conflict.
BOTH_PERMITAccess requires both parent and child to permit it.

Allowed Values

  • NOT_APPLICABLE
  • CHILD_OVERRIDE
  • PARENT_OVERRIDE
  • BOTH_PERMIT

fromField

Document field holding the reference of the parent item to inherit from. The value must match the parent's item reference as committed.