How to get a organization name for a particular user using API's

Hi alll,
How to get a organization name for a particular user using API's

You need to do something like this:
SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
               UserManager usrService = oimClient.getService(UserManager.class);
               Set<String> retAttrs = new HashSet<String>();
               retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
               List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
               System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

Similar Messages

  • How to get the owner name for the file in ftp using abap ?

    Hi folks ,
    How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
    but doest work out me . Helping in this regard highly appreciated ...
    Thanks and regards,
    Swarupa Vanarchi

    Hi
    dont you  have used the os user while calling the FTP_CONNECT FM?
    Hope you are not talking about the user executing the FTP program.
    Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
    May be i am going too far with if and elses here as your question possesses no  clarity.
    Plz elaborate your requirement  before anybody can help.
    Regards
    sateesh

  • How to get mobile model name for different types mobile devices

    Hi,
    I have checked few thread in this forum about getting mobile model name at server. So far, i noticed the mobile name is set manually in the midlet as user-agent .
    HttpConnection connection = null;           connection = (HttpConnection)Connector.open(url);          connection.setRequestMethod(HttpConnection.POST);          connection.setRequestProperty("User-Agent","Nokia7110 Profile/MIDP-1.0 Configuration/CLDC-1.0");
    i retrieve the header information from servlet like below :-
    String userAgent = request.getHeader("User-Agent");
    How to get mobile model name for different model devices , not by manually adding the model name in midlet?
    Thanks in advance :-)

    Hi,
    In J2ME there is no method to get the model number from the device. how ever you can use the APIs provided by the device manufacturer if available. But still the APIs will not work with devices from other manufacturer or sometimes it will not work with the devices of the same manufacturer if the API is not supported. so it is better to send the device model name through the header.

  • How to get the currency of the logged in user using an el expression

    I want to get the currency of the logged in user using an el expression. I can get the same using ApplSessionUtil.getCurrency(). But can i get the same using an el exprssion?. I want to use this el expression for setting the default value of a VO attriubte
    Thanks in advance

    Hi
    If you are getting the currency value from ApplSessionUtil.getCurrency() set the result of the value to one of your VO on Bean and use it in your el expression .
    Thanks
    Raghav

  • How to get the DISPLAY name for a page in 309

    How do I get hold of the page DISPLAY name in Portal 309?
    I need it for the purpose of created a custom greeting and page menu tree.
    I can get the main internal name, but not the user friendly display name. It must be stored somewhere!
    Regards,
    John

    Did you find an answer for this? I am attempting to do the same thing. I want to create a portlet with all available pages to a user. I can not seem to find the display name table.
    [email protected]

  • HR ABAP: How to get the organizational unit for the penr as chief

    Hi ,
      I am new to HR ABAP. Could any one  specify if we have a PERNR  how we can get the possible values for Orga units,positions and the personal areas that this PERNR as chief.
    Thanks in advance,

    Hi,
    <li>Check the table PA0001 which contains Org unit(ORGEH), Position(PLANS), Personal Area(WERKS) assigned to PERNR.
    <li>Use SELECT query to get those if you don't use Logical database PNP.
    Thanks
    Venkat.O

  • How to get a top name for your iweb website on google?

    Hey everyone
    I've started a website on iweb. I was wondering how to get it so my website will have a good search result, first page, on google. I know my question isn't that descriptive but any help would help.
    Thanks
    Bevan James Eyles

    For example, if your site had a title of "three twee kings", when it finally showed up on Google, it would be number one since there's currently not an entry for that. For other more common phrases, your site has to be where Google would think users searching on those terms would be most likely tending to go.
    For me, if you do a search for keynote 3 symbols, my site is the site Google figures most users would be looking for when searching on those terms. (Incidentally, just typing Mr. Shmallow gives you one of my pages on the first page, just a couple under homestarrunner's

  • How to get set file name for MessageFileUploadBean in Advanced Table

    Hello Everyone.
        I have a MessageFileUpload item in a advanced table. My requirement is to show file names instead of view when user uploads files. I know how to do this if the item is not inside advancedtable  (by using  uploadBean.setAttributeValue(DOWNLOAD_FILE_NAME,displayNameBoundValue).
    But how to get the different ID's when inside a advanced table?
    Thanks
    Sunny

    try setting a transient view attribute to this message file upload, if you iterate through vo, I hope you can just get the path user browses.
    Regards
    Shobht S

  • How to get the text elements for a particular program

    Hi All,
    I want to get the all text elements , selection texts for a particular program...How to get.
    I have used one FM READ_TEXTELEMENT_FROM_REPORT , but not much useful..
    please help me..
    Regards,
    raj

    Hi..
    You may use this statement to read the text elements:
    DATA: i_reptx  TYPE STANDARD TABLE OF textpool   WITH HEADER LINE.
    READ TEXTPOOL (reports) INTO i_reptx. " reports is the report name.
    Best Regards,
    Pradeep.

  • How to get list of customers for a particular plant.

    Hello All,
    I have a requirement of the customer aging analysis report where I need to get the details of the customer for a particular plant.I have searched the tables T001w and Kna1 but  found no  result for my requirement.can any body tell me how to solve this issue or tell me any tables which give the information regarding the customers based on a particular plant.
    Regards,
    Pavani.

    Thank u all...for the reply
    But while creating a customer in XD01 we are not maintaing any plant data in that we are just giving the sales area data and the company code data in the initial screen. A particular customer can be used for any no of plants in our organisation than in that case how is it posible to get the data for the required plant.Here the plant is not same as the customer or vendor.
    Regards,
    Pavani.
    Edited by: Pavani Rayappureddi on Mar 16, 2009 4:19 PM

  • GP :How to get only those WorkItems for a particular Process Instance ID

    Hi,
    I have to get only those work items for a particular Process Instance ID.
    Currently I am able to get all gp workitems of a status, for a user.
    IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(epUser1);
                   IGPWorkItem[] openItems = rtm.getWorkItems(GPWorkItemStatus.WORKITEM_STATUS_OPEN, userContext);
    Now I want to get the gp  work items for a particualr process instance ID. Is it possible?
    Please help me.
    Thanks and regards
    Smitha

    Hi Smitha,
    Can you share with us how did you solve your problem?
    I also encountered the same requirement.
    Ashish

  • How to get the transport request for a particular standard text?

    Hi,
    i want to know, how we get the transport request which associated for standard text.
    Please note already the standard text is assigned to the TR using RSTXTRAN program.
    i have a std text. i want to find the related TR for that!
    rds,
    Siva.

    Refer the link. It might tellsa about attaching to transport request but using the way you can find also -
    Re: How To Transport STANDARD TEXTS??
    Regards,
    Amit
    Reward all helpful replies

  • How to get the Country name from where the user access the website ?????

              Hi ,
              i have a requiremtn in which i want to display the country name from where
              the user browse our webpages . for example if he is browsing from us , then i
              should display US and if he is browsing from UK , then i should dispaly "uk" etc...
              can anyone guide me how to proceed .
              thanks in advance
              Regards
              Subu
              

              Hi Laura Taylor ,
              Thanks for your Reply and Thanks for ur Guidelines.
              Thanks & Regards
              Subu.
              "Laura Taylor" <[email protected]> wrote:
              >
              >Unfortunately, there is no way to determine the country unless the client
              >indicates
              >that to you directly(i.e. via a form input value). However, there are
              >two request
              >headers that can help you determine the language preference(s) of the
              >client:
              >
              >Accept-Language -- Specifies the language preference(s) the client prefers
              >to
              >receive.
              >Accept-Charset -- Identifies the charset(s) the client understands.
              >
              >Laura
              >Developer Relations Engineer
              >BEA Support
              >
              >
              >"Subu" <[email protected]> wrote:
              >>
              >>Hi ,
              >> i have a requiremtn in which i want to display the country name
              >from
              >>where
              >>the user browse our webpages . for example if he is browsing from us
              >>, then i
              >>should display US and if he is browsing from UK , then i should dispaly
              >>"uk" etc...
              >>can anyone guide me how to proceed .
              >>
              >>thanks in advance
              >>
              >>Regards
              >>Subu
              >
              

  • How to get the Inspection lot for a particular serial number ?

    Hi all,
    Can anyone help me to get the Instpection Lot number from the given serial number ?
    Regards,
    Shankar

    Hi again,
    1. goto se11, open the table ,
      in display mode.
    2. click button INDEXES
      on application toolbar.
      a new window will come
    3.  choose CREATE
       a new window will come
    4. in index name, type Y01
    5. a new window will come
    6. there give the field name for serial number
    7. also give short description for the index.
    8. save and activate
    9 thats all
    regards,
    amit m.

  • How to get message in realtime sent by another user using FM TH_POPUP?

    I want to program a chat function between two SAP users by using ABAP.
    1.User A send a message to user B by using TH_POPUP,
      At the same time, the message is showed in screen as 
      'Send message'
    2.User B get the message
    ->My problem is how to get the message in realtime which I want to show it in screen as 'Received message'.
    Can anybody tell me how to get the message sent by using FM TH_POPUP in realtime?
    Edited by: Jing Yu Huang on Feb 6, 2008 2:11 AM

    Hi there
    This really isn't a "conversation" type program
    1) What does the original user do after sending the message -- I'm not sure if there's a WAIT_FOR_REPLY and even if there were I'm not sure  you'd want the original user to have a suspended session waiting for a reply.
    2) What does the 2nd user do after receiving the message --if it's just thrown up on his screen  then there isn't any mechanism to return a reply from USER A'S SESSION.
    You need somehow to have a continually running process which will send a message for example to user B and create an event or do somethimg so that User B is bound to the same session that sends the original message.
    2 different users running the same abap don't actually have any common link between them even on remote function calls.
    You need to have a central process here that shares a message space between the users (i.e a kernel type module).
    Classical Abap won't do (nor is it designed for) these types of processes.
    You might be able to find something in some of the  'C' coded kernel calls but as I previously posted before you are far better off using Windows for this type of stuff. (Windows Messenger for example).
    ABAP unfortunately is not designed as a multi user  "re-entrant"  programming language - nor was it intended to be.
    Another possible get around is to use the workflow system. User A sends a message which raises an event. This then starts a workflow which transmits say message to user B and notifies him of a message waiting for him. User B can reply which again raises an event and triggers workflow routing the message / reply back to user A.
    The response time won't be very good but at least it will work without tying up 2 user dialog sessions - but seriously guys I'd give up on this and just use Windows Messenger or equivalent system.
    These type of programs depend on a central server for the message handling - you'd have to replicate this in ABAP -- and Im 120% sure it can't be done.
    Cheers
    Cheers

Maybe you are looking for

  • Configured javascript now mozilla will not open

    I have the latest version of Mozilla and I am using Windows 8. I was trying to stop HTML, which renders most websites I visit virtually unusable because so many videos are trying to run at the same time, but still allow Java to use some of the things

  • How do i remove messages or mail applications from my ipad?

    One of my iPad mini's has tiny storage capacity, and i want to use it for my child to have as a consumption/learning device. I would like to remove the bulky mail and messaging app's that she won't use. How can I do this?

  • OR operator in places query. Can't get it to work.

    I got the follow and neither work. How do I get OR to work? place:terms=word1 OR word2&domain=www.google<i></i>.com&domainIsHost=true&expandQueries=true&queryType=1<br /> place:terms=word1ORword2&domain=www.google<i></i>.com&domainIsHost=true&expandQ

  • Error in reports 10g

    Hi, I developed a report in reports developer 10g. Is running well in reports developer, but when i run this report in apps 11i it says REP-1219: 'Margin' has no size -- length or width is zero. What is the issue.

  • Dust behind display of MacBook Pro

    I have a MacBook Pro purchased in August 2006. One day i was changing the desktop background, and i turned it to complete white color. I observed dust particles at bottom, left and right side of display. Can it be cleaned, because when i asked a deal