Query Manipulation Server 26.2
Query Manipulation Server Help

# encrypt_security_field

The `encrypt_security_field` function returns the encrypted form of the supplied ACL string.

This function is similar to the encrypt function, but is intended for use with Access Control Lists (ACLs). The function encrypts user and group names, but not delimiters such as `:U:`,`:NU:`, and the commas in comma-separated lists of users and groups.

## Syntax

    encrypt_security_field( acl [, regex [, regex]] )

## Arguments

Argument | Description
--- | ---
`acl` | (string) An Access Control List string.
`regex` | (string) Any additional arguments that you pass to the function are taken as a list of regular expressions. The capturing groups in these regular expressions specify the parts of the string to encrypt. If you supply your own regular expression(s) the default ones listed below are not used:
    (?:^|\\()S:([^:)]*)
    :U:([^:)]*)
    :G:([^:)]*)
    :NU:([^:)]*)
    :NG:([^:)]*)
    :USERS:([^:)]*)
    :GROUPS:([^:)]*)
    :NOUSERS:([^:)]*)
    :NOGROUPS:([^:)]*)
    :RG:([^:)]*)
    :R1G:([^:)]*)

## Returns

(String). An encrypted string.

Copyright 2026 Open Text
Version 26.2 | Last updated April 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Query Manipulation Server 26.2

Topic Title: encrypt_security_field