cancel
Showing results for 
Search instead for 
Did you mean: 

Permission on folder which contain links,display links to everyuser

Former Member
0 Kudos

hi there

There is a folder in KM Explorer which contains links.

Permissions are set on this folder.

I have developed a program that retrieves these links from KM Folder and displays the links in an iview.

Now, only users that have permission to the folder can view the links in the iview.

I want to display the links to everyuser - but the specific permission on the folder should remain.

How do I do this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi rinx,

In your program, when creating the ResourceContext, use a service user instead of the loggen on user:

com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
ResourceContext ctxt = new ResourceContext(user);

For more information, See:

https://www.sdn.sap.com/irj/sdn/thread?threadID=62774

Hope that helps,

Yoav.

Answers (1)

Answers (1)

Kyle
Active Participant
0 Kudos

Rinx -

Is there a reason why you would not want to grant the group Everyone or Authenticated Users read access to the folder in question?

This would allow users to see the links but not necessarily edit, change, or delete.

Regards,

Kyle

Former Member
0 Kudos

hi

thanks Yoav, that works 100%.

Kyle, yes there is a reason why i cannot grant everyone read access..

In my code, folders in km are viewed in a drop down menu in portal-these folders are only to be viewed and managed by content administrator of each department.

if a user has access(read,write etc) he/she will be able to view a folder, but if they dont have any rights they will not see the menu item(folders) in menu bar in portal.

They are only allowed to see the links displayed in an iview.

Its abit complicated to explain properly..but i hope it gives you an idea.

Thanks

R