How to programmatically upload roles to Portals.

How can we programmatically upload roles from CUA to Portal. Are there any BAPI's or any other methods that we can use to accomplish this. We currently have a program that runs as a job every night to create users and assigns them roles in R/3, EBP and WP systems and we would it to do the same thing for portals.
Any ideas/suggestions will be greatly appreciated.
Thanks.

Marek,
Thank you very much for your guidance. We are still stuck, we checked the configuration and it's set to SAP system but we don't see any R/3 roles in portals. Can you give us a little more details on:
1). Are there any specific entries in dataSourceConfiguration_r3_roles_db.xml file that would need to be changed?
2). Do we have to create roles in R/3 any differently in order for them to appear as groups in portal? Should these roles be created in ABAP side of Portal client or in R/3 client. Also, Where do these roles appear as groups in portal(path to get to those groups).
Any ideas/suggestions will be greatly appreciated.
Regards
Aurang

Similar Messages

  • How to control the role in portal with SRM7.0

    HI ,My expert :
      I work in SRM 7.0  with EP.
      I want to control the ROle about the business partner manage .In the portal ,some user can edit the business partner  data ,however the other can only display the data .In this case ,I do not  how to control ? dispaly the role in SRM or portal ?
      BestRegards!
      Alex!

    hello
    authorizations are made on SRM; create roles z in SRM and subsequently assigned to a group role-z also. But the authorization in SRM.
    Best regards.
    José Luis

  • How to transport a role in portal

    All,
    I created a new role and I would like to transport it. Could anyone tell me which steps am I supposed to follow and which role am I supposed to have to create a transport in portal?
    Regards,

    Hi Mike,
    Role is PCD object by using Transport package you can move from one server to anither server.
    Procedure:
    1)SystemAdminstration>SystemConfiguration>Transport-->Export
    -->create TransportPackage
    2)Add the Role to the transport package
    3)Start export and then download to the local machine.
    4) if want to import in another server
    SystemAdminstration>SystemConfiguration>Transport-->import
    import the .epa file
    Thanks
    Srikanth

  • How to get BI role in portal 2004s

    is there any delevered roles of BI/IP in portal 2004s ?
    do we have to download Business Package from SAP site to get more roles as we do not see any delivered roles for BI and IP in user admin of portal

    For BI specifically, there is the
    1. Business Explorer Role
    2. Business Intelligence Role
    3. Business Planning Role
    These are delivered roles and are installed with the BI-JAVA usage type. There is an additional role for admin cockpit called BI Administration Role. This role requires the Business Package for the Admin Cockpit to be downloaded and installed on your portal.

  • Migrate or Upload BI Roles to Portal Roles

    Hello Gurus,
    Can anyone tell me how to migrate BI roles to Portal roles or how to upload it to the Portal roles?
    Thanks in advance for your response.
    Regards,
    Niki

    The Architect's World - Episode 23
    http://help.sap.com/saphelp_nw2004s/helpdata/en/33/39fa40ee14f26fe10000000a1550b0/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6b1472a7-0301-0010-64bd-dc96509db6f7
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bd/3d1640d4642402e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/33/ed5840fc9e0272e10000000a155106/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6b1472a7-0301-0010-64bd-
    Hope it Helps
    Chetan
    @CP..

  • How to upload ABAP roles in Portal 6.0 N/W ABAP + Java

    Hi ,
    I have portal 6.0. How can i see the ABAP roles in portal. I know there is some backend system need to configured. please write step by step. I can create users in portal which is replicated in ABAP.
    i have gone thru some forums but did not get the answer.
    Regards
    Atul-

    Thanks for your reply... I am new to Portal. the document you sent me I did not understand where to configured backend system. please let me know where do I configured below information in portal
    When you create a system with a connection to an ABAP-based backend system, you must maintain at least the following property categories and properties:
    Property Category
    Property
    Connector
    Group;
    Logical System Name, e.g. QWACLNT100;
    Message Server;
    SAP Client;
    Message Server;
    SAP System ID
    User Management
    Logon method
    User mapping type (if you want to take advantage of user mapping)
    Internet Transaction Server (ITS)
    ITS Description, e.g. qwa_its
    ITS Host Name
    ITS Path
    ITS Protocol  
    Appreciate for your reply...
    Regards
    Atul

  • Upload BI roles into Portal

    Hi Everybody,
    Cud i know how to upload BI roles into portal?
    Thanks in advance.
    Regards,
    lina

    Hi Lina,
    Checkout the below:
    1) Upload of Roles from ABAP-Based Systems
    http://help.sap.com/saphelp_nw04/helpdata/en/41/5e4d40ecf00272e10000000a155106/frameset.htm
    2) Integration Using Role Upload (You can integrate BI content into the portal using the role upload function.)
    http://help.sap.com/saphelp_nw04s/helpdata/en/9d/8c174082fe1961e10000000a155106/frameset.htm
    Hope that helps and award points for helpful suggestions.
    Ray

  • How to create visitor roles programmatically

    Could you please help me how to create visitor roles programmatically using weblogic portal.
    Thanks in advance

    Hi,
    Point this method to the selectItems under selectonechoice.
            if (yourList == null) {
                (yourList = new ArrayList();
                DCBindingContainer bindings = ADFUtil.getDCBindingContainer();
                DCIteratorBinding iteratorbinding =
                    bindings.findIteratorBinding("yourVO1Iterator");
                if (iteratorbinding != null) {
                    Row[] rows = iteratorbinding.getAllRowsInRange();
                    String value = null;
                    Long key = 0L;
                    for (Row row : rows) {
                        value = (String)row.getAttribute("Attrib0");
                        key = (Long)row.getAttribute("Attrib1");
                        yourList .add(new SelectItem(key.toString(), value));
            return yourList;
    Thanks
    Nitish

  • How to map the bulk users with the required  roles in portal at one time

    Hi,
    Would anyone tell me how to map the bulk users with the required roles in portal at one time?

    Thanks for all the reply.
    <b>I need to assign 1 or 2 group to n((eg) 1000)number of users</b>
    I tried the first option like
    [group]
    gid=
    gdesc=
    user=
    Thr problem with this is I could n't put more no of users in the notepad.
    I would be able to put only 150 users in the single line of notepad. If it goes to next line it is not working.
    I tried creating seperate notepad but in Import it says "exists"
    I'm not sure about LDAP. Would anyone explain me the best approach to do this.

  • 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

  • Role upload into BI portal pointing to 3.x version

    Hi,
    sap BI Bakend menu roles uploaded into BI Portal, But When I check iview property BWVersion its pointing to 2.x/3.x instead of Netweaver BI 7.0
    And I assumed queries developed in 3.x pointing to 2.x/3.x. to avoid that I opened query in 7.x tool and saved and uploaded even though its pointing to 2.x/3.x template. Does there any bug or Are we missing any step in the part of upgrade?
    Please your thoughts on this.

    Hi Chirutha 
    Please see note 1121962
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_ep_pi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31313231393632%7d
    Regards,
    Assaf Klieger
    Installed Base Development
    NetWeaver Portal Platform
    SAP Labs Israel

  • How to change default properties when uploading role

    Hi, all.
    Our env. is like the following.
       EP 6.0 SP9 patch1
       J2EE SP9
       Windows 2003 MS SQL Server
    When we upload a role from R/3 to EP, role is correctly uploaded but the problem is the following default behavior.
    - default property of entryPoint for role is set to "false"
    - default property of GUI type for Transaction iView is dependent on the GUI support of R/3 SE93(Maintain Transaction Codes)
    Is there any way to change these default settings to some other values in EP without modification?
    What we want to do is that when we upload roles, we want to set the following values by default.
    - entryPoint = "true"
    - GUI type = "SAPGUI for Windows"
    One way would be to use Content Administration --> Multiple Property Replacement feature but we want to reduce our operation time more.
    Thanks.

    Hi Sejoon
    Even i'm in the same situation, i tried modifying transaction type in the
    com.sap.portal.appintegrator.sap.bwc.Transaction which is iview template for all the iviews created on import of roles..but it also dint work.
    yeah Multiple replacement is not the best of the option,
    let me know if u have figured out something.
    -Krishna

  • Unhandled exception for uploading BW roles into portal

    Hi experts:
    I  got the following warning in the log viewer when I uploade 2 BW roles, ZB_SAP_BW_DEVELOPER
    ZB_SAP_BW_WEB_ADMINISTRATOR, into portal (7.3). They are copies of the standard SAP roles.  I succcessfully uploaded other BI roles. These are the only ones that can not be uploaded. There is no error on the portal. Upload completed 100% but these 2 roles are not in the uploaded role list.  I checked sm12 and they are not locked. Wonder if anyone has had the same issue and solution?
    Log viewer warning:
    The following unhandled exception: [java.lang.NullPointerException: while trying to load from an object array loaded from local variable 'templateUrlArr'] was detected in [Thread[RoleUpload_1312911561066,5,Dedicated_Application_Thread]]
    Thanks

    Hi Tiberiu,
    I am also getting the same while uploading the BW 3.5 role to Portal 6.0, Role gets created but iviews throws the same error as you are getting.
    Please help if you have found the solution for the problem.
    Thanks in advance.
    Bhuvnesh Goel

  • How to assign roles to portal please describe

    how to assign roles to portal please describe

    Hi Deba,
    If you are talking about assigning roles to users .
    Then follow these steps :
    http://help.sap.com/saphelp_nw70/helpdata/EN/ed/845890b89711d5993900508b6b8b11/frameset.htm
    Create Workset and Roles :
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9f2df6f9-0701-0010-d08f-a95acdd86453
    For creating users,
    Go to user administration( You should have this role assigned to you) and create a user.
    Cheers,
    Sandeep Tudumu

  • How to assign the role for created user  thru dynpro App

    Hi All
    How to assign the role for currently created user from Webdynpro App.
    when i enter into the portal after creating the user
    i am getting the following messgae in the portal
    "No portal roles are assigned for this user.If this problem persists, contact your system administrator."
    how to assign the user defined role for the created user from dynpro App
    Regards
    Dhina  Kar J
    Edited by: Dhinakaran Jeyachandran on Feb 1, 2008 12:19 PM
    Edited by: Dhinakaran Jeyachandran on Feb 1, 2008 12:35 PM

    In the User Administration section of your portal find your newly created user and below select "Assigned Roles" tab then press <Modify> button and look through available roles on portal then just simply add and save. But if you want to do it programmatically see below:
    IUserAcountFactory userFactory = UMFactory.getUserAccountFactory();
    // IUser - read only but with IUserAccount is possible to set up user data
    IUserAccountSearchFilter userFilter = userFactory.getUserAccountSearchFilter();
    userFilter.setLogonUid("superuser", ISearchAttribute.LIKE_OPERATOR, false);
    ISearchResult sr = userFactory.search(userFilter);
    for (final Iterator i = new PrincipalIterator(sr); i.hasNext();) {
      IUserAccount user = (IUserAccount) i.next();
    Execute the same search for IRole (or IGroup if needed) get the unique id of them and use newRole(...) and addUserToRole(...) methods from IRoleFactory.
    Of course you don't need search for this principals if you know uniqueness of them. Use appropriate factories to get'em all by this unique id.
    All the features see in  [javadocs|http://help.sap.com/javadocs/NW04S/current/se/index.html]

Maybe you are looking for

  • Regarding Month End reports

    Hello SAP Experts I got a requests from SAP user that for SAP report (T-Code for report) List of GR IR Balances to be part of the month end processing. Can this report be automatically scheduled as part of month end.

  • Report.vi gives no timestamp for acquired data

    I am using LabVIEW 8.6 with the report generation toolkit and Report.vi (express vi). If I wire a simulated signal (again express vi) and generate a report (I'm using excel reports, but it's the same for an html), it gives a table with the time and v

  • Creation of user type

    hi i am trying to create a user type AGENT. i did it but when user created and assigned to AGENT. when i click on submitt button it showa an error IAM-3050056 : The specified value Agent for attribute Role is not one of the predefined values please s

  • Will i loose all my music when my phone gets synced to my windows computer?

    I have an iphone and ipad all backed up to icloud. I will be getting a dell labtop soon and i am just wondering if when i sync my phone to the computer will i lose all of my music?

  • RFC logon failed with message: Failed: Connect to SAP  gateway failed

    I installed CI instance fine and i am stopped here with this error at the end of DB instance install. Could someone let me know what could  be the reason for this. Is there any fix or workaround to continue the install. INFO       2006-09-16 01:13:02