cancel
Showing results for 
Search instead for 
Did you mean: 

programatically grant access rights in the PAR file

Former Member
0 Kudos

Hi All,

First of all, Can we programmatically grant access rights in the PAR file ?

<b>DETAIL</b>: The issue is, "I want to grant rights to the PAR file programmatically, so as to give access to a limited/specific set of users/group of users. If I am able to do this, then the only thing remains is to deploy it, add it to a page and set it for Portal Content, then I don't have to worry about Users privileges (whether they have privilege for it or not)".

I know how to create a PAR file via Eclipse (using Plugins) and how to deploy it.

Thanks In Advance,

Abhishek Jain.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Abhishek,

You can enforce/limit access to an iView in a number of ways.

The first and most simple way is to let the portal handle the access. If you have an iView that is intended for only the users of a specific role, you can embed the iView within a page created in the portal content catalog under the intended role. By doing this, only members of the intended role have a navigation path to the page.

The only problem with handling permissions in this way is that users can still access the iView from outside the role if they know the hotlink URL (e.g. https://<server>/irj/servlet/prt/portal/prtroot/<Application_Name>.<Component_Name>). If this is what you are trying to avoid, you can have the iView check whether the requesting user is a member of a special group. If the user is not a member of the group, the iView can display an access denied message. The UME API can be used to determine group membership (http://media.sdn.sap.com/html/submitted_docs/ume/ume40_0_index.htm)

Hope this helps...

Best Regards,

Mike

Former Member

Answers (0)