diff --git a/bt5/erp5_dms/PortalTypeRolesTemplateItem/DMS%20File.xml b/bt5/erp5_dms/PortalTypeRolesTemplateItem/DMS%20File.xml
index 600ebe860dd0f884a53c0e7a8e5bb4f3e5abf22f..96dbe61df57dcf5142647ecb8106b6336bfb329e 100644
--- a/bt5/erp5_dms/PortalTypeRolesTemplateItem/DMS%20File.xml
+++ b/bt5/erp5_dms/PortalTypeRolesTemplateItem/DMS%20File.xml
@@ -1,2 +1,55 @@
 <type_roles>
-</type_roles>
\ No newline at end of file
+  <role id='Assignor'>
+   <property id='title'>Team Reviewer</property>
+   <property id='description'>The head of the team who is in charge of reviewing documents published by his team. He is granted special rights on documents produced by his team.</property>
+   <property id='condition'>python: not object.getSourceProject()</property>
+   <property id='priority'>10.0</property>
+   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property>
+   <multi_property id='category'>function/publication/reviewer</multi_property>
+   <multi_property id='base_category'>group</multi_property>
+   <multi_property id='base_category'>site</multi_property>
+  </role>
+  <role id='Assignee'>
+   <property id='title'>Project Assignees</property>
+   <property id='description'>In a project collaborative document, all project members have a right to access and modify a document before release or publication.</property>
+   <property id='condition'>python:object.getSourceProject() and object.isMemberOf('classification/collaborative/project')</property>
+   <property id='priority'>10.0</property>
+   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property>
+   <multi_property id='base_category'>source_project</multi_property>
+  </role>
+  <role id='Associate'>
+   <property id='title'>Project Associates</property>
+   <property id='description'>In a project document, all project members have a right to access the document before it is released or published.</property>
+   <property id='condition'>python: object.getSourceProject()</property>
+   <property id='priority'>10.0</property>
+   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property>
+   <multi_property id='base_category'>source_project</multi_property>
+  </role>
+  <role id='Assignor'>
+   <property id='title'>Project Reviewer</property>
+   <property id='description'>The head of the project who is in charge of reviewing documents produced by the project before release or publication.</property>
+   <property id='condition'>python: object.getSourceProject()</property>
+   <property id='priority'>10.0</property>
+   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property>
+   <multi_property id='category'>function/project/director</multi_property>
+   <multi_property id='base_category'>source_project</multi_property>
+  </role>
+  <role id='Associate'>
+   <property id='title'>Team Associates</property>
+   <property id='description'>All team members have a right to access non restricted documents before their release or publication.</property>
+   <property id='condition'>python:not object.isMemberOf('classification/personnal/restricted')</property>
+   <property id='priority'>10.0</property>
+   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property>
+   <multi_property id='base_category'>group</multi_property>
+   <multi_property id='base_category'>function</multi_property>
+   <multi_property id='base_category'>site</multi_property>
+  </role>
+  <role id='Auditor'>
+   <property id='title'>Management</property>
+   <property id='description'>Management has to access anydocument in the system.</property>
+   <property id='priority'>10.0</property>
+   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property>
+   <multi_property id='category'>function/hq</multi_property>
+  </role>
+</type_roles>
+
diff --git a/bt5/erp5_dms/PortalTypeRolesTemplateItem/DMS%20Pdf%20File.xml b/bt5/erp5_dms/PortalTypeRolesTemplateItem/DMS%20Pdf%20File.xml
index 600ebe860dd0f884a53c0e7a8e5bb4f3e5abf22f..96dbe61df57dcf5142647ecb8106b6336bfb329e 100644
--- a/bt5/erp5_dms/PortalTypeRolesTemplateItem/DMS%20Pdf%20File.xml
+++ b/bt5/erp5_dms/PortalTypeRolesTemplateItem/DMS%20Pdf%20File.xml
@@ -1,2 +1,55 @@
 <type_roles>
-</type_roles>
\ No newline at end of file
+  <role id='Assignor'>
+   <property id='title'>Team Reviewer</property>
+   <property id='description'>The head of the team who is in charge of reviewing documents published by his team. He is granted special rights on documents produced by his team.</property>
+   <property id='condition'>python: not object.getSourceProject()</property>
+   <property id='priority'>10.0</property>
+   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property>
+   <multi_property id='category'>function/publication/reviewer</multi_property>
+   <multi_property id='base_category'>group</multi_property>
+   <multi_property id='base_category'>site</multi_property>
+  </role>
+  <role id='Assignee'>
+   <property id='title'>Project Assignees</property>
+   <property id='description'>In a project collaborative document, all project members have a right to access and modify a document before release or publication.</property>
+   <property id='condition'>python:object.getSourceProject() and object.isMemberOf('classification/collaborative/project')</property>
+   <property id='priority'>10.0</property>
+   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property>
+   <multi_property id='base_category'>source_project</multi_property>
+  </role>
+  <role id='Associate'>
+   <property id='title'>Project Associates</property>
+   <property id='description'>In a project document, all project members have a right to access the document before it is released or published.</property>
+   <property id='condition'>python: object.getSourceProject()</property>
+   <property id='priority'>10.0</property>
+   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property>
+   <multi_property id='base_category'>source_project</multi_property>
+  </role>
+  <role id='Assignor'>
+   <property id='title'>Project Reviewer</property>
+   <property id='description'>The head of the project who is in charge of reviewing documents produced by the project before release or publication.</property>
+   <property id='condition'>python: object.getSourceProject()</property>
+   <property id='priority'>10.0</property>
+   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property>
+   <multi_property id='category'>function/project/director</multi_property>
+   <multi_property id='base_category'>source_project</multi_property>
+  </role>
+  <role id='Associate'>
+   <property id='title'>Team Associates</property>
+   <property id='description'>All team members have a right to access non restricted documents before their release or publication.</property>
+   <property id='condition'>python:not object.isMemberOf('classification/personnal/restricted')</property>
+   <property id='priority'>10.0</property>
+   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property>
+   <multi_property id='base_category'>group</multi_property>
+   <multi_property id='base_category'>function</multi_property>
+   <multi_property id='base_category'>site</multi_property>
+  </role>
+  <role id='Auditor'>
+   <property id='title'>Management</property>
+   <property id='description'>Management has to access anydocument in the system.</property>
+   <property id='priority'>10.0</property>
+   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property>
+   <multi_property id='category'>function/hq</multi_property>
+  </role>
+</type_roles>
+