UME permissions/actions in WebDynpro

Hi,
   I am trying to understand as to how to use UME permissions and actions in a WebDynpro application. Can someone provide me steps of how to achieve it. Please do not provide me links to other threads or help.sap.com. I have gone through them.
Will reward points for helpful answer
Thanks in advance.
Regards

Hi,
If you want to use the UME for getting the information that who has currently logged in, then you can use the following steps:
1. Import the jar file com.sap.security.api.jar
2.In the WDInit() method create an object if the IWDClientUser like this
IWDClientUser wdUser = WDClientUser.getLoggedInClientUser();
3. Now create an object of the Iuser inerface
IUser user = wdUser.getSAPUser();
4. You can use the object user to get all the info abot the logged in user and depending upon the permissions of the user you can enhance your application.
regards
Naresh

Similar Messages

  • UME permissions for Images Saver Action Block,  MII version 12.1

    I have a BLS using the Image saver block but it seems that some MII users can do not have the ablity to save files using this action block.   The BLS transaction works fine when I'm logged in as MII admin. 
    What UME permissions do you need to write files on the local MII folder (in the project web path) to perform this action?
    Note:  I don't have access to UME on this box, as it is a customers box and is managed by a seperate basis person.  I need to let that person know what permissions to add.

    I think you have to assign the file system actions in the UME to a role that the user has:
    XMII_FileSystem_R, XMII_FileSystem_RW, XMII_FileSystemBrowser etc.

  • Make use of UME permissions in WDA for authorization

    is it possible to access UME permissions as it is in WDJ?
    thinking of a service API I couldn't find or probably linking it with object authorization?
    Ever came accross that? Or how would you guys handle authorization in WDA?
    Standard would be authorization objects?
    kind regards
    Stefan

    There is no WDA provided API for accessing hte UME.  I think most people would use the traditional ABAP role and authorization check mechanisms within WDA as well.

  • Can't find UME Permissions DC

    Hi!
    I trying to do the tutorial "Protecting Access to the Web Dynpro Car Rental Application Using UME Permissions" but when i try to create the DC UME Permissions it's nothing there.. it's nothing under the node sap.com->content->...
    Is there any library that i need to add? or is this a install problem?
    Thanks!
    Regards,
    Dalmo

    As I said, this is mentioned in the tutorial: "Before beginning with the tutorial, you should familiarize yourself with the concepts necessary for
    using UME permissions with this tutorial"
    Did you do so?
    I was wrong by the way, there is complete description for everything! If you still have a problem please tell me exactly on which page of the description.
    Regards,
    Benny

  • UME.selfregister_user ACTION

    Hi guys.
    I need to allow a custom anonymous user to self register in the portal.
    I can't find the ume.selfregister_user action on the Available actions listbox on the UME Administration page.
    I have SAP EP 6.0,/6.40 SP21/ Only Java installation.
    Could you please tell me why I can't find it?
    Best Regards,
    David.

    For Self Registration you need to set the following porperty in configtool. It's located in C:\usr\sap\<SID>\<instance id>\j2ee\configtool\configtool.bat
    ume.logon.selfreg = true
    1. Apart from setting the above property in config tool please do the following steps.
    2. Log-in to UME as administrator.
    3. Search for role "Everyone".
    4. Click the "modify" button and assign the action UME "Selfregister_user" to this role.
    5. Save the changes and try again.
    Please, refer the link as well for more information about the action "selfregister_user".
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5f/670db7939b8e48999d65f8a05ad611/frameset.htm
    After all the changes please restart the Cluster.

  • JMSSecurityException: You do not have permissions: action create_queue and

    Hi all,
    as I try to login to the system with username "guest", I got exception which I find in the trace. Someone knows why?
    EXCEPTION
    #1#javax.jms.JMSSecurityException: You do not have permissions: action create_queue and instance ALL.
    at com.sap.jms.protocol.notification.ServerExceptionResponse.getException(ServerExceptionResponse.java:231)
    at com.sap.jms.client.session.Session.checkReceivedPacket(Session.java:2614)
    at com.sap.jms.client.session.Session.createQueue(Session.java:2443)
    at com.sap.ip.collaboration.core.api.rtmf.core.RTMFMessaging$JMSPolling.startRunning(RTMFMessaging.java:1244)
    at com.sap.ip.collaboration.core.api.rtmf.core.RTMFMessaging$JMSPolling.run(RTMFMessaging.java:1182)
    at java.lang.Thread.run(Thread.java:534)

    Hi,
    Check th efollowing thread:
    Too many exception"ACCESS.ERROR: Authorization check"
    Rgds,
    Raghu Boddu

  • UME permissions.

    I am approaching the UME permission mechanism for the first time and I need some clarification.
    For my question I will refer to the famous tutorial concerning the car rental reservation.
    In that tutorial a MantainStandard action is defined. It contains one permission having NAME="*", VALUE="view" and a number of other permission such as [NAME="Compact", VALUE="create"],  [NAME="Mini Van", VALUE="cancel"], etc.. A user having this action is allowed to look at ALL the reservations in the db, but is allowed to create and cancel ONLY the reservations concerning the specified types of cars.
    Now, suppose I want the user to be allowed to look ONLY at the reservations concerning the same types of cars he can create or cancel (this seems quite reasonable!) To achieve that, I think that I had to replace the permission having [NAME="*", VALUE="view"] with a number of permissions such as [NAME="Compact", VALUE="view"], [NAME="Mini Van", VALUE="view"], etc.
    The question is: How do I write the code? In the code I have to query the db only for the types of car the user is allowed to look at. I do not need a boolean (like the one returned from hasPermission() method) but I do need a list of type of cars.
    Any help would be appreciated.
    Livio.

    Let me rephrase the question in a simpler way.
    An application provides information about the employees of a company. I would like that one user could look ONLY at the employees of dept A and B, whilst another user could look ONLY at the employees of dept B, D and F.
    What the permissions and the code should look like? The problem for me is that in the code I can check if the user has a permission (hasPermission() method), but this is not sufficient; I need the list of departments to query the db...
    Hoping in some help.
    Livio.

  • Print action in WebDynpro runtime (Visual Composer)

    I have added in toolbar for the table the button and as action have specified system action "Print". But in WebDynpro runtime it does not work unlike Flash (there is no pop-up window with a choice of printers). How to solve this issue?

    Jax,
    I don't think it's possible to directly print from within WD and call the printer dialog box per my understanding.
    But a workaround is achievable:-
    1. Create an Iframe element in a new view and embed an html page containing the print JavaScript i.e window.print();
    2. When you select the Print button, on its action handler navigate to other view containing the Iframe where the script will get executed and it should probably open a pop-up.
    Note: WD does NOT support JavaScript or client side eventing.
    Chintan

  • Configuring URL of actions in WebDynpro

    Hello,
    Our applications developed in Web Dynpro will go-live and we have a problem in our external access within the domain that was given by our client, in which our applications will be hosted.
    The WebServer (CE) will be hosted in www.nameofcliente.com/services. So an example of valid URL is www.nameofcliente.com/services/webdynpro/ExampleApp.
    We have no problem accessing that kind of URL, and the first call is beeing well rendered by the web browser. The problem we are facing is: All the forms and actions executed by the rendered page are not including the /services in the action URL.
    Example: The rendered page has a button that submit some data to the server. The URL of the action of this button is beeing generated as www.nameofcliente.com/webdynpro/ExampleApp. The /services will be missing, so the firewall/DNS wont resolve the call, and the Web Dynpro application wont be find.
    We understand that this is a natural problem related to the URL domain pattern.
    Our question: Is there a configuration in the Web Dynpro properties within NWA that can change the way URLs are generated for further actions. In our case, append a "/services" before every application context associated to an action?
    Any other solution to our problem would be very appreciatted!
    Thanks!
    Evandro

    Hi Erhan, thanks for your answer.
    The network is set as follows:
    A WebDispatcher 7.2 communicates with a NetWeaver Portal 7.0 and a CE 7.2. The CE runs the WebDynpro applications. Before we change proxy and firewall behavior we would like to make that change on WebDynpro links.
    WebDynpro needs to be published as www.domain.com/services/<context of webdynpro application>.
    The /services is removed on the WebDynpro inner links. We can workaround it with a proxy filter, appending that part of the address, but we would like to do it on the WebDynpro configuration, if it is possible within the NWA parameters, but we didnt find any configuration related to that yet.

  • Issue regarding cell action in webdynpro for abap alv

    hello gurus,
           i have one requirement in webdynpro for abap alv.i have one alv table in that i have one coloun employee name.
    for that i have provided F4 help and that is editable field.if i select value from F4 help it is getting value correctly and it is showing properly at the same time it is allowing values entered manually insted of from F4 help.but as per my requiremnet it should not allow any manually entered values.how can i get this functinality. i am not aware indepth od WDA.
    could you go through my isssue and could you revert me some solution.
    thanks in advance.

    Hi,
       I dont think this is possible because when you can change the value using F4 then it would obviously be
       possible to enter manually.
       You can try using a drop down instead because in drop down you cannot enter values manually,
       But this would be good if the values that can be shown in drop down are very low, if the values are more
       then again user will face problems selecting values.
       Else you can try out what srinivas suggested, But dont know whether we can have two cell editors at a time
       inside a single cell of ALV. Please post the answer if you have found any other way to do it.

  • On cell action in webdynpro

    Hello all,
    i have a requirement in webdynpro where i have a table with three fields UID,First name and lastname.
    there is a f4 help for UID if i select the uid its respective firdt name and last name should appera in the next two fields of the table.
    Thanx,
    Badri.

    Hi Badri,
      in your event, do something like this;
    here in this example think your UID field as carrid.
    DATA lo_nd_node_sflight TYPE REF TO if_wd_context_node.
          DATA lo_el_node_sflight TYPE REF TO if_wd_context_element.
          DATA ls_node_sflight TYPE wd_this->element_node_sflight.
          DATA lv_carrid LIKE ls_node_sflight-carrid.
          DATA t_sflight TYPE TABLE OF wd_this->element_node_sflight.
    *     navigate from <CONTEXT> to <NODE_SFLIGHT> via lead selection
          lo_nd_node_sflight = wd_context->get_child_node( name = wd_this->wdctx_node_sflight ).
    *     @TODO handle not set lead selection
          IF lo_nd_node_sflight IS INITIAL.
          ENDIF.
    *     get element via lead selection
          lo_el_node_sflight = lo_nd_node_sflight->get_element(  ).
    *     @TODO handle not set lead selection
          IF lo_el_node_sflight IS INITIAL.
          ENDIF.
    *     get single attribute, i am reading the value of carrid that is in your case UID
          lo_el_node_sflight->get_attribute(
            EXPORTING
              name =  `CARRID`
            IMPORTING
              value = lv_carrid ).
    *      here i am getting the data for that particular carrid, in your case get the data first name & last name for that particular UID
            SELECT * from sflight into t_sflight where carrid eq lv_carrid.
    * now i am binding the new updated table
             lo_nd_node_sflight->bind_table( t_sflight ).
    With luck,
    Pritam.
    Edited by: Pritam Ghosh on May 14, 2009 1:21 PM

  • Delete UME Action from a portal role

    Hi,experts!
    I have created a portal role.
    The role have UME ation(UME.AclSuperUser,UME.Manage_All),but I don't know why Ations belongs to the role.
    If you have the knowlege of this problem, please tell me how to delete UME ation from a portal role.
    Best regards.
    Edited by: miki on Dec 11, 2008 10:03 AM

    HI,there.
    I found out a inconsistent data inside the Role.
    I checked :
    Content Administration -> Portal Content -> Role -Objects
    and opened a property editor.(property category "permissions (Java-Based").
    There are also settings about Permissions(Actions) as Useradmin, and a discrepancy in the system occurs between this setting and Useradmin.
    I changed this setting and fixed the error .
    Thank you for your help:)
    Best regards.
    Edited by: miki on Dec 16, 2008 6:16 AM

  • UME: Regular Permissions - ACL Permissions

    Gentelmen,
    After reading recently published SDN article about WD security (Aug 31, 2004 -- https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/web dynpro security.pdf), one question araise for me: what is a connection (if any) between regular UME permissions (in fact, std. java permissions) and UME ACL permission?
    Any thoughts?
    VS

    [ -closed with no resolution- ]

  • Using UME to to get permissions to do stuff....

    Hi,
    I have a project that consumes several web services.
    I'm trying to control the access to those WS's using UME.
    I've read the "Protecting Access to the Web Dynpro Car Rental Application Using UME Permissions" tutorial which refers me to few classes:
    com.sap.security.api.permissions.NamePermission
    com.sap.security.api.permissions.ActionPermission
    com.sap.security.api.permissions.ValuePermission
    the problem is that I don't have those classes.... nor do I have the package com.sap.security.api.permissions....
    Any suggestions?

    Hello,
      Add this to your class path:   WD_RUNTIME/com.sap.security/lib/com.sap.security.api.jar
      WD_RUNTIME is a default variable, just extend it and
      select com.sap.security->lib->com.sap.security.api.jar
    Regards

  • QuickCarRental permissions using UME

    Hi, I am doing this tutorial:
    [Protecting Access to a J2EE-Based Application using UME Permissions|http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/adcfa85d-0501-0010-a398-80a47b8e3fc2#tut2 [original link is broken]]
    I'm having a problem with the definition of the permissions.  There always seems to be the error "User cannot view reservations" even though I assigned the user to the ViewReservations permission.
    Help? Thanks.

    I seem to be having problems with the EJB permissions. The Web Application permissions seem to work just fine.
    Thanks.

Maybe you are looking for

  • I had to get a new hard drive for my laptop.  Need help?

    I had to get a new hard drive for my laptop. Downloaded iTunes and now it says "this ipod it synced with another itunes library.Do you want to erase this ipod and sync with this itunes library."   Will it erase everything on my touch?

  • Webservice sender . Pls advice urgent

    Hi Piyush/All, My scenario is System A (Webservice) -- XI -- File System A is providing WebService(wsdl) to XI So It is a webservice(wsdl) of System A. XI will import that wsdl as External Defination and map to File Interface. System A will send soap

  • MSN Premium vs Windows 7

    Upgraded xp computer to windows 7 (clean install). Lost my MSN software in the process. Downloaded "FIOS with MSN" to my desktop. When I try to run the installer, it stops and tells me my OS doesn't meet minimum requirements. Apparently doesn't recog

  • Related to RG23 A

    hii all, plz help me. in my system few problems are coming, 1) job work challan is not getting generate., means job work register is not fetting updated. 2) i am doing to post the excise document , after capturing the excise doc., means PO- Jiex-MIGO

  • Using an iPod nano while mowing the grass?

    What's the best iPod holder and earphones for use while mowing the grass with a self-propelled push mower? Right now I'm using the enclosed iPod earphones, which have no external noise suppression and I'm simply putting the ipod in my pocket, which m