on 10-17-2005 3:22 PM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.