This is an Orbeon Forms PE feature.
You can restrict which users can access which forms, and what operations they can perform. Those restrictions apply to the forms you create once they are deployed, not to editing those forms in Form Builder (for the latter, see Access control for editing forms).
By default, no restriction is imposed on who can do what with forms you create in Form Builder. You enable permissions by going to the Form Builder toolbox, and under Advanced, clicking on Permissions.
Opening the Permissions dialog
This shows the following dialog:
Permissions dialog with no permissions enabled
After you click on the checkbox, you'll be able to set access restrictions on the Create, Read, Update, and Delete operations.
In the example below:
- Any user (even anonymous) can fill out new form data.
- A logged-in user who created form data can later read and update it.
- A logged-in user member of the group of the user who created form data can read it but not update it.
- Users with the role clerk can read any form data. They can also list data on the Summary page.
- Users with the role admin can do any operation, including deleting form data and listing data on the Summary page.
Permissions dialog with explict permissions enabled
- 1.On the Anyone line, set the operations allowed to all users.
- 2.On the Owner line, set the operations allowed to the user who created the data. See also Owner and Group Member Permissions. [SINCE Orbeon Forms 4.3]
- 3.On the Group members line, set the operations allowed to users in the same group as the owner. See also Owner and Group Member Permissions. [SINCE Orbeon Forms 4.3]
- 4.On the following lines, you can enter a role name, and define what operations users with that role can perform.
Permissions you set in the dialog are additive – Say you defined permissions for two roles, where users with the reader role can read and users in the clerk role can delete, users with both roles ( reader and clerk) are allowed to perform both operations (reading and deleting).
Operation on Anyone apply to all other rows – When you select a checkbox for a given operation on the first Anyone row, that checkbox will be automatically checked and disabled so you can't change it, for any additional row, since you wouldn't want to authorize users with additional roles to perform less operations.
Update implies Read – On any row, if you check Update, then Read will be automatically checked, as it wouldn't make sense to say that some users can update data, but can't read it, as when updating data, obviously, they must be shown the data they are updating.
Create can't be set for the Owner and Group members – The owner/group is a piece of information attached to existing form data, keeping track of the user who create the data, and the group in which this user is. This information is only known for existing data, so assigning the Create permission to the Owner or Group members doesn't make sense, and the dialog doesn't show that checkbox.
Permissions for the Owner and Group members can be set independently – If you want data to be accessible only by people who created it, check Read/Update/Delete/List for the owner but not for group members. If you want data to be accessible by all people in the same group,check Read/Update/Delete/List for the group members and don't check them for the owner if you want the owner to lose access to that data in case the owner changes group. (The latter highlights the need for permissions owner and group member to be set independently.)
[SINCE Orbeon Forms 2022.1]
The List permission allows specifying that the user can list form data on the Form Runner Summary page. If a user navigates to the Summary page of a form and the List permission is not granted to the user, the Summary page responds with an "Unauthorized" error.
With earlier versions of Orbeon Forms, the List permission was not checked separately. However, the ability to "Read" implied the ability to List on the Summary page.
Forms created and edited with earlier versions of Orbeon Forms that have the Read permission enabled also implicitly have the List permission enabled, for backward compatibility. Opening such a form in Form Builder will show both the Read and List permissions. If the form author deselects the List permission, and then publishes the form, then the form will not allow the List permission, as expected.
[SINCE Orbeon Forms 2022.1]
You can configure permissions per app, as well as globally. This is particularly useful when you have a large number of forms, and want to configure permissions for all of them at once. Per-app and global permissions are currently set using configuration properties in
You configure permissions with the
oxf.fr.permissions.$app.$formproperties. For example:
<property as="xs:string" name="oxf.fr.permissions.acme.sales">
As usual, you can use wildcards to specify whether the configuration is global:
<property as="xs:string" name="oxf.fr.permissions.*.*">
Or whether it applies to a specific app:
<property as="xs:string" name="oxf.fr.permissions.acme.*">
If a form definition includes a Form Builder-defined set of permissions, then those permissions are used and the permissions set in
There is no merging of permissions between a Form Builder-defined set of permissions and properties-defined permissions, or between global and per-app permissions.
For each property, the configuration is a JSON format that follows the layout of the Form Builder user interface (see screenshot above):
"anyone": [ "create" ],
"owner": [ "read", "update" ],
"group-member": [ "read", "update" ],
"orbeon-user": [ "read", "update", "list" ],
"orbeon-admin": [ "read", "update", "delete", "list" ]
The configuration is a JSON object with the following properties:
anyone: an array of operations that are allowed for all users
owner: an array of operations that are allowed for the user who created the data
group-member: an array of operations that are allowed for users in the same group as the owner of the data
roles: a JSON object with the following properties:
- each key is a role name
- each value is an array of operations that are allowed for users with the given role
The operations are the same as the ones in the Form Builder user interface:
create: create new data
read: read data
update: update data
delete: delete data
list: list data on the Summary page
To indicate that no operation is allowed:
- use an empty array
- or omit the property
For permissions defined in Form Builder, the permissions are stored in the form definition, and this means that you can have multiple form versions published with different permissions.
However, for permissions defined in
properties-local.xml, the permissions are per app/form name, and will apply to all published versions of the form under that app/form name.
Which operations the current user can perform drives what page they can access, and on some pages which buttons are shown.
This was formerly known as the Home page.
On the Form Runner Forms page, all the forms on which the current user can perform at least one operation are displayed. Then, for each one of those forms:
- If they can perform the Create operation on the form, a link to the New page is shown.
- If they can perform any of the Read, Update, or Delete operation on the form, a link to the Summary page for that form is shown.
- Access is completely denied if the current user can't perform any of the Read, Update, or Delete operations. -[SINCE Orbeon Forms 2022.1] Access is also completely denied if the user doesn't have the List permission.
- The Delete button is disabled if the current user can't perform the Delete operation.
- The review and pdf button are disabled if the current user can't perform the Read operation.
- Clicking in a row of the table will open the form in Edit mode if the current user can perform the Update operation, in View mode if they can perform the Read operation, and do nothing otherwise.
- For the View page, access is denied if the current user can't perform the Read operation.
- For the New page, access is denied if the current user can't perform the Create operation.
- For the Edit page, access is denied if the current user can't perform the Update operation.
[SINCE 4.3] In Orbeon Forms 4.2 and earlier, role-based permissions set in Form Builder could only be driven by container-based roles and the value of the
oxf.fr.authentication.methodproperty was not taken into account. Since version 4.3, those permissions also apply if you are using header-driven roles.
- Access control for editing forms - How to control access to Form Builder.