Knowledge Management administrators sometimes face a strange situation where they have to set permissions to users so that ‘they can only upload content (files) to the Repositories and should not create any Sub-folders within it’, to maintain the undisturbed Project or Company Hierarchy of Folders.
The Read/Write permissions in the Navigation iView can only restrict the users not to DELETE the content (files) but doest stop them creating Sub-Folders under the Navigation Root Folder.
This blog contains those steps to achieve the solution ‘to restrict the users not to create any sub-folders under their project root folders with permissions above Read / Write’.
To achieve this we need to work with Commands and Command Groups.
Commands: The user interface Commands are gathered into command groups in order to display them on the user interface.
Command Groups: A command group gathers multiple commands or command groups. These are displayed as a submenu or within a menu with dividing lines. Parameters are those that controls which command groups are displayed on the user interface.
We need to customize the Commands and Command Groups in order to get the required UI.
In short we will be working with the following UI components:
Note: For instance I’ve taken the Column Layout to my Navigation iView.
1. ConsumerColumnsProfile_Test : we will create a new columns layout profile
2. ConsumerColumns_Test : we will create a new columns layout set
3. ConsumerColumnCollectionRenderer_Test : we will create a new column collection renderer
4. ColumnsCollectionCommandGroup_Test : we will create new column collection command group
5. NewResourceGroup_Test : we will create a new resource group
The following steps guides how to about work on UI Commands and Settings:
NewResourceGroup: this is one of the command groups which contain the Command List for creating new resources in KM.
Goto: System Admin > System Landscape > Knowledge Management > Content Management > User Interface > Commands > UI Command Groups > NewResourceGroup
Create a Duplicate of ‘NewResourceGroup’ to ‘NewResourceGroup_Test’ and modify the Command List parameters. Refer to the below screen shot of NewResourceGroup_Test group in edit mode:
Now our requirement is to restrict the user for creating the ‘New Folder’. For this remove the ‘new_folder’ parameter from the Command List and see the screen shot below for the same:
ColumnsCollectionCommandGroup: this is a one of the command groups used for Columns Layout Profile.
Goto: System Admin > System Landscape > Knowledge Management > Content Management > User Interface > Commands > UI Command Groups > ColumnsCollectionCommandGroup
Now create a Duplicate of ‘ColumnsCollectionCommandGroup’ and name it as ‘ColumnsCollectionCommandGroup_Test’ and edit the Command List with newly created ‘NewResourceGroup_Test’ in the previous step. Refer to the below screen shot with the changes done to ColumnsCollectionCommandGroup_Test.
Collection Renderer: this is responsible for displaying multiple resources on the screen. It groups the various elements to be displayed and generates the screen display according to defined parameters.
Goto: System Admin > System Landscape > Knowledge Management > Content Management > User Interface > Settings > Collection Renderer Settings > Collection Grid Renderer Settings > ConsumerColumnCollectionRenderer
Now create a Duplicate of ‘ConsumerColumnCollectionRenderer’ and name it as ‘ConsumerColumnCollectionRenderer_Test’ and open it in edit mode. Now goto Collection Command Group and select the just created ColumnsCollectionCommandGroup_Test as shown the below screen shot.
Column Layout Set: Now its time to create a new Custom Column Layout Set and add the just created ConsumerColumnCollectionRederer_Test property to it.
Goto: System Admin > System Landscape > Knowledge Management > Content Management > User Interface > Settings > Layout Set
Create a Duplicate of ‘ConsumerColumns’ and name it as ‘ConsumerColumns_Test’ and open it in edit mode. As shown in the below screen shot change the Collection Renderer property to our newly created ‘ConsumerColumnCollectionRederer_Test’.
Column Layout Profile: We also need to create a layout set profile which refers to just create ConsumerColumns layout set.
Goto: System Admin > System Landscape > Knowledge Management > Content Management > User Interface > Settings > Layout Profile
Create a Duplicate of ‘ConsumerColumnsProfile’ and name it as ‘ConsumerColumnsProfile_Test’ and open it in edit mode. As shown in the below screen shot change the Layout Set property to our newly created ‘ConsumerColumns_Test’.
I guess we’ve done enough customization, now its time to work with the Navigation iView in portal.
Click on the Menu Icon of your root folder and goto: Details > Settings (in new window) > Presentation. This will take you to the screen similar to the below ones:
Now as shown in the screen shot click on the Select Profile button to get the available list of layout profiles in portal. Refer to the below screen for the same.
Here select the custom layout profile we created in the previous steps ConsumerColumnsProfile_Test (highlighted in RED box) and apply this profile to your root folder.
If you want this profile setting apply to all folder check the box shown in previous image.
Now its time to check whether we are successful in ‘restricting the user for not creating the sub-folders in the folder repository they have access to..!’
Now click on the Menu icon of your root folder (here in this case it’s EP Docs), by clicking on
‘New >’ will never allow users to create any more folders into the repositories they have access to. See the screen shot below for results:
And the KM administrators can retain their project or organizational folder structure unchanged.