Get inf. about user, rol and group, which shows and works on my webdynpro ?

Hi everybody,
Can someone help me? I need the information about rol and group of the user, who's show and work on my webdynpro?

Hi,
You can use the below code to get the information you need. You need to add the jar file com.sap.security.api.jar to your Web Dynpro project's build path.
       IRoleFactory roleFactory= UMFactory.getRoleFactory();
    IGroupFactory groupFactory = UMFactory.getGroupFactory();
    try
     IWDClientUser wdUser = WDClientUser.getCurrentUser();
     IUser user = wdUser.getSAPUser();
     Iterator assignedRoles = user.getRoles(true); // true means all the roles are searched recursively
     Iterator assignedGroups = user.getParentGroups(true); // true means all the groups are searched recursively
     while(assignedRoles.hasNext())
          String roleID = (String)assignedRoles.next();
          IRole role = roleFactory.getRole(roleID);
          String roleName = role.getUniqueName();
     // Fill your model node with the role
     while(assignedGroups.hasNext())
          String groupID = (String)assignedGroups.next();
          IGroup group = groupFactory.getGroup(groupID);
          String groupName = group.getUniqueName();
     // fill your model node with group.
    catch(Exception ex)
         messageManager.reportException(ex.getLocalizedMessage(),false);

Similar Messages

  • Project Server 2010 - Project Permissions - Users and Groups filter is not working

    Hi,
    While giving permissions from project center ribbon on a project - Users and Groups filter is not working, we are not able to filter any user.
    I am not sure why this error is occurring  i tried giving permissions by opening the project  but still the same filtering is not happening. Below is the screen shot
    We have installed Service Pack 2 and June 2014 CU recently will this effect ?
    Can any one throw some light on this??
    Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

    Hi Geetha,
    Which IE version are you using? First I'd try to add the URL to the compatibility mode sites, then to the trusted sites (if it is not done already). Then I'd try to set the default browser as IE8 or 9 (pressing F12, developer tool).
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Hi I do not want iTunes to open up automatically when I turn on my macbook pro.  I tried going to System Preferences Users and Groups Login Items and then I took iTunes off the list but it still opens up automatically when I turn on my laptop.

    Hi I do not want iTunes to open up automatically when I turn on my macbook pro.  I tried going to System Preferences>Users and Groups>Login Items and then I took iTunes off the list but it still opens up automatically when I turn on my laptop. What should I do?

    Hi r,
    Make sure you close iTunes before shutdown.  And you're quite welcome.

  • I would like to purchase Contribute. We currently do not have any of the creative suites or Contribute. How much does it cost to just get the single user for Adobe Contribute CS5? And how do I purchase that?

    I would like to purchase Contribute. We currently do not have any of the creative suites or Contribute. How much does it cost to just get the single user for Adobe Contribute CS5? And how do I purchase that?

    I think it's just a little over $200 if you don't have an older version to upgrade. Around $100 if you do.
    You can get it at www.adobe.com/products/contribute.html.
    Click the "buy" button (top right of the page) then select "full" next to where it says "I want to buy". Add it to your cart (at that point you should get the exact price).

  • If my Adobe Muse and Air apps are  both up to date as of today and I cannot open a Muse file, what are my options? I get an error message regarding the Progress Window showing and then Muse crashes.

    If my Adobe Muse and Air apps are both up to date (as of today) and I cannot open a Muse file, what are my options? While Muse is relinking assets I get an error message regarding the Progress Window "showing" and then Muse crashes.

    Hi there,
    Do you get this error while opening a particular file or all files?
    Please try opening a different .muse file, and check if it does the same?
    Ar you opening a .muse which is saved on a network drive?
    Thanks.

  • I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all.  Obviously some setting has changed but I can't find which one.

    I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all.  Obviously some setting has changed but I can't find which one.

    I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all.  Obviously some setting has changed but I can't find which one.

  • HT1766 Hello, I am using iphone 4 with softward 4.3. Can I update software and to which version and how?

    Hello, I am using iphone 4 with softward 4.3. Can I update software and to which version and how?
    Thank you for your advice.

    You can go to ios7.1
    UPDATING iOS
    Over the air updating of iOS needs iOS 5 or later so unless you have iOS 5 or later you will not see updating in setting
    The following link explains how to update http://support.apple.com/kb/HT4972
    This link explains how to update using wireless http://support.apple.com/kb/HT4623
    This explains how to transfer purchases to your computer http://support.apple.com/kb/ht1848

  • When i open facebook and only text shows and all is to the left and when i open hotmail nothing shows on my screen and other webpages have problems also when click at a link all the text comes up also to the left in my screen whats wrong ???

    When i open facebook and only text shows and all is to the left and when i open hotmail nothing shows on my screen and other webpages have problems also when click at a link all the text comes up also to the left in my screen whats wrong ???

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    See also:
    * http://kb.mozillazine.org/Websites_look_wrong
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • Get information about users, which shows and works on my webdynpro

    Hi everybody
    I need to know, what is the form to get the information about de user, who's shows and entry my webdynpro. i need this information to send to RFC Model to ABAP server

    Use the UME for that:
    try {
         IWDClientUser wdUser;
         wdUser = WDClientUser.getCurrentUser();
         IUser user = wdUser.getSAPUser();
    } catch (WDUMException e) {
         e.printStackTrace();
    variable "user" has now all the data from the current user executing the dynpro,  extract the info from "user", then pass it as input parameter to your RFC's.
    Regards
    Julio C. Herrera

  • Urgent: User Roles assigned to Sales Orgs and document types

    Dear Guru's :
    I have job user roles one side and sales orgs on otherside. We are trying to find out which sales orgs are using what sales document types.
    All i am trying to achieve is connect those two and make a report. it needs to be done by SE16
    First step is :
    PFCG- Enter Role u2013Click glasses-Authorizations-Display Authorization data
    you need to identify the authorization objects for each T-code and then assign the appropriate values for each authorization object. these authorization objects assigned to a Role and then, allowed T-codes are assigned to Role and
    My Basis Person to Create one AUTHORIZATION OBJECT      V_VBAK_AAT  Sales Document: Authorization for Sales Document Types  and assign your required transaction codes to that authorization and assign them to the users.
    User IDs which can use this Role (set of authorizations) can be assigned to this role.
    Second step is achieved through SE16 ;
    Execute this two table :
    There is no one-shot for this However there is a way out for this outside SAP.
    You can download AGR_1251 and AGR_1252 for the selected roles and use MS Excel or Access to do this compare for you. Its a bit more tricky than said, however once you get a hang of it, I think its a good way of reducing the efforts of making use of individual compare reports.
    Any one knows how to do this i am kind of lost here.  Could you help me to organize this process / steps.
    Full points will be given to who helps me answer my question.
    Thank you in advance.

    Dear Raghu and all:
    I am very much thankful to you for your answer Raghu. This is exactley what i was looking for. Could you throw more light on this topic. Or do you know where can i get more info.or  more tcodes related to this topic. I am using SUIM and PFCG. I dont know much about this transactions. Could you please help me to understand this topic.
    I have Authorization object through which i found out which sales documents are attached to users. I dont know next step in this process. Or does any one know any thing about this subject.  Any help will be grateful.
    Van bills.

  • How to get information about user's capabilities in content folder

    Dear collegues,
    I created a few portal pages associated with folders in WLP Repository. These pages contain portlets which display the content of the associated folders of a repository.
    Also I've created portlet - Uploader for MS Office files (Uploader gets properties from file, controls it and puts it in associated atributes of new content item). And I've created Delegated administration roles with create|update|publish capabilities for folders of a repository.
    Now I need to put on my portal pages control which will display link to Uploader if current user has create|update|publish capabilities to associated folder (via DA role).
    But I have faced 2 problems:
    1) If user (with DA role) logins from portal page (I use sample login portlet) he cannot create item in repository via Authorization exception (but from Portal Admin Console he can!);
    2) I couldn't find API which shows the current user has the necessary capabilities in a corresponding folder.
    Help me, please!
    Edited by: 817211 on 01.12.2010 4:51

    In addition to my post#1 next information to break youк mind.
    Today I also have created visitor entitlement (enterprise application scope) and associated content folder/items with view capability for this role.
    After I have login on portal page via Sample Login Portlet with my credentials (visitor role above) I have found out that I have no rights to viewing of the necessary content.
    What is a problem? May be it's Sample Login Portlet? Or I have to made some additional actions after login to get the existing visitor entitlement rights for current user?
    --Alexander                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • User and Group IDs.. and where are these recorded?

    I come from a Unix background, so I'm having a little trouble getting my head around this. /etc/passwd and /etc/group are apparently not used for normal user accounts in OSX. Is there a way to change the UID and GID of a user account?
    The reason I'm asking is because the Mac version of Guitar Pro installs as UID and GID 501 and, on my Mac, it crashes about halfway through playing a song with:
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNINVALIDADDRESS (0x0001) at 0x061f9f18
    ... and I suspect the problem is file permission related, as my main user account is UID/GID 502, and 501 does not relate to any existing user account on the system (I deleted my original account shortly after getting my Mac and created a new account for myself) .

    UIDs and GIDs are managed with /Applications/Utilities/Netinfo Manager. Since you claim to have a unix background, you probably don't need to be told to not mess with any of its settings unless you know what you are doing.

  • User management API/get all the users for a group

    Hi all,
    I'm trying to get all the users and their associated groups with the user management API. The method DirectoryManagerServiceClient.findGroupMembers(GroupMembershipSearchFilter)
    returns all the users, great, but not the associated groups.
    TO get the users i use the oid of a "super group" and this "super group" contains severals groups. It's the information about these groups i need.
    I have read in the documentation of Principal Object that a search could omit
    the group informations for efficiency. How can i bypass this limitation?
    Thank you in advance for your help,
    Philippe Vandenhove

    Hi Philippe
    Our CreateUser component will allow you to create local users and groups.
    http://avoka.dnsalias.com/confluence/display/Public/Create+User+Create+Group
    LookupGroup takes a group name or id, and returns a list of all members. I'm pretty sure it recursively evaluates contained groups, but you'll need to check. If it doesn't, log a bug to support-at-avoka.com.
    http://avoka.dnsalias.com/confluence/display/Public/Lookup+DSC
    Download at:
    vhttp://www.avoka.com/apps/checkcookie?qpac=y&qpac_code=avokaESComponents&location=%2Fapps %2Fqpacdownload
    Howard

  • I have installed iTunes twice and when I try to open it all I get is the user agreement.  Click on agree and then nothing.  Windows

    I try to open my itunes and all i get is the user agreement and then nothing happens once i click on agree.  Can anyone help

    Refer to following article to remove SC Info.lib file:
    http://support.apple.com/kb/TS2363
    Then repair your Quicktime. START / CONTROL PANEL / PROGRAMS N FEATURES / hightlight QUICKTIME and click REPAIR.

  • Getting Logged in user roles

    Hi EveryOne,
    We are developing repository filter.  Here we need to check roles of loged in user. How can we get role names  in repository filter application?.
    Thanks in advance,
    Venkatesh.R

    Hi Venkatesh
    You can refer to your doubts in through the folowiing PDF
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3641e490-0201-0010-c68f-e51221925714
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2b/306bb5bc98f24f8a85d489449af456/frameset.htm--
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/ep/_s-u/Using%20The%20New%20User%20Management%20API%20in%20EP%206.0
    For getting Logged on user details
    String presentuser=null;
                   IWDClientUser wdUser = WDClientUser.getCurrentUser();
                   IUser user = wdUser.getSAPUser();
                   presentuser=user.getUniqueID()
    you will have to get com.sap.security.api.jar
    (Path C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.security_2.0.0\lib\com.sap.security.api.jar.  //// the path is the installed directory of NWDS )
    Thanx
    Pankaj

Maybe you are looking for

  • ITunes updater not working

    I already have iTunes, and I've been using iTunes for about a year. When I opened iTunes today, it told me a newer version was avalible, so I clicked yes to install the new iTunes. It came up fine and went through all the normal operations, until it

  • How to set fontFamily with an embedded font of a textFlow ?

    Hy, When I create a TextFlow without use any component of the flex SDK (4.0.13827) and then I try to change or apply a FontFamily of an embedded font, it doesn't work. Whereas when I use a component like RichEditableText or Label, it works. Bellow th

  • Using the iPod as a Hard Drive- am I doing this right?

    I am in the process of transferring files (marked by the years 2005, 2006 etc.) from my iPhoto to my iPod. Will I be able to transfer them back again? How? Is this a good and a wise way of saving my iPhoto collection, so that I can free up iPhoto its

  • CS5.5 Design Premium Fonts

    After installing I noticed that ROCKWELL font is missing. There may be others but I used this one regularly so it is really missed. I have checked the system font folder and the old font storage folder on my windows machine and its not showing up. AD

  • Link Slow

    We use Cisco1310 at our customer location; the units are installed in the outdoor for a distance of 4 KMS, with external antenna. The link is slow and the TTL on the Ethernet is not stable, the SSID and the WEP key is applied for 40 BIT encryption, t