Provision to AD - Manager Name how to?

Hey,
Been banging my head against this all day. What's the proper way to provision a user with Manager Name properly to Active Directory?
I can provision the user successfully, but not the Manager. I tried entering a full name, I tried entering an existing AD user's full DN, nothing...
Any ideas?

Hi,
If you want test the Kevin suggestion, for example, I think you can try the code below to grab the DN off the user's existing provisioning process form. It works for me. Create a java class and an adapter to use this code. Parameters:
resourceObjectName = AD User
userKey = User Definition.User Key
fieldName = UD_ADUSER_ORGNAME
dbProvider = Map to the Adapter References, Database reference
     public String getProcessFormFieldValue(String resourceObjName, String userKey, String fieldName, tcDataProvider dbProvider){
          String result = "VALUE_NOT_FOUND";
          StringBuffer strSQLOrcKey = new StringBuffer();
          strSQLOrcKey.append("SELECT DISTINCT ");
          strSQLOrcKey.append("     oiu.orc_key, procsdk.sdk_name ");
          strSQLOrcKey.append("FROM ");
          strSQLOrcKey.append("     obj obj, oiu oiu ");
          strSQLOrcKey.append("          left outer join orc orc on oiu.orc_key = orc.orc_key ");
          strSQLOrcKey.append("          left outer join tos tos on orc.tos_key = tos.tos_key ");
          strSQLOrcKey.append("          left outer join sdk procsdk on tos.sdk_key = procsdk.sdk_key, ");
          strSQLOrcKey.append("     obi obi, ost ost ");
          strSQLOrcKey.append("WHERE ");
          strSQLOrcKey.append("     oiu.obi_key = obi.obi_key AND ");
          strSQLOrcKey.append("     oiu.ost_key = ost.ost_key AND ");
          strSQLOrcKey.append("     (ost.ost_status = 'Provisioned' OR ost.ost_status = 'Enabled') AND ");
          strSQLOrcKey.append("     (obi.obj_key = obj.obj_key AND UPPER(obj.obj_name) LIKE UPPER('" + resourceObjName.toUpperCase() + "%')) AND ");
          strSQLOrcKey.append("     oiu.usr_key = " + userKey);
          try {
               String strOrcKey = null;
               String strSdkName = null;
               tcDataSet dataset = new tcDataSet();
               dataset.setQuery(dbProvider, strSQLOrcKey.toString());
               dataset.executeQuery();
               if(dataset.isEmpty() == false){
                    strOrcKey = dataset.getString(0);
                    strSdkName = dataset.getString(1);
               }else{
                    throw new Exception("The user does not have a valid resource: " + resourceObjName);
               StringBuffer strSQLFormField = new StringBuffer();
               strSQLFormField.append(" SELECT " + fieldName);
               strSQLFormField.append(" FROM " + strSdkName);
               strSQLFormField.append(" WHERE orc_key = " + strOrcKey);
               dataset.setQuery(dbProvider, strSQLFormField.toString());
               dataset.executeQuery();
               if(dataset.isEmpty() == false){
                    result = dataset.getString(0);
               }else{
                    throw new Exception("VALUE NOT FOUND: It was not possible to get the Form Field Value.");
               System.out.println("**************** Exiting getFormFieldValue *******************");
          } catch (Exception ex) {
               result = "EXECUTION_ERROR";
               System.out.println("############## Exception in getFormFieldValue ###############");
               ex.printStackTrace();
               System.out.println("#############################");               
          return result;
Also, if you have the MS AD User Management Connector, you can see how its adapters uses the library to connect AD and execute some commands. For example, see how the adapter ADCS Get ObjectGUID gets the user's GUID.
Renato.

Similar Messages

  • Manager name didn't provision in AD

    Hello Folks,
    I am working on OIM.
    we have PeopleSoft is our source of truth and Active directoy and eDirectory is Target system.
    Our requirements is like whenever employee created in PeopleSoft. PeopleSoft automatically assign Manager to that user and that manager ID is coming in OIM user form Manager name field.
    i want to provision this manager name in Active directorty attributes called manager and managedby.
    what i did in ADUSER form prepopulate tab i mapped manager name field add copy value adapter which is mapped with manager ID. so this thing copy the manager ID field into AD user process form which is coming in process form also.
    and in process defination there is task alled Manager Name Updated which mapped with AD attributes called manager.
    But this manager name value doesn't provisioned into target AD attribute and it doesn't give me any error user get provisioned but manager ID whatever i got from PeopleSoft is not coming in manager attribute.
    Help me out to solve this issue
    it's really urgent
    Thank you

    It sounds like you have two problems.
    On initial provisioning you need to ensure that the manager id gets written into AD. How to do this is documented in 3.2.1 Adding Custom Attributes for Provisioning in the connector docs (http://download.oracle.com/docs/cd/E11223_01/doc.904/e10429/custom.htm#BIHFIHFC)
    The second problem is to propagate any manager updates from USR form to process form.
    The conventional approach for cascading user form changes down to process forms is to enter a task name in the LOOKUP.USR_PROCESS_TRIGGERS lookup table and then creating a task in the provisioning process with the same task name. This task then writes the data to the process form.
    Hope this helps
    /Martin

  • Provisioning OIM Manager ID to AD Manager Name

    Hi,
    We are implementing provisioning of users created in OIM to AD.
    One of the fields that will be filled in when creating av new OIM users is the Manager ID field. The Manager ID field which is a lookup field with the OIM user id.
    The Manager Name field in AD requires a CN (Common Name).
    Seems like we have to find the lastname, firstname and domain string based on the OIM user id and build the CN.
    But another issue is that the CN in the AD varies. The users created in AD are "Lastname, Firstname etc while the users created in OIM can be set to "Firstname Lastname etc" or "Lastname Firstname etc" (But no comma).
    Will we have to do some custom coding to make the OIM users "Lastname, Firstname"? Or can we detect the format in some way and build the CN accordingly?
    Thanks!!

    Hi Rajiv,
    Sorry, I meant to write DN, not CN....
    Yes, we will make an adapter and build the DN string with a concatenate function. But the challenge is to know whether the format in AD is "lastname, firstname..." og "lastname firstname..." (no comma).
    So we either have to detect the AD DN format or make the users created in OIM have the DN format "lastname, firstname..."
    Do you know how to accomplish either?
    Thanks!!

  • How to get a manager name according to a name of clerk

    Hi,
       i know the clerk name.(T-code: PA30 infotype:0001)
       how to search his/her manager name
    Thanks in advance.

    Hi,
    Other way is Goto Infotype 0001 for that person(Clerk) & place the cursor on the org.unit & click "Org Structure" button on the top(beside the overview button). Then search for the org. unit of clerk & you will get the chief of that org. unit & you will get the manager personnel number.
    Hope this helps.
    Thanks,
    Sarika.

  • How to add Project manager Name on CJ03 screenlayout?

    Right now I am able to see only the project manager ID. How can I add one field which will display the manager name on the screenlayout of CJ03?
    Thanks
    Ruchika

    Hi Ruchika,
    You need to implement Screen Exit in the standard SAP program. The program for CJ03 transaction is 'SAPLCJWB'.
    Follow these instructions to Find the Exit and Implement a new field.
    http://wiki.ittoolbox.com/index.php/Implement_a_screen_exit_to_a_standard_SAP_transaction

  • How to find out manager name thru clerk number

    Hi,
        i have known the clerk name,
        how do i search her/his manager name?
    Thanks.

    hi
    good
    r u working on EP ? if yes  than there would be a specific number assigned to every manager, just look for that, that nunmber ll help you to trace the particular manager.
    thanks
    mrutyun^

  • How to get the Manager Name

    Hi,
    I want to display the Manager name of the Employee on the termination Date.
    In case the immediate supervisor is not there i need to display the 1st level of supervisor and if this is also not maintained i need to find the top level manager of the employee.
    Please help me how to find out the manager of the employee with the above mentioned scenario.
    Thanks,
    Poonam

    HI Poonam,
    DATA: gd_pos TYPE HRP1000-objid,
    gt_LEADING_POS TYPE STANDARD TABLE OF HROBJECT WITH HEADER LINE,
    gt_p1001 TYPE STANDARD TABLE OF HRP1001 WITH HEADER LINE.
    *Assign the position to gd_pos.
    CALL FUNCTION 'RH_GET_LEADING_POSITION'
      EXPORTING
        PLVAR                   = '01'
        OTYPE                   = 'S'
        SOBID                   = gd_pos.
        DATE                    = SY-DATUM
      AUTH                    = 'X'
      BUFFER_MODE             = ' '
      CONSIDER_VAC_POS        = ' '
      TABLES
        LEADING_POS             = gt_LEADING_POS
    EXCEPTIONS
      NO_LEAD_POS_FOUND       = 1
      OTHERS                  = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'RH_GET_PERSONS_FROM_POSITION'
      EXPORTING
        PLVAR                    = '01'
        OTYPE                    = 'S'
        OBJID                    = gt_LEADING_POS-objid
        STATUS                   = '1'
        BEGDA                    = date
      NODE_KEY                 =
      MASSN                    =
      MASSG                    =
      CHANGETYPE               = 'S '
      OLD_JOB                  =
      OLD_JOB_ENDDA            =
      TABLES
        I1001                    = gt_p1001
      I77INT                   =
    EXCEPTIONS
      WRONG_OTYPE              = 1
      PLVAR_ERROR              = 2
      POSITION_NOT_FOUND       = 3
      ORGUNIT_NOT_FOUND        = 4
      INITIAL_GSVAL            = 5
      OTHERS                   = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    The manager emp no would be there in gt_p1001-objid.
    BR/Manas

  • How to get Manager name of a particular BP/User from territory management

    Hi Guys,
    I want to retrieve the Manager name of a particular BP/User from territory management. The manager might be in any territory hierarchy level above the user.
    Please guide.
    Regards,
    Shaili

    Hi Shailip,
    Basically Territory hierarchy is customized based on client's business, from your reply if i understood properly i think your territory has 3 levels and 
    First level : District
    Second level: Area
    Third level: Branch
    when an employee at third level is passed, you need employees assigned to area and district levelwhich are above Branch(in your case managers)
    Solution:  Example
    First level : District - territory length(2 char)
    Second level: Area - - territory length(4 char)
    Third level: Branch- territory length(4 char)
    1. Read the territory hierarchy(which is customized to meet clients requirement) using function module
        CRM_TERRMAN_TERRLEVEL_READ ehich gives territory levels with territory length and territory offset
    2. pass employee(business partner number) to FM  CRM_TERRMAN_TERR_EMP_DETERMINE  and get the branch path id.
    3. Based on territory length for above levels drill down to Area's path id and District's path id and pass those path id's to
    FM CRM_TERRMAN_EMPLOYEE_DETERMINE  to get managers.
    Hope this helps.
    Thanks,
    Priyanka

  • How ti find employee's manager name

    Hi All,
    I tried in SDN but i am not able to find suitable thread. Anybody can tell me which function module i should use to get employee's manager name.
    Thanks,
    Maheedhar

    Maybe this could be achieved by RH_STRUC_GET but you need to provide proper ACT_WEGID . The custom way however would be like this
    DATA lt_p1001 TYPE TABLE OF p1001.
        DATA lt_manager TYPE TABLE OF p1001.
        DATA l_pernr    TYPE persno.
        DATA l_objid    TYPE HROBJID.
        FIELD-SYMBOLS: <wa_p1001>   LIKE LINE OF lt_p1001,
                       <wa_manager> LIKE LINE OF lt_manager.
    "get manager of EE's org unit
        CALL FUNCTION 'RH_READ_INFTY_1001'
          EXPORTING
            plvar            = '01'
            otype            = 'O'
            objid            = "EE org unit here
            begda            = sy-datum
            endda            = sy-datum
            subty            = 'B012'   "is managed by
          TABLES
            i1001            = lt_p1001
          EXCEPTIONS
            nothing_found    = 1
            wrong_condition  = 2
            wrong_parameters = 3
            OTHERS           = 4.
        LOOP AT lt_p1001 ASSIGNING <wa_p1001>
                         WHERE sclas = 'S'.  "position
          l_objid = <wa_p1001>-sobid.
    "get person for this position
          CALL FUNCTION 'RH_READ_INFTY_1001'
            EXPORTING
              plvar            = '01'
              otype            = 'S'
              objid            = l_objid
              begda            = sy-datum
              endda            = sy-datum
              subty            = 'A008'   "holds
            TABLES
              i1001            = lt_manager
            EXCEPTIONS
              nothing_found    = 1
              wrong_condition  = 2
              wrong_parameters = 3
              OTHERS           = 4.
          LOOP AT lt_manager ASSIGNING <wa_manager> WHERE sclas = 'P'.
            l_pernr = <wa_manager>-sobid.       
            EXIT.
          ENDLOOP.
        ENDLOOP.
    Manager -> l_pernr
    Manager name -> get from IT0002 for l_pernr
    Regards
    Marcin
    Juest checked FM HRCM_ORGUNIT_MANAGER_GET which is working too. On input you can either provide EE's position or org unit.
    Edited by: Marcin Pciak on Oct 28, 2010 9:12 AM

  • Firefox stores my email screen names, how can I store them?

    Firefox stores my email screen names, how can I store them? I had to change the password to one and was suggested to delete it... all I wanted was to change the 'remember password', not delete the screen name

    You can press the Delete key on a highlighted entry in the drop-down list to remove that entry or do the same in the Password Manager.
    *Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
    If you need to remove saved data then use these steps:
    #Click the (empty) input field on the web page to open the drop down list
    #Highlight an entry in the drop down list
    #Press the Delete key (on Mac: Shift+Delete) to remove it.
    *http://kb.mozillazine.org/Password_Manager
    *https://support.mozilla.com/kb/make-firefox-remember-usernames-and-passwords
    *http://kb.mozillazine.org/Deleting_autocomplete_entries

  • Organization name - How do I find the organization name which SCSM was registered under?

    Organization name - How do I find the organization name which SCSM was registered under?
    By the way I didnt install SCSM, I am new to this, I just got here and the previous admin didn't have or gave any documentation.
    Thanks

    You can view the values in the registry. Open regedit and go to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\System Center\2010\Service Manager\Registration
    Cheers,
    Thomas Strömberg
    System Center Specialist
    Blog:  
    Twitter:   LinkedIn:
    Please remember to 'Propose as answer' if you find a reply helpful

  • Cisco's AnyConnect Network Access Manager (NAM)

    Hi dears,
    I configurate EAP_FAST in Cisco ISE and want wired users authenticate from ISE. I install Network Access Manager Profile Editor and Cisco Anyconnect Security Mobility Client on PC. I configure Network Access Manager  when i want to save as that I did not see the . \newConfigFiles folder. Then I did that: Organize’, ‘Folder and Search Options’, ‘Show hidden files, folders, and drives. but in this case i did see the network access manager folder.
    I need a to install Cisco’s AnyConnect Network Access Manager (NAM) on PC. HOW  I get this soft? I have a smartnet for ISE. 
    Which email address(to cisco) i must be write to get this soft?
    Thanks.

    You can download the Network Access Manager module from CCO.  This link should work if you have a CCO account.
    http://software.cisco.com/download/release.html?mdfid=283000185&softwareid=282364313&release=3.1.05160&relind=AVAILABLE&rellifecycle=&reltype=latest&i=rs
    The file name will be similar to anyconnect-win-3.1.05160-pre-deploy-k9.iso.  Just unzip the ISO with 7zip or Winrar and you will see the NAM msi file  anyconnect-nam-win-3.1.05149-k9.msi.

  • I would like to set up my email on the apple tv as well as have my husband's email on there so we can view both sets of photos and videos - it is already set up in his name - how do i add my name so as to view my photo library from all of my devices?

    I would like to set up my email on the apple tv as well as have my husband's email on there so we can view both sets of photos and videos - it is already set up in his name - how do i add my name so as to view my photo library and songs from MY phone ?

    this is not a reply - i asked the question - still trying to learn how all this works - someone please HELP ME

  • I cannot download Lightroom CC because it does not show up  on my Creative Cloud Application Manager. How do I fix this?

    I cannot download Lightroom CC because it does not show up  on my Creative Cloud Application Manager. How do I fix this?
    I have Windows 8 and am currently using the entire Adobe Suite Package for my account.

    do you have a 64 bit os?

  • My mother used to be the bill payer on my iTunes account so now every time I send an email from my iCloud account it sent with her name, how can I change the settings so emails are sent from myself?

    My mother used to be the bill payer on my iTunes account so now every time I send an email from my iCloud account it sent with her name, how can I change the settings so emails are sent from myself?
    I've changed the bill payer to myself but it stills says on emails that I sent that its from my mother.

    In order for the "From" field to show you options on the "from" addresses available, you must set them up in the Preferences > Accounts first.
    I can't show you a screen shot of the from field because I currently only have one account, so the from address used is the default. However, when I had more than one, then options will show up in your compose/reply window.
    You'd need to add an account here:

Maybe you are looking for

  • Connection Caching and Connection pooling

    Hi, I have question its about a concept which has been introduced by oracle called as connection caching (not sure if its a accepted in other app servers). I had a look at it and it is similar to wht a connection pool does. So can anyone out there ex

  • Macbook Pro 15, Mid 2010 - crash after sleep

    I'm using OSX 10.9.4. Every time my macbook pro wakes up from sleep (either on batter or charger, with or without external screen) it reboots. Usually, I'm presented with username/password dialog. As soon as I type in my password and screen unlocks,

  • Financial Reporting 9.3 Referencing a Member Explicitly

    I am having trouble with one report. I want to show a row that references a member explicitly and overriding the Grids explicit references and POV. Can I do it? I figured there would be a similar method available to the calc scripts where within a FI

  • XI to jdbc error:  No more data to read from socket

    i have a XI to JDBC scenario, where a receiver JDBC communication channel sends a query to the database, i get an error in the response (from database) as: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Call Adapter   --> - <SAP:Err

  • Modifying bank key

    hiii gems i have one doubt regarding the fi02 where i want to change the bank key length is there any method to change r should we take help of abaper points will be rewarded thanks in advance Jaipal