Skip to main content

AclMapping

Maps a document field to a Google Cloud Search ACL principal.

committer/googlecloudsearchJavadoc: AclMapping

Notesโ€‹

Each mapping takes the value or values of one document field, reads them as security principals, and adds them to one of an item's three access lists. Several mappings can be declared โ€” one for the users allowed to read, another for a group, another for owners.

Principals must be resolvable in the Google Cloud identity source backing your data source, otherwise the item ends up visible to nobody.

Examplesโ€‹

Grants read access to the principals listed in an acl_readers field, and denies it to those in acl_denied.

aclMappings:
- fromField: acl_readers
principalType: USER
target: READERS
- fromField: acl_denied
principalType: GROUP
target: DENIED_READERS

Usageโ€‹

Full configuration skeleton, with every option and its default
fromField: string
principalType: USER
target: READERS

Propertiesโ€‹

PropertyTypeRequiredDefault
fromFieldstringNo-
principalTypeenumNoUSER
targetenumNo-

Property Detailsโ€‹

fromFieldโ€‹

Document field holding the principal value or values โ€” the users, groups or customer identifier this entry applies to.

principalTypeโ€‹

What the field values represent: USER, GROUP, or CUSTOMER for everyone in the domain. Defaults to USER.

Allowed Valuesโ€‹

  • USER
  • GROUP
  • CUSTOMER

targetโ€‹

Which access list the principals are added to: READERS to grant access, DENIED_READERS to deny it, or OWNERS.

Allowed Valuesโ€‹

  • READERS
  • DENIED_READERS
  • OWNERS