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]

Similar Messages

  • How to assign the vendor for Pipeline material like Oil,power etc.

    Dear All,
    Can anybody tell me , how tp  assign the vendor for Pipeline material like Oil,power etc.

    Dear,
    Create source list ME01 maintain vendor here if vendors are multiple.
    Create Info record ME11for vendor and material combination
    Regards,
    R.Brahmankar

  • How to change the role for SAPJSF to

    I am trying to create a new user in UME store. I did a ABAP+Java install. I am a Java developer, don;t know anything about ABAP, I should have only done the Java install and left ABAP, but I just stuck with the defaults during the installation procedue. I am only trying to deploy a J2EE application on SAP netweaver. I am unable to create the user the UME store, I am getting this error in the log, basically I have to assign SAP_BC_JSF_COMMUNICATION role to SAPJSF user. In the visual administrator I can see the GROUP SAP_BC_JSF_COMMUNICATION_RO and can see SAPJSF use underneath that group. SAP_BC_JSF_COMMUNICATION group does not have the user, and I don;t see a provision to assign the user to the group in the visual adminsitrator
    This is what I found in the SAP Library. I have to run  transaction PFCG to assign the role to the user (http://help.sap.com/saphelp_nw04s/helpdata/en/9e/fdcf3d4f902d10e10000000a114084/frameset.htm). I have no idea how to go about doing that. I have seen many thread where people have done that, but I could not find any place where it says how to run a transaction. Is there a UI for that? Please let me know. Any help is very much appreciated.
    #2#Cannot create user 02QIP0STMW% in ABAP backend system. Reason: The UME/ABAP adapter has recognized that the communication user is only assigned to the read-only role SAP_BC_JSF_COMMUNICATION_RO (or no role at all) in the backend system. Therefore UME was set to read-only mode for users from the backend system. See SAP Note 908911 for further information.#com.sap.security.core.persistence.datasource.PersistenceException: Cannot create user 02QIP0STMW% in ABAP backend system. Reason: The UME/ABAP adapter has recognized that the communication user is only assigned to the read-only role SAP_BC_JSF_COMMUNICATION_RO (or no role at all) in the backend system. Therefore UME was set to read-only mode for users from the backend system. See SAP Note 908911 for further information.

    Hi Viji,
    You need to have login into SAP GUI
    http://help.sap.com/saphelp_nw70/helpdata/en/4f/472e42e1ef5633e10000000a155106/frameset.htm
    To view elements of the SAP GUI , please check this link:
    http://help.sap.com/saphelp_nw70/helpdata/en/f1/6d2e42e1ef5633e10000000a155106/frameset.htm
    Regards,
    Siddhesh

  • HOW TO KNOW THE TCODE FOR CREATING A NEW ENTRY IN A PARTICULAR TABLE

    HI,
        CAN YOU PLEASE LET ME KNOW THE PROCEDURE TO GET THE TCODE FOR CREATING A NEW ENTITY IN A TABLE .
       EG: IS THERE ANY PROCEDURE TO KNOW THAT IF I CREATE A NEW ENTITY IN MM01 IT WILL BE STORED IN TABLE MARA.
    THANKING YOU.

    Hi Venkata,
    If you want to know, for a given table, which transaction/program(s) will create a new record,  there is no easy procedure, other than to refer to experts who deal with these programs.
    It is possible to get a list of programs that refer to a table.  SE11, select the table, select the 'where-used' icon, select programs, execute.  You will be presented with a list of programs that read or write to that table.  From that list you would have to determine which one(s) create records, using your ABAP skills.  From those selected programs you would have to find which, if any, had a transaction assigned.
    Many tables are updated by more than one program/transaction.  Many other tables are not updated by ANY interactive transaction.
    If you ever decide to go ahead with this research, make sure you publish it.  You could probably make yourself a bit of money.
    Regards,
    DB49

  • How to find out roles for a user

    Hi Experts,
                How do i find the roles that are assigned to me and for other users of BW and R3.
    Thanks
    Dave

    hi Dave,
    you can try table AGR_USERS,
    UNAME for user and AGR_NAME = role(s) assigned.
    or transaction SU01 to see user detail.
    (normally bw developer no authorization for this).
    hope this helps.
    PS.
    Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
    Spread the wor(l)d!

  • How to migrate the calendars for all users?

    At work we have two Mac servers, both running Mountain Lion. I'm looking for a way to migrate the calendars for all the users from server A to server B. I've recreated all the users on the new server, as there are problems with most users on the old server.
    I've seen some topics covering backing up calendar data on the server and seen some PostgreSQL related, but nothing seems to apply to Mountain Lion. How do I create a PostgreSQL dump of the calendars? I know I will have to edit the GUID's to make it work on the new server. Or is it as simple as copying the data from /Library/Server/Calendar and Contacts/ to the same location on the new server?

    At work we have two Mac servers, both running Mountain Lion. I'm looking for a way to migrate the calendars for all the users from server A to server B. I've recreated all the users on the new server, as there are problems with most users on the old server.
    I've seen some topics covering backing up calendar data on the server and seen some PostgreSQL related, but nothing seems to apply to Mountain Lion. How do I create a PostgreSQL dump of the calendars? I know I will have to edit the GUID's to make it work on the new server. Or is it as simple as copying the data from /Library/Server/Calendar and Contacts/ to the same location on the new server?

  • How we know the rights for particular user..?

    in BO CMC, how we will know what are rights and authorizations he has for all groups...
    Sri

    Log in to CMC and slect the group and select properties of the group or user and to user security to see their rights.
    I don't see any other automated system telling you the rights for each group.
    Regards,
    Bashir Awan

  • Oracle datapump extracting ddl for create user

    Hi All, I do have 11gr1 database on linux. I do have the full expdp dump of the source database I just need to extract the sql ddl for all the users(mroe than 10000) . . how can i extract ddl for create user statement from this dump file.

    user9074365 wrote:
    Hi All, I do have 11gr1 database on linux. I do have the full expdp dump of the source database I just need to extract the sql ddl for all the users(mroe than 10000) . . how can i extract ddl for create user statement from this dump file.impdp help=yes
    your desired option is listed

  • How to assign the budget to maintenance order

    Dear PM Guru's,
    I like to know the how to assign the budget for a maintenance order. how we control the expenses from a maintenance order. suppose for a small work manangement assigns budget as 2lacs. now i like to restrict if any thing purchased once budget reached to 2lacs system should populates the error message to restrict the creation of Purchase orders / material requisitions and some other issues. Please suggest me how i can map in SAP? if any one have full documentatioin regard this please send through mail.
    thanks in advance to all of PM Guru's.
    regards
    Jalu

    Hi,
    There are different approaches for budget control in PM orders.
    1) Option1: In koab transaction maintain commitment managemen active and in budget profile (oioa) you must tick total values ,annual values,activation type should be 1-automatic activated when budget allocation done. Then distribute budget in PM order through KO22.
    2) Option2:You can also opt for Investment management approach but it is mainly done in case of capital work/projects/internal orders. In this approach you need to activate IM for orders(done by CO people). Investment programs are created and budget distributed through IM52. For details you may consult your FICO consulatnt.
    3) Option3: Fund Management approach enables you to monitor budget-relevant plant maintenance processes. enables you to monitor budget-relevant plant maintenance processes in FM.
    The link between the plant maintenance process and FM is established by entering an FM account assignment (commitment item, funds center, and fund) when you create a plant maintenance order.
    You have to enter the FM account assignment manually. If, however, you have maintained the assignments of FM account assignments to CO account assignments, the system determines the FM account assignment from the cost center of the technical object (functional location, equipment) which is assigned to the plant maintenance order.
    FM takes care of budget related processes from creation of maintenance order till settlement.
    Hope this helps you to decide an appropiate approach.
    Regards,
    S.Basu
    Edited by: S Basu on Nov 10, 2011 5:34 PM
    Edited by: S Basu on Nov 10, 2011 5:34 PM

  • How to get the obiee dashboard secuirity in adf to assign the roles in adf for users

    how to get the obiee dashboard secuirity in adf to assign the roles in adf for users

    thanks Benjamin...
    my present requirement is pull Role to Dashboard mapping from OBIEE Catalog
    in my project we are going to restrict the users and assigning the roles from adf.
    Pls Help me..

  • How to disable the validity of a particular Role for 100 users, in a single

    Hi
    How to disable the validity of a particular Role
    which is assigned to 100 users. (disabling the role of change the validity of the role )
    at present am doing manually, by entering into each user and changing the validity of the role
    Thanks.

    > How to disable the validity of a particular Role for 100 users, in a single ...
    ... shot?
    Assign a reference user to the 100+ users and create events in the factory calendar which assigns and removes the role from the reference user only.
    The downside is that it is not scalable for many of the same concepts at the same time, because a dialog user can at one logon time only have one reference user assigned to them.
    Cheers,
    Julius

  • Assigning the role automatically when a user is created.

    Hi all,
    we are usign the EP 7.0 eph1 sp6 . we have a requirement that:
    When we are creating a new user and click save, then a user is created and to that user automatically a role should get assigned (without manual assignment of role to user). the role will have the framework page etc.
    and suppose we are assigning some role to the same user the above assigned automatic role should be deassigned automatically again.
    is there any possible way.
    Please help.
    regards,
    kavitha

    Hi
    When we are creating a new user and click save, then a user is created and to that user automatically a role should get assigned (without manual assignment of role to user). the role will have the framework page etc.
    for the above one we can follow the simple process ,
    as u need 2 assign the role automatically  while creating the user it self, u have to do the following.
    In user Adminstartion we have a button called Copy To New User.
    u just slect a user already created and just click on the button above, the  new user which is going to be created will get all the credntails and roles groups ,everything as the previous one.
    Just have a try .
    Sandeep

  • How do assign the user of Consumer Portal to the role of Product Portal?

    Hello All:
        Use FPN, now I want to assignment the role of Consumber Product Portal the user of Consumer Portal to  the user of Consumer Portal(RRA) .But because There are too many user that needed be configured.It is arduous work.
         So Pls help me and tell me how to import the role of Product portal to the user of Consumter Portal,
    Thanks In addvance.
    jideliang

    Thank all:
    Because I want assign the Remote Role of Produce to user of Consumer with FPN.Use:
    [Role]
    rid=Role1
    rdesc=Role description
    user=MarcPeters;JackSmith;Alan_Fox;
    group=HappyBuyersOf2003;HappyBuyersOf2002
    Can not import.
    I have find the document "How to Automate Content Creation via XML Content and Actions (NW7[1].0).pdf", it help me to use XML to import the role,the following format:
    <Action id="com.sap.portal.roleassignment">
    <Roles>
    <Role name="pcd:portal_content/myFolder/myRole" producer.alias = "myProducer">
    <Principal type="user" id="test"/>
    But when I import the XML file.There is a error.
    Have someone used it ?
    jideliang
    </Role>
    </Roles>
    </Action>
    How

  • How to assign the status profile to that particular user..?*

    Hello Everyone..
    I have created a status profile for the particulat sales order type so that a particular user can confirm the sales order and the pass it,so that further changes can be avoided.The profile has been assigned to Item category also.
    Now My problem is ,How to assign the status profile to that particular user..?
    so that only the user is allowed to change the order.
    Thanks

    Hi,
    Maintain authorization key (authorization code)  in status profile.
    We do not assign directly to user. We assign to role E.g sales manager / sales employee etc...
    We assign T.codes to role and assign role to user.
    Goto Role T.code PFCG. Enter role and click on change button.Goto Authorizations tab.
    Click on authorization data .
    Expand the  Cross-application Authorization Objects tree. Expand Status Management: Set/Delete User Status using Transaction.
    Click on Authorization key button, assign Authorization key.
    Click on status profile. assign status profile.
    Regards,
    Chandra

  • How to Default what fields and assignment blocks appear for every user?

    Is there a standard way to default what users see in the webui? We'd like to display certain assignment blocks, fields, etc without having the user go thru the personalization process. There are certain pieces we need to display across the board for every user and would like to set this up in advance of them logging into the WebUI.
    Thanks in advance

    Hi James,
    With the business roles you can define what the user is allowed to see or do and not.
    So you create your special user business role e.g. Z_USER_SALESPRO and then you can create a business role specific configuration of the views (add/ remove fields) or overview pages (add/remove assignment blocks).
    If you want to you can also deny user with this business role the possibility to personalize their pages at all.
    If you want to show information to all user in the same way then just maintain the default configuration in the enhanced component. As the WebUI always looks for the most specific key found within the configurations available.
    Please make sure you work in default configuration of the enhanced component, else you change SAP standard cheat sheet.
    Hope this helps.
    Best regards,
    Thea

Maybe you are looking for

  • Installed LION, cannot open mac app, ichat, and pages doesn't open any kind of documents.

    after installing lion, mac app and ichat works perfectly fine, the next day, it doesnt open anymore. it just bounces in the dock and crashes. i think some apps do the same, tried pages for the 1st time and it doesnt open any types of documents. its k

  • How to sync pictures from "Photo Library" on iphone 4 to computer to manage them?

    This is my senerio! I recently got an iPhone 4...before this phone, i had a Droid through Verizon. Yet, this iPhone 4 service is still through Verizon. When i got the iPhone, i wanted all my pictures from my old phone, the Droid, on this iPhone. The

  • Agent Enterprise Single Sign On 11

    Good day everyone, I have a problem with the Logon Manager component (agent) suite of Enterprise Single Sign On 11, when I install the agent on the client pc console generated in the Logon Manager administration does not recognize me configure applic

  • Error updating attribute in VO

    Hi, I need to set the value of an attribute in a seeded VO. But it gives me an error if I try to commit the changes. oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_RECORD_CHANGED_ERROR.      at oracle.apps.fnd.framework.se

  • Query to retrieve data from action infotype based on particular actiontype

    Hi folks, I need some help in retrieving data from infotype 0000. The records for a certain employee id (10035532) for action infotype are as follows.. I trying to retireve the LOA action records    BEGDA-ENDDA-MASSN-MASSG 1. 04/01/2008 - 12/31/9999