Create User and Add to Group in a single call using ActiveADAPTER

Hi Folks, I can successfully create a user in a specific OU and I can subsequently add the user to a Group within another OU using two sequential calls with ActiveADAPTER's one-way send functionality.  Has anyone successfully done this in a single call
or am I limited because that would require two Directives statements?
Thanks!

Some thoughts:
Operations against AD are single action natively, because LDAP is I'd assume.  The adapter likely follows that pattern.
Support for multiple operations would be noticable in the schemas either by a high level repeating structure or something like composite operations.
What does their support say? 
[email protected]

Similar Messages

  • Script to Create User and Add profiles

    Instead of using the ODI 10g GUI Console to create users and add them to a profile, Can this task be achieved by scripting ? Either by wlst or JMX or Java Packages ? Please advise and guide me.
    -Thanks,

    Is there any other way for adding Bulk users and assigning them to a profile? Any thoughts Please
    Versions: 10.1.3.5 and 10.1.3.6

  • Creating users and adding them to groups programmatically in Portal 902

    What is the correct process and code needed to create a user and add it to a group programmatically in Portal 9.0.2 and how is it different from what it used to be in 309.
    If anyone has an answer, please let me know and all contributions are really appreciated.
    Thanks

    You can use these procedures.
    procedure Create_User(first_name IN VARCHAR2
    ,last_name IN VARCHAR2
    ,password IN VARCHAR2
    ,email IN VARCHAR2
    ,employeenumber IN VARCHAR2
    ,description IN VARCHAR2
    is
    retval PLS_INTEGER;
    emp_session DBMS_LDAP.session;
    emp_dn VARCHAR2(256);
    emp_rdn VARCHAR2(256);
    emp_array DBMS_LDAP.MOD_ARRAY;
    emp_vals DBMS_LDAP.STRING_COLLECTION ;
    ldap_host VARCHAR2(256);
    ldap_port VARCHAR2(256);
    ldap_user VARCHAR2(256);
    ldap_passwd VARCHAR2(256);
    ldap_base VARCHAR2(256);
    BEGIN
    retval := -1;
    ldap_host := '<you_host>';
    ldap_port := '4032';
    ldap_user := 'cn=orcladmin';
    ldap_passwd:= '<orcladmin_password>';
    ldap_base := 'cn=users,dc=<your_compani_name>,dc=com';
    DBMS_LDAP.USE_EXCEPTION := TRUE;
    emp_session := DBMS_LDAP.init(ldap_host, ldap_port);
    -- Bind to the directory
    retval := DBMS_LDAP.simple_bind_s(emp_session,ldap_user, ldap_passwd);
    emp_array := DBMS_LDAP.create_mod_array(14);
    emp_vals(1) := first_name;
    DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD,'cn',emp_vals);
    DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD,'givenname',emp_vals);
    DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD,'uid',emp_vals);
    emp_vals(1) := last_name;
    DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD,'sn',emp_vals);
    emp_vals(1) := employeenumber;
    DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD,'employeenumber',emp_vals);
    emp_vals(1) := description;
    DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD,'description',emp_vals);
    emp_vals(1) := 'top';
    emp_vals(2) := 'person';
    emp_vals(3) := 'organizationalPerson';
    emp_vals(4) := 'inetOrgPerson';
    emp_vals(5) := 'orcluser';
    emp_vals(6) := 'orcluserv2';
    DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD,'objectclass',emp_vals);
    emp_vals.DELETE;
    emp_vals(1) := email;
    DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD,'mail',emp_vals);
    emp_vals(1) := password;
    DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD,'userPassword',emp_vals);
    emp_dn := 'cn=' || first_name || ',' || ldap_base ;
    retval := DBMS_LDAP.add_s(emp_session,emp_dn,emp_array);
    DBMS_LDAP.free_mod_array(emp_array);
    retval := DBMS_LDAP.unbind_s(emp_session);
    -- Handle Exceptions
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(' Error code : ' || TO_CHAR(SQLCODE));
    DBMS_OUTPUT.PUT_LINE(' Error Message : ' || SQLERRM);
    DBMS_OUTPUT.PUT_LINE(' Exception encountered .. exiting');
    end Create_User;
    create or replace
    procedure Add_User_To_Group(user_name IN VARCHAR2
    ,group_name IN VARCHAR2
    is
    retval PLS_INTEGER;
    ldap_host VARCHAR2(256);
    ldap_port VARCHAR2(256);
    ldap_user VARCHAR2(256);
    ldap_passwd VARCHAR2(256);
    ldap_base VARCHAR2(256);
    my_session DBMS_LDAP.session;
    my_message DBMS_LDAP.message;
    my_entry DBMS_LDAP.message;
    my_array DBMS_LDAP.MOD_ARRAY;
    my_vals DBMS_LDAP.STRING_COLLECTION ;
    group_dn VARCHAR2(256);
    user_dn VARCHAR2(256);
    BEGIN
    retval := -1;
    ldap_host := '<you_host>';
    ldap_port := '4032';
    ldap_user := 'cn=orcladmin';
    ldap_passwd:= '<orcladmin_password>';
    ldap_base := 'cn=users,dc=<your_compani_name>,dc=com';
    DBMS_LDAP.USE_EXCEPTION := TRUE;
    my_session := DBMS_LDAP.init(ldap_host, ldap_port);
    -- Bind to the directory
    retval := DBMS_LDAP.simple_bind_s(my_session,ldap_user, ldap_passwd);
    --Find the user
    my_vals(1) := '1.1';
    retval := DBMS_LDAP.search_s(my_session,
    ldap_base,
    DBMS_LDAP.SCOPE_SUBTREE,
    '(&(objectClass=person)(cn=' || user_name || '))',
    my_vals,
    0,
    my_message);
    my_entry := DBMS_LDAP.first_entry(my_session, my_message);
    IF my_entry IS NOT NULL THEN
    user_dn := DBMS_LDAP.get_dn(my_session, my_entry);
    retval := DBMS_LDAP.search_s(my_session,
    ldap_base,
    DBMS_LDAP.SCOPE_SUBTREE,
    '(&(objectClass=orclGroup)(cn=' || group_name ||'))',
    my_vals,
    0,
    my_message);
    my_entry := DBMS_LDAP.first_entry(my_session, my_message);
    IF my_entry IS NOT NULL THEN
    group_dn := DBMS_LDAP.get_dn(my_session, my_entry);
    my_array := DBMS_LDAP.create_mod_array(1);
    my_vals(1) := user_dn;
    DBMS_LDAP.populate_mod_array(my_array, DBMS_LDAP.MOD_ADD, 'uniqueMember', my_vals);
    retval := DBMS_LDAP.modify_s(my_session, group_dn, my_array);
    DBMS_OUTPUT.PUT_LINE(RPAD('modify_s Returns ',25,' ') || ': '|| TO_CHAR(retval));
    DBMS_LDAP.free_mod_array(my_array);
    END IF;
    END IF;
    my_vals.DELETE;
    retval := DBMS_LDAP.unbind_s(my_session);
    -- Handle Exceptions
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(' Error code : ' || TO_CHAR(SQLCODE));
    DBMS_OUTPUT.PUT_LINE(' Error Message : ' || SQLERRM);
    DBMS_OUTPUT.PUT_LINE(' Exception encountered .. exiting');
    end Add_User_To_Group;

  • Creating users and groups

    Hi all,
    I have about 100 users and many groups.
    How can i create users and groups quickly?
    Appreciate any help

    Like the way you export planning application to file system and use it as a source to migrate it, In the same way take shared services file system export in the file system and migrate it to the new environment.
    Cheers..!!!
    Rahul S.

  • How to create users and groups using WLST Offline with Weblogic 8.1.4

    How to create users and groups using WLST Offline with Weblogic 8.1.4?
    Any ideas?

    Hi this is how i created a user using WLST Offline?
    cd('/Security/' + domainName)
    # Delete the default user name weblogic
    # incase you want to remove the defualt user weblogic
    delete('weblogic','User')
    # Creating a new user defined
    create(userName, 'User')
    # Setting the password of the user you created.
    cd ('/Security/' + domainName + '/User/' + userName)
    cmo.setPassword(password)
    Regards
    Makenzo

  • OBPM + WCI query to determine users and their assigned groups

    I am running OBPM 10.3.1 and WCI 10.1.3, without LDAP configuration. I would like a query that I can run directly from the OBPM Directory schema or plumtree schema that would let me see all the user's login IDs, assigned groups, and display names. I have tried a few different queries, butthey do not give me what I want exactly.

    Yeah, I had that one for roles, but for groups there was another set of tables... assiggrppart or something.... but that doesn't have hardly anything in it. Is there a different table that has the group assignments? from the admin side, we use BPM to add roles to groups, then use WCI to create users and assign them WCI groups. That gets recognized by the BPM directory automagically. Its not in any table that begins "FUEGO_ASSIG".

  • AD - import users and check AD group membership

    Hi I'm relatively useless with PowerShell and I am wanting to write a script that will do the following and am just getting stuck with part B.
    Part A- import a list of users from a CSV
    Part B- check if the users are members of an ad group and if so remove from group A and add to group B 
    Can anyone point me in the best direction ? that would be amazing.

    Hi,
    I happen to have something already written that will do what you're after:
    Import-Csv .\userList.csv | ForEach {
    $userDetails = Get-ADUser -Identity $_.Username -Properties memberOf
    If ($userDetails.memberOf -contains 'CN=Test Group 1,OU=Security Groups,DC=domain,DC=com') {
    Remove-ADGroupMember -Identity 'Group A' -Members $userDetails.SamAccountName -Confirm:$false -WhatIf
    Add-ADGroupMember -Identity 'Group B' -Members $userDetails.SamAccountName -Confirm:$false -WhatIf
    This will require in input CSV file with a header of Username that contains the usernames to test. You'll also need to update the names of the groups for 'Group A' and 'Group B' along with the DN of the group to test against.
    Remove the -WhatIf parameters from the Remove/Add lines if you're happy with what you see in the output.
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • How can i extended attribute of user and add attribute to ldap

    how can i extended attribute of user and add attribute to ldap
    1.
    i use spe to modified "Default User Library":add Field like
    title:nation name:accounts[Lighthouse].nation
    2.
    modified "IDM Schema Configuration"
    add <IDMAttributeConfiguration name='nation' description='default attribute from UserExtendedAttributes/UserUIConfig' syntax='STRING'/>
    in <IDMAttributeConfigurations>
    and
    add <IDMObjectClassAttributeConfiguration name='nation' queryable='true' summary='true'/> in<IDMObjectClassConfiguration>
    there is extended attribute when i create new user
    3.
    i create new resource to ldap,and i add nation in "Account Attributes" tab
    but the new attribute not add to ldap
    i am beginner,how to extended attirbute add add to ldap attribute?

    So, if I want to fill in blanks on a form where I need to add more pages to fill history, what program do I need? In Adobe Reader, I can edit and fill in blanks, but I cannot duplicate more blank pages.

  • How to create User and Database in different Table spaces

    How to create User and Database in different Table spaces using oracle 10g
    Regards
    daya

    I am sorry but your question does not seem to make much sense.
    Can you please rephrase your question?

  • Need a help to create user and assign BP to it

    Hi,
    I have requirement to create Users (like SU01) in CRM and for that users need to create BP with role EMPLOYEE and assign BP to that USER.
    Can anybody please help on which Function Module I need to use to create user and assign BP to it.
    Thanks in advance..
    Sushant

    Hi,
    Many post post are there for your query in SDN search if my below shown link is not helpful.
    Hope the below will help you.
    Users Created ...
    Cheers!!
    VEnk@

  • How i can delete and remove apple ID of old user and add my current apple ID to used i pod touch?

    how i can remove and delete apple ID of old user and add my current apple ID to used I POD TOUCH

    Unfortunately, you cannot delete Apple IDs but what you can do is go to Settings>Store>and sign out of the old Apple ID on your iPod and the sign in to the new Apple ID.
    All of the apps that were purchased under the old ID will still need the old ID's password for updates.
    More info can be found here: http://support.apple.com/kb/he37

  • Create users under Administration Server Create user and Refresh users options are disabled

    We have installed and configured 11.1.2.2 successfully, Essbase in standalone mode.
    When we try to create users under Administration Server Create user and Refresh users options are disabled. Please let me know how to create EAS users?
    Thanks,
    Satheesh.

    Please find below response.
    1.You can create users from EAS console using maxl, if you have not externalized the users .
    When we create using Maxl it will create for 'ESSBASE Servers' users but we want to create additional administrator users under 'Administrator Services' --> 'Users'. At the moment default 'Admin' users is created under 'Administrator Services' --> 'Users'.
    2.  you have installed your essbase in a stand -alone mode  , then the option of creating users will be enabled and you can give appropriate provision to applications.
    Yes. But the create users is disable for Admin.
    3. Through which url are you accessing EAS console is it http://Servername:19000/workspace/index.jsp ?
    http://prod-server:10080/easconsole/console.html
    Please suggest.

  • How to find all the SM37/36 jobs, created user and step user details

    Hi Gurus,
    Is there any table or transaction is available to check all the SM37/36 jobs that are running in the system, details of created user and step user in single screen?.
    Regards,
    Srinivas

    Check the below tables
    TBTCP                          Background Job Step Overview
    TBTCO                         Job Status Overview Table
    TBTCJSTEP                 Background Job Step Overview
    TBTC_SPOOLID                   Background Processing Spool IDs Table
    TBTCS                          Background Processing: Time Schedule Table

  • Can you tell me how I can ask for help with the following Indesign question:  I am a new Indesign user and a Creative Cloud member.  I was using the Window/Pages drop down window to view my pages alphabetically or by page number and also to determine whet

    I am a new Indesign user and a Creative Cloud member.  I was using the Window/Pages drop down window to view my pages alphabetically or by page number and also to determine whether or not my JPEG files were sufficiently HI-Res for the printer.  I don't know how I did it but somehow the window has changed so that now it does not have the alphabetical/numerical/Hi-Res information.  It just shows the pages in a two page spread in numerical order.  How can I restore the window so that I will be able to view the information as I did previously.
    Your help will be appreciated,
    Don Unwin
    [Personal Information Removed]

    The pages panel is not the place where you see this information.  You can customize the Links panel to show all sorts of things, including the page number, effective and actual ppi, and whether the link is OK or needs updating.

  • If I buy an iPhone5 in Canada and add Applecare in the US, can I use and get my phone serviced in the US?

    If I buy an iPhone5 in Canada and add Applecare in the US, can I use and get my phone serviced in the US?

    Thanks for the response.  Called the Perimeter Mall store yesterday morning with fingers crossed frist thing in the morning.  They had one.  Zipped up there and now I have it: White 32gig i5 rocing a TMobile SIM and an Seidio Active case. 

Maybe you are looking for