Skip to main content
Version: 8.2

Remove record permissions when changing a contact

Level: beginner

You can use business processes to grant or deny access permissions to a Creatio record. Any event can trigger the process automatically on specific conditions.

Example

Set up a business process to strip all Creatio users of their permissions to edit or delete a contact whenever its type is changed to "Employee." Only members of the "HR. Managers group" organizational role can view, edit or delete the contact.

Business process diagram (Fig. 1) elements:

  1. The Signal start event triggers the process when a contact’s type is changed to "Employee" and records the Id of the contact record.

  2. The Change access rights element sets permissions to update or ddelete Creatio records. This element can obtain the contact’s id from the Signal element.

    Fig. 1 The Change access permissions to modify new employee record business process
    Fig. 1 The Change access permissions to modify new employee record business process

To do this:

  1. On the process diagram, add the Signal start event and specify its parameter values (Fig. 2).

    1. In the Object field, select "Contact."

    2. In the Which event should trigger the signal? field, select "Record modified."

    3. In the Changes expected field, select "In any of the selected fields," and add the "Type" column.

    4. In the The modified record must meet filter conditions field, select "Type = Employee."

      Fig. 2 The Signal start event parameters
      Fig. 2 The Signal start event parameters
  2. Add the Change access rights process element on the process diagram and set up its parameters (Fig. 4).

  3. In the Which object to apply access rights to? field, select "Contact."

  4. In the Apply access rights to all records that match conditions field, set up a filter (Fig. 3) by the Id column ("Id=Contact type updated.Unique identifier of record"):

    note

    You can learn more about passing the unique record identifier (Id) between process elements in the Process parameters article.

    1. Click + Add condition to add a new filter condition.

    2. In the pop-up window, select "Id" from the drop-down list.

    3. Click &lt?&gt and select Compare with parameter.

    4. In the pop-up window, under Process elements, select the start signal event (on the left).

    5. Select the "Unique identifier of record" parameter on the right.

      Fig. 3 Setting up a filter by the Id column
      Fig. 3 Setting up a filter by the Id column
  5. Click btn_com_add_tab00021.png in the Which access rights to remove? field and select "For all users and roles." Clear the checkbox under icn_chapter_process_designer_read_access.png to remove permissions to edit or delete the record.

  6. Click btn_com_add_tab00022.png in the Which access rights to add? field and select "For a user role."

    1. In the "Role" field that appears, click btn_process_element_settings_lookup00023.png and choose "Lookup value."

    2. Select the "HR, Managers group" organizational role in the opened window.

      Fig. 4 The Change access rights process element parameters
      Fig. 4 The Change access rights process element parameters
  7. After creating the process elements, connect them on the diagram and save the process.

    As a result, each time a contact’s type is changed to "Employee," all Creatio users are stripped of their permissions to edit or delete the contact, and only members of the "HR. Managers group" organizational role obtain full access to the record and can view, modify or delete it."

note

Please make sure that access to operations with the object (in this case, "Contact") is enabled in the Object permissions section in the System Designer. Learn how to set up object operation permissions in the Object operation permissions article.


See also

Notify an employee when they become an activity participant