OIM11g Code for getting resource object name

Hi Experts,
I want to fetch all the resource objects names assigned to a particular user. I am using following 10g code:
tcUserOperationsIntf moUserUtility1 = (tcUserOperationsIntf) getUtility("Thor.API.Operations.tcUserOperationsIntf");
Hashtable mhSearchCriteria = new Hashtable();
mhSearchCriteria.put("Users.User ID", "*");
mhSearchCriteria.put("Users.Status", "Active"); // Searching for all
tcResultSet moResultSet = moUserUtility1.findUsers(mhSearchCriteria);
Long usr_key = moResultSet.getLongValue("Users.Key");
tcResultSet rs = moUserUtility1.getObjects(usr_key);
String objName= rs.getStringValue("Objects.Name")Could you please help me getting the OIM11g API's and code for the above 10 code?? Any ref will be helpful..
thanks.

Check this link
OIM 11g - retrieving all the provisioned accounts of an user

Similar Messages

  • Issue in Adding Custom Status Defnition for a resource object

    Hi,
    We have installed OIM and patch it to 9.102. We have created one custom resource object (flat file connector) for reconciliation. As part of requirement we need to define three status for this resource object - Enabled, Suspended and Disabled. As Enabled and Disabled status are available OOTB, i have added 'Suspended' status under the Status Definition in resource object. Now the issue is that if we are passing reconcile user status to either Enabled or Disabled, the status is changing fine on Linked user resource object. But if the status passed as 'Suspended' the resource account status of linked user (OIM) is not changed.
    We have mapped the resource side Status attribute to OIM_OBJECT_STATUS under process definition. I also made the entry 'Suspended' in 'Lookup.Object Object Status' lookup to see if any help, but no luck.
    The 'Suspended' status is successfully added in OST table against the object key and on manually updating the status key against the resource object it is reflecting 'Suspended' status through admin console. User-->Resource Profile
    Does anyone have any clue if the requirement is correct (adding a custom object status) and so, where i am going wrong. Thanks in advance.

    A quick doubt..If i have written down a process task and calling this on completion of 'Reconciliation Update Received' and in this process task , a adapter is attached which is updating the resource account status (ost_status) on the basis of some custom attributes. This task is working fine and updating the status. But the issue is that once this task is complete, the mapping in Process definition (loginDisabled <MetaDirectory> --> OIM_OBJECT_STATUS) overrides the status.
    Per my understanding the flow is going like this-->
    1. Reconciliation run
    2. Event Linked
    3. Reconciliation Update Received
    4. Call The custom Task --> Update the OST Status
    5. Update the OST Status per the mapping OIM_OBJECT_STATUS.
    Is there any way we can implement that the status update in (5) occurs before (4) so that my custom task status can override the (5) as per my business requirement.

  • Is there any function module for getting distribution list name

    Hi all,
    Is there any function module for getting distribution list name when there is same description for two distribution list name.
    or
    help me how to fetch the correct distribution name when there is same description.
    In order to send mails.
    Tell me ASAP.
    thanks
    sagar.

    http://www.sapbrainsonline.com/REFERENCES/FunctionModules/SAP_function_modules_list.html
    list of Fms

  • Using JCom for getting the user name

    I am using jcom610-win.exe and weblogic610sp2_win.exe .I need to use the Jcom for getting the user name of the NT Iser Logged in.I have got the process for this on the page at http://e-docs.bea.com/wls/docs61/jcomreference/Security.html .But this page uses a method isCallerAuthenticated() from a class file called jcom .I looked into the whole bea directory but there was no class like in the server dir.Can you tell where to get this class from.And if this has not been provided into the jar files that come along with the installable then why is it mentioned in the page @ http://e-docs.bea.com/wls/docs61/jcomreference/Security.html

    Hi.
    You might have better luck posting this in teh jcom newsgroup.
    Regards,
    Michael
    Manoj Gupta wrote:
    I am using jcom610-win.exe and weblogic610sp2_win.exe .I need to use the Jcom for getting the user name of the NT Iser Logged in.I have got the process for this on the page at http://e-docs.bea.com/wls/docs61/jcomreference/Security.html .But this page uses a method isCallerAuthenticated() from a class file called jcom .I looked into the whole bea directory but there was no class like in the server dir.Can you tell where to get this class from.And if this has not been provided into the jar files that come along with the installable then why is it mentioned in the page @ http://e-docs.bea.com/wls/docs61/jcomreference/Security.html
    Michael Young
    Developer Relations Engineer
    BEA Support

  • How can i watch native code for hashCode() in Object class?

    How can i watch native code for hashCode() in Object class?

    Those are two different requirements. You still haven't told us why you want the first one.
    The second one is called JNI - Java Native Interface. There is a forum here, and a large amount of documentation, and a book about it.

  • OIM - How To not show the "Disable" option for a Resource object to a group

    Hello there,
    Is there anyway we can remove or don't show the option to "Disable" a already provisioned resource object ?
    I have a requirement over here wherein there is no reason available to show the "disable" option out of the 3 available - "enable", "disable" and "revoke" for an already provisioned RO.
    How can we remove it ? We don't want users belonging to a specific group see that option, at all.
    Is there any menu item associated with it ? or is there any other way we can configure it ?
    Please advise to the earliest.
    Thanks !!
    P.S.: this is OIM 9102 running on solaris.
    Edited by: 786001 on Oct 13, 2010 7:22 PM

    Modify JSP:
    And to do this just for a particular group, put your java code in JSP itself. This is the easiest approach.
    Otherwise you can modify the action class to return two action forwards and then use two different JSP's.
    Thanks
    Sunny

  • Config JNDI and link to resource object name in WL10.0

    How to add a JNDI to JNDI tree and link to an object name in WebLogic? I am trying to like a commonj WorkManager to JNDI resource so the WorkManager can be used in client or j2ee application through JNDI lookup.
    Thanks,

    - Make sure you are using the latest build of WLS plugin.
    - Get the WeblogicBridgeConfigInfo output and check if the connection to wls servers is OK.

  • Creating a work flow when a user is requesting for a resourc object

    hi all
    I h've a few resource objects.
    I need to put an approval process when a usr requests for a particular resource object.
    pls provide me with the high level steps that i have to perform inodrder to achieve this.
    thank u
    sas

    Hi,
    You need to do following steps.
    1.Create a resource object.Select "Self Request Allowed" option.
    2.Attach Object form if any in the Table Name field.
    3.Go to process definition and create a process of type approval.Select your object name.
    4.Create a task and assigned it to the approver from assignment tab.
    You are done.Let me know if you need anything else.
    Regards
    Nitesh

  • T-code for getting consumptions / usage on special stock Q materials?

    Hi,
    I am facing an issue: special stock Q is not included in all T-codes that I know for getting the consumptions / usage over a period.
    --> MC.9, MCBE etc.. are all not showing any results for those kind of materials.
    I found the explanation: it's depending on special stock valuation indicator (Blank, A or M), and only A permits to see the consumptions with MCxx T-codes, which is not the one used in the plant I'm currently working in (M)
    Since this valuation indicator is a FICO defined parameter, I cannot make it changed to be able to check those materials usage.
    Anyone has a tip or know a way to get usage on special stock Q materials?
    Thanks for any help!

    Hi Sanil Bhandari,
    Thanks for trying to help.
    Unfortunately MMBE is a snapshot of stock level and reservations by storage location on a single material, and does not display the consumption over a predefined period.
    I am still looking for any solution that works with special stock Q materials.

  • I need better code for moving an object

    I'm currently using an older code to move objects around where the code is on the object being moved. I'd like to swap it out for code that isn't on the object, but I'm not too sure what it should be. Anyway, this is what I have right now:
    _global.speed=10
    onClipEvent(enterFrame){
         if(Key.isDown(Key.LEFT)){
              this._x -= speed;
              if(this._currentframe==1){
                   this.gotoAndPlay("walkLeft");
         if(Key.isDown(Key.RIGHT)){
              this._x += speed;
              if(this._currentframe==1){
                   this.gotoAndPlay("walkRight");
         if(Key.isDown(Key.UP)){
              this._y -= speed;
              if(this._currentframe==1){
                   this.gotoAndPlay("walkUp");
         if(Key.isDown(Key.DOWN)){
              this._y += speed;
              if(this._currentframe==1){
                   this.gotoAndPlay("walkDown");
         if (! Key.isDown(Key.DOWN) && !Key.isDown(Key.UP) && !Key.isDown(Key.RIGHT) && !Key.isDown(Key.LEFT)) {
              this.gotoAndStop (1);
         if(_parent.border.hitTest(_x+(_width/2),_y,true)){
              this._x -= speed;
         if(_parent.border.hitTest(_x-(_width/2),_y,true)){
              this._x += speed;
         if(_parent.border.hitTest(_x,_y+(_height/2),true)){
              this._y -= speed;
         if(_parent.border.hitTest(_x,_y-(_height/2),true)){
              this._y += speed;
    So, how would I move this off the object and onto a frame? Is there a better way to handle the hitTest? How do I make it so that the object keeps facing in the direction it was moving when you stop pressing the arrow key?

    use something like the following where mc is your person movieclip:
    var speed:Number=10;
    this.onEnterFrame=loopF;
    function loopF() {
        if (Key.isDown(Key.LEFT)) {
            mc._x -= speed;
            if (mc._currentframe == 1) {
                mc.gotoAndPlay("walkLeft");
        if (Key.isDown(Key.RIGHT)) {
            mc._x += speed;
            if (mc._currentframe == 1) {
                mc.gotoAndPlay("walkRight");
        if (Key.isDown(Key.UP)) {
            mc._y -= speed;
            if (mc._currentframe == 1) {
                mc.gotoAndPlay("walkUp");
        if (Key.isDown(Key.DOWN)) {
            mc._y += speed;
            if (mc._currentframe == 1) {
                mc.gotoAndPlay("walkDown");
        if (!Key.isDown(Key.DOWN) && !Key.isDown(Key.UP) && !Key.isDown(Key.RIGHT) && !Key.isDown(Key.LEFT)) {
            mc.gotoAndStop(1);
        if (border.hitTest(mc._x+(mc._width/2), mc._y, true)) {
            mc._x -= speed;
        if (border.hitTest(mc._x-(mc._width/2), mc._y, true)) {
            mc._x += speed;
        if (border.hitTest(mc._x, mc._y+(mc._height/2), true)) {
            mc._y -= speed;
        if (.border.hitTest(mc._x, mc._y-(mc._height/2), true)) {
            mc._y += speed;

  • BEA-141230 Could Not locate descriptor file for System Resource: DS name

    Guys,
    When I start the Admin and Managed server ..I get below warning message.
    *<Warning> <Management> <BEA-141230> <Could Not locate descriptor file for System Resource : datasource1.>*
    I know that weblogic server is unable to locatie datasource1.xml file at <SOA_HOME>/user_projects/domains/base_domain/config/jdbc
    Is there any way to to get rid off from this error? I tried to delete datasource from weblogic Admin console, but get below error:
    java.lang.NullPointerException
    All changes have been activated. No restarts are necessary.
    Errors were encountered while performing this delete operation.
    Thanks,
    Ab

    Are you starting servers with the root user? make sure that using whichever user you are starting server, it has full access on MW_Home and it's sub-directories. You may consider raising a support SR.
    Regards,
    Anuj

  • How can I reset the "dont ask me again" for Get CD track names?

    Hi,
    Been using Advanced>Get CD Track names and checked the box for dont ask me again in the pop-up that says its going to go and get the names, I'd like this pop up back, any idea how to reset it? I've searched itunes and the forums!

    Unfortunately iTunes doesn't provide a way of unchecking these boxes.
    The only way round this I know is to delete your preference files. This takes iTunes back to the state it was when you first installed it. Any special prefernces you have set are lost, so make a note of them if you are going to do this.
    Resetting the iTunes Preference Files:
    You may need to make hidden files visible
    My Documents>Tools>Folder Options>View
    Check Show hidden files and folders
    -- Quit iTunes
    -- Delete C:\Documents and Settings\<your username>\Application Data\Apple Computer\iTunes\iTunes.pref and/or iTunesPrefs.xml
    -- Delete C:\Documents and Settings\<your username>\Local Settings\Application Data\Apple Computer Inc\iTunes.pref and/or iTunesPrefs.xml
    For Vista the files are in:
    C:\Users\username\AppData\Local\Apple Computer\iTunes
    C:\Users\username\AppData\Roaming\Apple Computer\iTunes

  • How to generate a report on 'Event Received' events for a resource objects

    Hello,
    I want to generate a report on all the recon events which are in 'Event Received' status, on a daily basis. Can you please let me know how to do this and what all tables are involved?
    Thanks

    Well thats pretty simple. Actually there are multiple tables in OIM database responsible for holding reconciliation data but event information is stored in one table RCE. So there are two simple ways to do that as follows:
    *1) Using OIM API ::*
    There is an API exposed (*findReconciliationEvent()*) in the tcReconciliationOperationsIntf interface. You can just pass a HashMap with one filter parameter for ReconEvent status as Event Received. In addition to it this API also requires the StartDate and EndDate (You can give current date for both arguments). This will return you a ResultSet containing all the events which are in that particular state. Just iterate through the ResultSet for all the event information ad create your report.
    *2) Using OIM database query::*
    Just write an SQL query to run in the database schema. Let's assume you have written a scheduler for the same. This is the code for your class:
    tcDataSet dsList = new tcDataSet();
    String query = " select * from RCE where RCE_STATUS='Event Received' ";
    log.debug(query);
    try {
    dsList.setQuery(getDataBase(), query);
    dsList.executeQuery();
    if (!dsList.isEmpty()){
    log.debug("Total Rows Found:" + dsList.getTotalRowCount());
    result = true;
    for (int i = 0; i < dsList.getTotalRowCount(); i++) {
    Write your custom logic here for generation of report
    }else{
    log.debug("No Events Found");
    result = false;
    } catch (tcDataSetException e) {
    e.printStackTrace();
    result = false;
    So you can do it both ways.
    Thanks
    Sunny

  • FM for getting teh file name with path

    Hi guys,
    Is there an fm getting the file name with path given the physical path and file name? Thanks!

    Hi Mark,
    Function Module WS_FILENAME_GET is obsolete, dont use it.
    Use the Method file_open_dialog of  class cl_gui_frontend_services as given below.
    DATA:
        lt_filetable TYPE filetable,
        lf_rc        TYPE i,
        lv_filename(50) TYPE c,
        lv_fileext(3) TYPE c,
        ls_file TYPE file_table,
        lv_file TYPE localfile,
        lv_title TYPE string.
      lv_title = sy-title.
      lv_progname = sy-cprog.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = lv_title
          file_filter             = '*.txt'
          multiselection          = abap_false
        CHANGING
          file_table              = lt_filetable
          rc                      = lf_rc
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
                   DISPLAY LIKE 'E'
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        EXIT.
      ENDIF.
    * Number of selected filed must be equal to one.
      CHECK lf_rc = 1.
    * Access selected file
      READ TABLE lt_filetable INTO ls_file INDEX 1.
      CHECK sy-subrc = 0.
      lv_file = ls_file-filename.
      SPLIT lv_file AT '.' INTO lv_filename lv_fileext.
    Revert back if you need clarifications.
    Regards
    Karthik D

  • Code for Custom Business Object and Adding/Updating Data

    Hi,
    I would like to update/insert data thru Custom Business Object to sql Server.Pls let me know is it possible in MSA.If yes I would appreciate if you can share the code/Process in this forum.
    Thanks and Regds
    Harish

    Harish
    Depending on what data you update you need to do the following:
    If updating SAP tables or customer tables which are an extension of a SAP object like business partner, material, activity or similar:
    1. Create the extension of the data object via the easy enhancement workbench (EEWB). This will also create mapping functionality from MSA to CRM Server and extend the BDocs.
    2. Go to the BDoc modeler. Find the sBDoc for data exchange (type Write BDoc), that contains your object and check whether the new segment is there.
    3. In the Mobile Application Studio (MAS) you can now create a custom business object related to the standard sBDoc mentioned in 2 which is mapped to the new segment. This way the data exchange happens together with the main object
    4. Drag & drop the fields of the new BO to a new tile, and link that tile to the existing main object in the UI via the appropriate relation.
    If you would create a new business object / BDoc for a set of attributes belonging to a main object and not use an extension of the existing BDoc then the data would get its own flow and when replicating it would not come together with the main data. This can lead to data inconsistencies and in surplus effort administrating this data.
    If you have your own objects not related to a SAP object, you can do it the following way:
    1. Create your own table(s)
    2. Create a Write sBDoc on the table(s)
    3. Create BO's on each BDoc segment / table
    4. (as above)
    Hope this helps,
    Kai

Maybe you are looking for

  • Flashing Orange Broadband light for days at a time...

    Hi Guys, Been having a problem with broadband connection for past couple of months.Seems to be fine for a few days and then orange light starts flashing on hub.Usually turns blue again within a couple of hours but sometimes is out for several days.I

  • Frequent and unpredictable BSOD Ideapad S510p Touch Windows 8.1 64 bit

    HELP! My Ideapad S510p has accrued over 10 BSODs over the past 2 weeks. It is totally random, not due to putting it in sleep mode, and apparently is caused by a failure in the ntoskrnl.exe and usbehci.sys. I have tried looking for malfunctioning devi

  • Regarding fifo system

    hi I want to assign FIFO system to only subcontracting i.e. for 57F4 challen. Is it possible ? while migo on the basis of the material code the system shoould pick up only first challen . confirm inamdar

  • Static in my ears...

    I have the latest drivers for the C-Media onboard audio. In Windows 2000 with nothing open and the volume turned up to a pleasing level I get a ton of audible static. Any idea why this is? I had it a lil with my SB PCI 128 card, but not this bad.

  • Upgraded to Lion. Can't see files on my backup drive?

    The title pretty much explains my issue, but here is my situation. I use Boot Camp and have a 2TB backup drive with 2 partitions. One partition is 1TB Mac OS Extended (Journaled) to backup OS X with Time Machine and the other is 1TB Windows NTFS to b