Accessing portal role in WD4A

HI,
How to access portal role in WD Application.
Actually I want to restrict some fields to be shown in application. So I want to design some portal role based on this. So If roles assigned to user can be accessible in our application than I can achieve the required functionality.

Hi Haresh,
I think we both are in same ship. Even we do had a similar requirement. But we are gonna take care based on the backend roles(PFCG stuff). I dont think you can get the portal roles into WDA environment as the Portal Content(Roles) are entirely maintained in JAVA WAS.
Hope this helps.
Regards
<i><b>Raja Sekhar</b></i>

Similar Messages

  • Accessing portal roles in webdynpro for java

    Hi,
    Please let me know how to access portal roles in webdynpro for java.
    Rgds,
    Patana

    Hi ,
    Please use this API to access the portal roles:
    IRoleFactory fact=UMFactory.getRoleFactory();
    Also see this code to get more information of role using code:
    IRoleFactory rolef=UMFactory.getRoleFactory();
    IRoleSearchFilter searchfilterrole= rolef.getRoleSearchFilter();
    ISearchResult searchResult = rolef.searchRoles(searchfilterrole);
    while(searchResult.hasNext())
    String unq=(String) searchResult.next();
    IRole role1=rolef.getRole(unq);
    String roleName = role1.getDisplayName();
    String roleID = role1.getUniqueID();
    // Once you get the informationof role you can use it in your application as per your requirement.
    Also please note that:
    You should add "com.sap.security.api.jar" to your project`s java build path for getting the Portal Security API's.
    I hope this solves the problem. Please revert back incase you need any further informationon this.
    Thanks and Regards,
    Pravesh

  • No portal roles are assigned for this user.If this problem persists, contac

    I am trying to access portal first time using j2ee_admin user. It is saying "No portal roles are assigned for this user.If this problem persists, contact your system administrator."
    iam using abap+java enginee how config in abap enginne ,iwant which role to assign  j2ee_admin  user
    i already asiigned sap_j2ee_admin,SAP_BC_JSF_COMMUNICATION,SAP_BC_JSF_COMMUNICATION_RO   but it show same problem
    please help me..
    Edited by: Mugala Balu on Aug 7, 2010 5:53 PM
    Edited by: Mugala Balu on Aug 8, 2010 7:48 AM

    Balu,
    Well this issue has been discussed many a times in forums. You would have to point your data source to ABAP system.
    Check this thread in [here|J2EE Failed to start  , after changing UME datasource;.
    Good Luck!
    Sandeep Tudumu

  • Error while accessing portal.....

    Hi Experts,
       We have installed EP 7.0 SP 9.  It's working fine, but yesterday we met the problem, we can't able to access portal.
      After giving username and password, its opening the portal homepage with the following JavaScript Error on the taskbar.
    <b>1. 'disable personalize' is undefined
    2. 'EPCM.getSAPTop().gHistoryFrameworkObj' is null or not an object
    3. 'ActiveTrackingEntryIndex' is null or not an object</b>
      After showing errors above, its showing the portal HomePage.  If we click on any roles is loading with busy symbol, we can't able to navigate to any role or any workset after that.
      Please tell me some solution for this, it's very urgent.
      Points will be awarded.
    Regards,
    Chinnadurai.R.

    I also recieved this error.  It took me a while to discover the problem.  It is caused by the order in which .Net is installed.  If when you go to Applicaiton Pools you do NOT see: 
    - ASP.NET v4.0
    - ASP.NET v4.0 Classic
    If you only see
    - Classic .NET AppPool
    - DefaultAppPool
    - MBAMSitesAndSvcsAppPool
    Then you need to re run the setup of .NET using the commands below:
    Type cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\ and press <kbd>ENTER</kbd>.
    Type aspnet_regiis.exe -ir and press <kbd>ENTER</kbd> again.

  • J2EE roles vs Portal roles vs ABAP roles

    (I also posted this on portal implementation, but i hope i receive more reactions here )
    Dear all,
    I have a question about the information on the following link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4c/6c0f40763f1e07e10000000a1550b0/content.htm
    It says the following:
    "These functions are intended to assign users and their assigned portal roles a corresponding role in the SAP System. This corresponding role (authorization role) contains the authorizations needed to execute certain functions from the portal."
    1. These "...certain functions..." they talk about, can someome give an example of these functions?
    2. Is it possible for example to create a role in the portal that gives a user authorisation for starting transaction SE80 in the backend system? Without making the role in the backend first and uploading it to the portal.
    3. It's also possible to upload ABAP roles to the portal. Is the main reason for this that users can see their SAP menu (or part of it) in the portal? Or does this have other advantages too?
    4. I'm very confused about the relation between J2EE roles, portal roles and ABAP roles. Is it possible to manage the roles for a user in one place, without having to do certain actions in the portal AND the backend system?
    From what I've read on help.sap.com, you always need to do certain actions in both places.
    A possible approach is the following (from what i know): Creation of roles in the R/3 system, without assigning to users. From a webdynpro application, a user can then be created and roles can be assigned: portal roles (via some API) and R/3 roles (via BAPIs).
    I hope someone can give a bit information on this issue. I've done alot of reading on help.sap.com, but it's still an abstract issue for me.
    Kind regards,
    Joren

    Hi Jorem
    Re: point 3. I don't build portal roles through this mechanism as I don't believe in replicating the SAP easy access menu inside the portal. If there are some specific functions (transactions) that I want to run inside the portal, then I might use this mechanism to build the iViews once. I would rather start an iView that runs transaction SMEN and let the user see their regular easy access menu.
    Please note that the speed of executing transactions in the portal isn't a function of the portal, but the fact that you are using ITS, for example, to web enable the transaction...
    Re: point 4. Groups are a UME concept. They have nothign to do with ABAP groups. They can be created directly in UME through user administration functions, or they can be created in the LDAP and then they are visible in the portal. If the UME points to an ABAP system, then the ABAP roles are autoamtcially visible as UME groups. Groups created in the UME need to have the members assigned through user admin functions of the Java engine. Groups stored in LDAP are maintained using LDAP admin tools. There are upload utilities that allow you to maintain LDAP users and groups through text files. Google LDIF for more details.
    Roles on the portal need to be built in the portal contetn directory. As Michael mentioned, this can be automated by the use of the role upload function built into the portal.

  • Web/UME Services to fetch list of Portal Roles??

    Hi All,
    Are there any out of the box Web or UME services available which can fetch list of Portal Roles based on certain criteria.
    Basically I am looking for a service that will fetch list of all Portal Roles (PCD & UME) and will take couple of input parameters, a Role Name/ID & the permission property "Role Assigner"
    Thanks
    Sandip

    Thanks for your reply.
    But I guess these forums shows how to retrieve roles & its sub-ordinates for a particular user. Where as I am trying to retrieve all PCD roles for which I have "Role Assigner" permission.
    Basically I am building a delegated admin functionality on Portal using custom coding. It is the same as Portal out of box Del User Admin but I am not using it because of some other enhancements.
    I will have many user admins and the roles they can assign to users are determined by the "Role Assigner" permission. So its like, User_Admin_RoleA has access to 5 Portal Roles, User_Admin_RoleB has access to some other 5 roles and so on.
    So just wanted to know if there are standard Portal service (like we have for KM) available to do this.
    Thanks
    Sandip

  • ABAP roles v/s Portal Roles

    Hi All,
    Currently I was going through  EP security docs where I came across this
    "An important difference between ABAP roles and Portal roles is that in the portal,no authorizations are defined for the backend application itself. This must still be
    done within the backend applications (for example, mySAP ERP)."
    Can somebody plz explain me this..
    Would also like to know more difference  between ECC and EP security,
    Thanks,
    Ajit

    Hi Ajit,
    I have been looking into this for some time as well, but am still not sure of some things myself nor which scenarios fit best to which security aspects.
    My understanding is that it depends on how the portal is connecting to the backend.
    If the portal user is the backend user, then the portal role is just a permission to click on things in the portal. The portal roles are mapped to the backend roles in the ABAP system (so you can, and need to, define what that portal role can infact do when the portal user "clicks" in the backend, using the backend roles of the same backend user context).
    If the portal user is not the backend user (i.e. it is a system service for generic access to the backend), then you should restrict the backend access to the bare minimum of that service and control the security in the portal application (the calling application) as the backend user context is not the same.
    So it is a "design" answer as well...
    There are a few good posts about this if you use the search. If you find a good one, then please link it here so that others who use the search and follow up on their questions can use it as well.
    At the top of the forum, there is a sticky thread on FAQs and other usefull discussions. Sadly, portal security does not have any links yet, so if you find a good one then let me know.
    Cheers,
    Julius

  • Customizing availability of Portal Roles/TABs (ESS)

    Hello Portal Knowledgeable ones,
    I am running EP 6.0 SP13.
    We will be implementing many of the Standard HR ESS functions.  We desire to purposefully limit the hours of the day when these capabilities are available to users--EVEN THOUGH THE PORTAL IS UP.  As an example, viewing paystubs is available 24x7, whereas other update-type ESS functions (update absences) will not be available from 1am to 5am each day.  We want to limit this access because our payroll processing occurs during this window, and we do not want updates to occur during it.
    Here is my question:
    For the standard ESS web dynpro portal functions, how do we implement a time-of-day switch such that access to certain iViews is prohibited. 
    The end user experience needs to be as follows: 
    If time is between 1am - 5am and user clicks on updating ESS item in the portal, the system displays an alternative iView indicating that the system is down for maintenance.
    General advice would be welcome as well.  It seems that the portal displays tabs/content solely based on your pre-assigned roles.  How do you turn-off assigned portal roles dynamically?
    Thank you for any insights!
    Kevin

    Found a solution.  All users are assigned to groups.  Groups are then linked to roles.  To change content for user, update the group to role link using UMFactory inside a portal application.

  • Portal Role(s) to be granted for Content Management

    I am looking for the names of the Portal Roles that needed, in order the users to have access to "Content Management / Administration' area.
    So far, I have the roles for "Business Intelligence" and "Business Explorer".
    Best regards,
    Tom

    Hi Sandeep, thank you for your reply!
    Do you happen to know the exact name of the roles ??
    While in 'User Administration' editing the 'Assigned Roles' of a user, I cannot find any roles when searching for 'Conent' !!!
    Best regards,
    Tom

  • Storing Portal Roles in LDAP server

    Hi,
      I want to use an LDAP server for user authentication to my portal. The documents I got from help.sap.com says about keeping an LDAP server for storing normal user attributes and the portal db for storing roles. Is there any way to store thr portal roles also in the LDAP server and retreive them for authentication. Please help
    Thanks,
    Ranjith

    Hi Ranjith,
       There is no way to store the roles in the LDAP. They are kept in the portal DB. Also, portal roles aren't used for authentication like roles are in R/3. They are used mainly for determining what a user can see in the portal. 
    The authentication in the portal is based on the user id and password.  when you log on to the portal.  You will be assigned a role(s) for what you can see in the portal.  The actual authentication to application come from the back end systems.  For example, even if you have a portal role that lets you have access to a transaction in R/3, if you don't have the back end authorization you won't be able to get at the data.
    I hope this helps
    John

  • Modify the default "No portal roles are assigned..." message iView

    Hi,
    When a user with no roles assigned is trying to access the EP6 SP9 portal, he/she is facing a warning message:
    "No portal roles are assigned for this user.If this problem persists, contact your system administrator."
    accompanied by a 'log off' link.
    Is it somehow possible to change the look and feel and/or behaviour of this message?
    For instance, we would like the message appearance to be more 'friendly' and with a link where they can find further assistance, etc.
    With best regards,
    Robin

    The window for logoff is part of the masterhead. So i think you can modify the masterhead pasr file for that.
    Its location is at...
    usr/sap/<instance>/JC00/J2EE/cluster/server0/apps/sap.com/irj/servlet_jsp/root/web-inf/deployment/pcd.
    In this folder you can find the com.sap.portal.masterhead.par.bak
    this file can be imported to your developer studio and can be editted and uploaded.
    hope this helps
    Cheers
    gEorgE

  • IView to show Portal Role User Assignments

    Is there a Standard iView which can show what users are assigned to a portal role?
    Thanks.
    Regards,
    Mel Calucin
    Bentley Systems

    You can use delegated user administration to control the access
    http://wiki.sdn.sap.com/wiki/display/EP/ConfiguringDelegatedUser+Administration
    If you want only read-only access
    1. Copy the standard User Admin role from Portal Content - Content Provided by SAP - Admin Content - User Administrators
    2. Paste it in one your own custom folders
    3. Adjust the name and ID and remove unwanted areas in the custom role (like Import and Activity Reports)
    4. Go To User Administration and search and select the newly created role.
    5. Select the Assigned Actions Tab and remove all the actions and just add the UME action - Read_All
    6. Save your role and assign it to a test user (without the user admin standard role) to verify.
    Thanks
    Prashant

  • No Portal Roles assigned issue

    Hi Experts ,
    We had recently integrated CRM with portal , but some users inspite of having the portal roles assigned to their id were getting an Access Denied page (we had customized the "no portal roles assigned " error page ) . Knowing the dependency of portal on IE and browser settings , this issue is sometimes resolved by clearing cache , cookies , and changing a few browser settings etc on IE 6.0 . If this doesn't work then upgrading to IE 7.0 definetly helps . Since this is just a workaround , I would like to know if anyone has experienced such a thing before and has a solution for this . Your inputs will be highly appreciated .
    Regards
    Mayank

    Hi Mayank,
    This is an error which happens when there is No roles assigned to the user. I am not sure how your systems are designed for User Management. Say for example in some cases LDAP is used to maintain Group to User Relationships and Portal Roles are connected to Groups therfore all users in the group is assigned to the Role. In some cases UME is used.
    Having said that you can disable the cache for the browser. You have to compromise with the performance however, this will ensure that everytime the user logs in, the request will always go to the server.
    Regards
    Avik

  • Portal roles & NWBC

    Hi,
              Can someone tell the context of the portal roles (PPM_admin, RPM_admin etc.) in Netweaver Business client. Suppose I want to restrict access to a user in NWBC what should be the procedure. For example I want to give a user only Portfolio Management role in NWBC, how will I achieve that in pfcg role. Currently the pfcg role SAP_BPR_PPM is assigned to all the users and hence all the users have the privileges of Project Management, Portfolio Management, REsource Management in the NWBC. For your information, I am using Netweaver Business client for HTML.
    REgards,
    Swami

    Hi Thorsten,
                            Thanks for the reply. Yes I got it. In the meanwhile I referred to the note 1405902. It talks about how to restrict certain tabs and features based on the roles. But they are all related to the portal roles. Could you please kindly let me know how to remove tabs and features when one uses Netweaver business client (for HTML) as the front end? I am opening another thread for this.

  • Portal roles as Hyper Links

    Hi Gurus,
    How to make portal roles as hyper link?
    Regards,
    venkat

    Hi Venkat,
    To provide access to a workset or page within a role via URL, just copy the '<b>PCD Location</b>' parameter of the object within the role and use the following syntax:
    <i>http://<server>:<port>/irj/portal?NavigationTarget=ROLES://<PCD_LOCATION></i>
    You could also use the short URLs to link directly to a page object:
    1- Goto '<i>System Administration -> Navigation -> Short URLs</i>'
    2- Search for the page object, and find the corresponding short URL to the above mentioned PCD Location
    3- Use the short version of the URL '<i>http://<server>:<port>/irj/portal?NavigationTarget=navurl://<SHORT_URL _ID></i>'
    Hope this helps.
    Regards,
    Joseph
    Added 'short URL' information
    Message was edited by:
            Joseph Zeinoun

Maybe you are looking for