\uD83E\uDD14 Problem
When adding only the macro {set-restrictions:type=View|group=sample_group} to the workflow, the sample_group obtains permission to edit the content.
\uD83C\uDF31 Solution
Comala Document Management integrates with Confluence Permissions and Restrictions, so when defining view restrictions without edit restrictions, Confluence doesn’t allow it if 'no one' has edit permissions.
To avoid this behavior, it is essential also to specify edit restrictions on the page.
In this case, you should add the macro {set-restrictions:type=Edit|group=another_sample_group}
Now, Confluence knows who can see the page and edit it.
Please note that a Confluence Administrator or a Space Administrator can manage the restrictions and add themselves as editors/viewers.