How to fetch Portal Roles ??

Hi,
I am using UME Api for handling users. But i am uable to fetch the Portal roles. Using ume apis we can fetch ume roles but not portal roles.
I am able to manage the users  using the same ume apis.
The current version EP 6.0 SPS02 is the what i am using at my end.
The program which i am running outside the EP, I am trying to fetch the portal roles on standalone java program (not a servlet but a simple java program using ume apis) and i am unable to fetch any roles.
if someone have faced the similar program then pls let me know how i can fix it this issue since it is little urgent and i have been stuck with this problem for quite sometime.  If you can give a sample code that would be great.

HI,
Refer to this Threads
Re: Extracting information from PCD through java program
Re: How to retrieve role Info

Similar Messages

  • How to fetch portal content for an user

    Hi all,
    I want to fetch all the assigned portal content(like iview,page,workset) for a particular user.
    I tried it by package,
    com.sapportals.portal.prt.component.*
    using IPortalComponentContext but I could't get success.
    Can anybody help me.
    Regds
    Sanjay

    Hi Mausam,
    UME APIs and Security APIs are alredy available
    with eclipse plugins.
    I am serching for an api by which assigned
    Iview,Page,WorkSet,Folder Can be retrieved.
    Weblog Submitted
    /people/prakash.singh4/blog/2005/07/28/browse-roles-folders-pages-iviews-assigned-to-a-user-ep6-sp9-and-higher   
    is using 
    import com.sapportals.portal.pcd.gl.IPcdAttribute;
    import com.sapportals.portal.pcd.gl.IPcdContext;
    These APIs I can 't find in
    C:\usr\sap\[sid]\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps
    can any body suggest me is any other API is available,
    and how can i use that API.
    Any immidiate response is highly solicited.
    Regds,
    Sanjay Chatterjee

  • How to fetch Portal Users data ? (Including Mapping details)

    Hi all,
    I want to retrieve Portal users data with the detail of its mapping (i.e. if the user is mapped or not with backend user? and if yes, to which backend user?).
    Thanks,
    Tejas

    Thanks for the reply Nadav.
    But what I want is the complete list of all the users, the reason being there are more than 2000 users on Portal and going for this one by one mapping checking is not really feasible time and effort wise.
    So is there any way how can I get the users data from UME or LDAP? as I have both kinds of users.
    Please guide.
    Thanks and Regards.
    Tejas

  • 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

  • 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>

  • 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

  • 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

  • How do you test portal roles and/or ESS roles if testid is not in LDAP?

    We have a process but it is hard to maintain and not very secure.  I was wondering how other Security Admins solve this problem.
    For examplle, we have users who use ESS, MSS, Adobe Forms and a few other portal roles.  And, all of them are using the LDAP to authenticate users.
    Our Basis guys have created test ids in the Portal but they need to be asisgned directly to a pernr (on Infotype 0105) in order to obtain the right information in the portal.
    I'm curious as to how others maintain this process.
    All suggestions and recommendations are welcome.
    Thanks,
    Penny

    If the Basis team has created the test-id on the portal, assign the MSS/ESS role as per the business process
    make sure to create the same userid on the backend system and assign the userid to a pernr
    Assigning userid to PERNR lot of postings are available to do this please search.
    Also I remember at one of my customers project  the portal was configured to have "parameter setting" on the portal rather than the backend system.
    summary: Userid - UME/LDAP ( Basis already created it in your case )
                                  Portal roles ESS/MSS   - assigned to userid
                                  ECC/HCM system roles -assigned to userid  ( after PERNR is tied to userid)
                                  Paremeter setting to be done on portal
    Regards

  • How to transport Associated Group in a Portal Role?

    Hi,
    I created a portal role which is contained in a folder X under Portal Content.  This portal role is associated with a particular ABAP menu-role by means of Assigned Groups.  When I transported the folder X with all dependent objects from Dev to QA, the portal role appeared but the Assigned Groups is empty.  Another words, the association between portal role and the ABAP menu-role could not be transported.  How can Associated Groups in a Portal Role be transported?
    Thank you in advance.
    Best regards,
    Zabrina

    Hi,
    I have tried to do it in two steps:
    1. Export and import portal contents which include the whole structure with folders, roles and iviews under each role.
    2. Export and import the same roles as user management data
    The result from 1 was that the whole structure including the roles is imported; however none of the portal role contains the associated assigned group.
    The result from 2 was that the UME roles with assigned group are imported as separat objects.
    Now, the same role appears both as portal role without assigned group and the UME object with assigned group. But, there is no connection between 1 and 2.  That means that I cannot use 2 anyway.
    Is there any other way to do than to export 1 and manuelly modify 1 with assigned role once again after transport?
    Thank you in advance for any helpful advice.
    Best regards,
    Zabrina

  • How to add a role to the Portal Favorites

    Hello gurus,
    I have a role to add to the Portal Favorites to avoid drilling down to many levels, does anyone know how to add a role to the Portal Favorites?
    Thanks in advance for your response.
    Regards,
    Niki Nguyen
    Message was edited by:
            Niki Nguyen
    Message was edited by:
            Niki Nguyen

    Niki,
    The documentation says that
    The Portal Favorites iView contains a freely definable list of links for direct access to items that you use regularly. This can include the following:
    &#9679;     Portal pages and iViews that run as full-page applications
    &#9679;     Documents, folders, and other items in KM repositories
    &#9679;     External items, such as Internet pages
    So we can't do it for Roles.
    For detailed information see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/3a/d609e5803111d5992f00508b6b8b11/frameset.htm">Portal Favorites</a>
    Mr.Chowdary

  • How many portal roles are needed for multi-country ESS?

    we are implementing ESS for multiple countries.
    has anybody tried to use one portal role for all countries?
    the new ESS business package comes with one ESS portal role that has content for all countries. I was wondering if we can use this role as-is (after making a copy of course) to present content for all countries, instead of creating one portal role for each country.
    Regards,
    Tiberiu

    in Employee Self-Service > General Settings > Homepage for Self-Services > Resources> Define Resources
    did you have to enter the PCD path to the country-specific iView?
    In that path you associate any resource to a Portal Page. Just change the PCD Path for custom Pages only.
    Only the services are "country-specific" (because they have assigned a MOLGA). Follow the path from my previous answer to add any country-specific app.
    the standard installation does not have the PCD path populated, it has the name WebDynpro application component instead
    This is common issue. Depending on how the installation/upgrade was performed, the resources table is populated or not. But if is not populated, the "URLof PCD Page" property is taken from client 000. In my last implementation, i expected this issue, but i not populate manually this property and everything works fine.
    Kind regards

  • How to remove default "Home" portal role from every portal user

    Hi
    My Portal system is configured on our BW UME.
    When ever I create a Used ID in BW,A portal account is created for the same user id.
    With out any portal roles (navigational) assigned to the user.
    Ex:
    Lets say I created a user u201CTesteru201D in BW and assigned him the relevant BW Roles (ABAP).
    When I logon to Portal using u201CTesteru201D, I can see a TAB u201Chomeu201D under which worksets Company,Work,Teams,Documents and Portal Information
    I checked the user account in Portal for tester there are no portal roles assigned to himu2026u2026.
    My requirement is not to display Home (tab)u2026.how can is that Home is assigned to all portal users and how can I remove it so that the users will be displayed with only navigational role that I assigned.
    Thanks

    Hi,
    In User Admin of Portal  search for eu_role and see check assigned users and assigned groups tab and see if this is added to the users or group.
    If you find it assigned to any users or any group delete the assignment and it should be gone.
    Hope this helps.
    Cheers-
    Pramod

  • Changing Portal Role after the status change of user status at the CRM end.

    Hi,
    I have Portal with Java database as the default and CRM is connected to it using SSO.The database in both the case in separate.The users that are created in Portal will have a BP status in CRM sytsem.
    Now my requirement is that if the status of the BP gets changed at the backend simultaneoulsy its Portal role should also gets changed.How shall i facilitate this procedure of changing the Portal Role?
    Is there any RFC ,BAPi or Webservices required for this?
    Regards,
    Amarys
    Edited by: amarys on Sep 13, 2011 11:20 AM

    Hello,
    Since the status has no number it will appear under statuses W/O number bottom right in status overview window.
    These status will appear as additional text beside current user status. For example if user staus is BUG and status without number is DFL and sets when deletion flag is set and gets deleted when it is revoked than user status will appear as
    BUG DFL -
    Deletion flag set.
    BUG -
    When deletion flag revoked.
    You have to live with it. I don't think there is a way out for that.
    Thanks
    Saikishore Ganga.

  • 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

  • Is there a way to automatically map CRM Roles to Portal Roles

    <b>Scenario:</b>
    When a new user registers on our portal he is assigned a CRM Role, however, he still needs to be assigned a Portal Role. Since we will have many users registering through our portal we do not want to assign roles to users manually. We want this to be an automated process, which requires almost no administration after the initial configuration.
    <b>Solution we are looking for:</b>
    Ideally we would like to do some configuration on the Portal side that would some how pull roles from CRM user store and map them on to appropriate Portal roles. In our case the reverse would also be ok as well, i.e. we do some configuration on the CRM side that would push the appropriate role to the Portal and do the Portal Role assignment.
    Does anyone know how to do this? I am very new to portals so a detailed explanation would be very helpful.
    Thanks for all the help!
    Muhammad Osman Yousuf

    No, the portal role will not be the same for the same CRM Role.
    So for example...
    On the CRM side we have CRM_ROLE_A, CRM_ROLE_B, and CRM_ROLE_C and on the Portal sider we have PORTAL_ROLE_A and PORTAL_ROLE_B.
    All mappings given are possible...
    CRM_ROLE_A = PORTAL_ROLE_A
    CRM_ROLE_B = PORTAL_ROLE_A and PORTAL_ROLE_B
    CRM_ROLE_C = PORTAL_ROLE_B
    The solution you mentioned, will it work with the above mappings?
    Thanks for all the help!
    Muhammad Osman Yousuf

Maybe you are looking for

  • Why are my Smart Playlists so completely out of sync?

    I created a smart playlist on my iTunes 10.6 that populates the list with randomly selected tunes that do not contain specific genres nor were played in the last 90 days to fill 3 hours. The songs that populate the list seem to meet those criteria. H

  • Business partner role - how to create it ?

    Hello , I create a business partner with BAPI_BUPA_CREATE_FROM_DATA, and after a role with BAPI_BUPA_ROLE_ADD. The fisrt step is ok, the second not... Do you know other way to create a business partner with a role ? tks, bye.

  • XML generated by Word

    I'm sorry but I'm crossposting this. The first post was in the wrong forum. I have some MSWord documents with variable fields that I have to compile programmatically. Now my project is pure java so I can't use Word Documents, but I found out that wit

  • Exported file WAY to large!

    Hello! I just bought Final Cut Pro some weeks ago, som Im a total rookie at this software. I taped a concert for a local band a few weeks ago with my Zoom Q3HD. They played for aprox. 30 minutes. I edited the video (it was originally 50minutes long i

  • Can i turn off email alerts for find my iphone

    How do you turn off email alerts for find my iphone?