This is exactly what the addon I gave you does: create a special subset of actions for the group "SIMPLE USER": https://github.com/keensoft/alfresco-simplify-share/blob/master/simplify-share/src/main/amp/config/a...
Probably you can develop your own addon taking this one as starting point.
Not sure that your solution does what I need to achieve. In our case we would like to keep the predefined site roles, but modify the available actions based on role.
Am I able to do the following with your code?
All other actions like: change type, manage aspects, take ownership, should be reserved for users with admin right.
The users might have different roles in different sites.
I am not a developer and just recently started modifying Alfresco, some of the ideas given are new to me, hence the frequent questions.
Do I need to list all the actions I would like to make available into the removed-actions.xml file?
<config evaluator="string-compare" condition="DocLibActions" replace="true">
<action index="100" id="document-download"/>
Into these part?
I assume if I need to create 3 diffrent 'removed-action.xml' I should name them differently. Where do I need to declare the files?
Another issue: user roles might change between sites. In our case, a site is a project. We have few projects in the same time, so user A who is a manager of a site/folder in project A might be a simple Consumer in project B. In such case, do I need to create a group for each project?
If there is no role evaluator by default, you should create a custom evaluator by developing something similar to http://soft29.info/blog/entry/alfresco-extension-module-evaluators