Skip to main content
Version: 2027 R1

Add privileges

The action adds extra privileges on a workflow instance. By default, the privileges expire once the instance goes through a path.

Basic configuration​

The Basic tab of the Properties panel contains settings shared by every action in an automation: the Active toggle, the Action type field, the Documentation field, the Use action template toggle (when enabled, the action takes its configuration from the selected action template defined in the process), the Execution condition section (decides whether the action always runs or only when a custom rule is met), and the Runtime error handling section (the message and numeric error code returned when the action fails to execute). Since these settings are not unique to the Add privileges action, they are described in detail in the Actions chapter.

The Basic tab in the Properties panel of the Add privileges action

Advanced configuration​

The Advanced tab contains fields specific to this action: Level, Should the privilege expire after the path transition?, Select people, Select elements, and — available in SQL query mode — the variables editor.

The Advanced tab in the Properties panel of the Add privileges action

1. Level​

The drop-down list allows you to choose the level to which privileges will be extended for the selected users.

LevelDescription
Administrationadministrative privileges
Modification without deletionthe instances can be modified but not deleted
Read-onlythe instances can be read but not modified
Read-only without attachment previewthe instances can be read but not modified, and its attachments cannot be previewed
Access to element historyprivileges that determine the visibility of the history of the instance or its parent/child instances

2. Should the privilege expire after the path transition?​

Checked by default. Privileges granted by the action apply only on the current step — if the workflow instance goes through any path, the privilege level granted by this action is changed to Read-only (the privileges are not fully removed).

3. Select people​

Determines who will receive the extended privileges on the instance. Three selection modes are available:

  • Always to — statically pick specific users or groups in the Users field, with an Active Directory search.
  • Dynamic — people are selected based on the value provided in a form field. Allowed form field types are Choice field, Person or group, and Item list (in which case the form field must have a column of type Person or group or Choice field).
  • SQL query — the people to receive extended privileges are determined by a SQL query returning a list of their logins (if no column name is specified, the first column of the result is used). You can also specify the Data source the query is directed to — by default, the query runs against the database Designer Studio is currently running on.
Example

The query

select distinct WFD_AttPeople1 from WFElements where WFD_Signature like 'NEW%'
and DATALENGTH (WFD_AttPeople1) > 0

will return all people entered in the first (by order of addition) Person or group form field on every form whose signature starts with "NEW". Additionally, the user name must contain at least one character. Each user is returned only once (the "distinct" modifier).

4. Select elements​

Determines which instance the privileges will be extended to. Two selection modes are available:

  • Dynamic — the Level field lets you pick the Current, Parent, or Child instance. When Parent or Child is selected, an additional Level field appears, specifying how many instance levels are covered (e.g. 2 sub-workflows).
  • SQL query — the instances to receive extended privileges are determined by a SQL query returning a list of their IDs (if no column name is specified, the first column of the result is used). As with people selection, you can specify the Data source the query is directed to.
Example
select 123 as WFD_ID

5. Variables editor​

In SQL query mode (in both the Select people and Select elements sections), an fx icon is available next to the query field. It opens the variables editor — a dynamically generated tree of all variables available at the current Designer Studio location, letting you insert a reference to the selected variable directly into the SQL query.