cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Role: Need to Post&Reply Topics and Consumer in Site

lementree
Champ on-the-rise
Champ on-the-rise
Hi,

I need a custom role that can Post & Reply topics in Site forum, but he should have consumer permission in other pages like Document Library and Datalists.

I tried Following code

permissionDefinitions.xml

.
.
.
<permissionSet type="sys:base" expose="all" >
.
.
.
        <!– The permission to create new nodes                                            –>
     
      <permission name="_CreateChildren" expose="false" >
         <grantedToGroup permissionGroup="CreateChildren" />
       <grantedToGroup permissionGroup="CreatePost" type="fm:post"/>
       <grantedToGroup permissionGroup="CreateTopic" type="fm:topic" />
         <!– Commented out parent permission check …
         <requiredPermission on="parent" name="_ReadChildren" implies="false" />
         –>
      </permission>
     
      <!– The permission to link nodes                                                  –>
     
      <permission name="_LinkChildren" expose="false" >
         <grantedToGroup permissionGroup="LinkChildren" />
        <grantedToGroup permissionGroup="CreatePost" type="fm:post"/>
       <grantedToGroup permissionGroup="CreateTopic" type="fm:topic" />
         <!– Commented out parent permission check …
         <requiredPermission on="parent" name="_ReadChildren" implies="false"/>
         –>
      </permission>
.
.
.
</permissionSet>
<permissionSet type="fm:topic" expose="selected">
      <permissionGroup name="Coordinator" extends="true" expose="true"/>
      <permissionGroup name="Collaborator" extends="true" expose="true"/>
      <permissionGroup name="Contributor" extends="true" expose="true"/>
      <permissionGroup name="Editor" extends="true" expose="true"/>
     <permissionGroup name="TopicCreater" allowFullControl="false" expose="true" >
          <includePermissionGroup permissionGroup="Consumer" type="fm:topic" />
       <includePermissionGroup permissionGroup="AddChildren" type="fm:topic" />
         <includePermissionGroup permissionGroup="ReadPermissions" type="sys:base" />
      </permissionGroup>
     <permissionGroup name="Consumer" extends="true" expose="true"/>
     <permissionGroup name="AddChildren" expose="true" allowFullControl="false">
           <includePermissionGroup type="fm:topic" permissionGroup="CreateTopic"/>
           <includePermissionGroup type="fm:topic" permissionGroup="LinkTopic"/>
      </permissionGroup>
     <permissionGroup name="CreateTopic" expose="true" allowFullControl="false" /> 
      <permissionGroup name="LinkTopic" expose="true" allowFullControl="false" /> 
    
   </permissionSet>
  
   <permissionSet type="fm:post" expose="selected">
     <permissionGroup name="Coordinator" extends="true" expose="true"/>
      <permissionGroup name="Collaborator" extends="true" expose="true"/>
      <permissionGroup name="Contributor" extends="true" expose="true"/>
      <permissionGroup name="Editor" extends="true" expose="true"/>
     <permissionGroup name="PostCreater" allowFullControl="false" expose="true" >
         <includePermissionGroup permissionGroup="Consumer" type="fm:post" />
       <includePermissionGroup permissionGroup="AddChildren" type="fm:post"/>
         <includePermissionGroup permissionGroup="ReadPermissions" type="sys:base" />
      </permissionGroup>
     <permissionGroup name="Consumer" extends="true" expose="true"/>
     <permissionGroup name="AddChildren" expose="true" allowFullControl="false">
             <includePermissionGroup type="fm:post" permissionGroup="CreatePost"/>
             <includePermissionGroup type="fm:post" permissionGroup="LinkPost"/>
      </permissionGroup>
     <permissionGroup name="CreatePost" expose="true" allowFullControl="false" /> 
      <permissionGroup name="LinkPost" expose="true" allowFullControl="false" /> 
   
    </permissionSet>



sitePermissionDefinitions.xml


<permissionSet type="st:site" expose="selected">
  
      <permissionGroup name="SiteManager" allowFullControl="true" expose="true" />
     
      <permissionGroup name="SiteCollaborator" allowFullControl="false" expose="true">
         <includePermissionGroup permissionGroup="Collaborator" type="cm:cmobject" />
      </permissionGroup>
     
      <permissionGroup name="SiteContributor" allowFullControl="false" expose="true">
         <includePermissionGroup permissionGroup="Contributor" type="cm:cmobject" />
      </permissionGroup>
     
     <permissionGroup name="SiteForumUser" allowFullControl="false" expose="true">
        <includePermissionGroup permissionGroup="TopicCreater" type="fm:topic" />
      <includePermissionGroup permissionGroup="PostCreater" type="fm:post" />
      </permissionGroup>
    
      <permissionGroup name="SiteConsumer" allowFullControl="false" expose="true">
         <includePermissionGroup permissionGroup="Consumer" type="cm:cmobject" />
      </permissionGroup>
     
   </permissionSet>


I am getting permission to add Children in Forum but also getting permission to add Children in Document Library.

Can anyone please tell me how can restrict the user to Post only in Forums not in Document Library through Roles.

I can do this by manual manage permissions on Group. I want to implement this through Roles.

Thanks in Advance.
1 REPLY 1

dcotelo
Champ in-the-making
Champ in-the-making
Hi, did you solve it?
im having almost the same problem, i need the users can reply to topic but not create them.
Thanks.