Unable to create Groups through API

Hi,
I have an approval workflow for creation of a new organization and it works fine.Once the last level of approval is completed, I should create a new org and three groups inside OIM. My adapter creates the new organization successfully. however, I am getting exception when I try to create the groups. Can someone please tell me what the issue is. I have assigned all the group permissions to the user group approving the request.Following is the code snippet and exception that I get:
HashMap<String,String> orgMap = new HashMap<String,String>();
               orgMap.put("Organizations.Organization Name", orgName);
               orgMap.put("Organizations.Type", "Organization");
               long orgKey = orgOper.createOrganization(orgMap);
               System.out.println("New Organization Created");
               HashMap<String,String> groupMap = new HashMap<String,String>();
               groupMap.put("Groups.Group Name", orgName+" Admin");
               long adminGroupKey = groupOper.createGroup(groupMap); - this is the line I get the following exception
Running CREATENEWORG
Target Class =security.iam.identity.adapters.tasks.CreatePartnerOrg
Initializing Class
New Organization Created
ERROR,08 Mar 2011 16:52:10,660,[XELLERATE.SERVER],Class/Method: tcDataObj/eventPreInsert Error :Insert permission is denied
ERROR,08 Mar 2011 16:52:10,661,[XELLERATE.APIS],Class/Method: tcGroupOperationsBean/createGroup encounter some problems: maoRejections:You do not have permission to insert this object.
Thor.API.Exceptions.tcAPIException: You do not have permission to insert this object.
Thanks,
Supreetha

You need to give your user insert/create permissions for groups. If it is creating it after the approval is completed, then you need to assign the permissions to the group of users who would perform the last approval because their session is passed onto the rest of the tasks. You could use private key authentication though to switch to xelsysadm and use that user to create the group.
-Kevin

Similar Messages

  • Unable to created users through UME on portal with AS ABAP as its data sorc

    Hi,
    Unable to created users through UME on portal with AS ABAP as its data source.
    I have assigned SAP_BC_JSF_COMMUNICATION to the user SAPJSF but this only helps in editing the already existing users but not in creating new users on portal.
    I have checked that that the role SAP_BC_JSF_COMMUNICATION is properly generated and has *  in all authorizations. I have even assigned SAP_ALL and SAP_NEW to SAPJSF and another ID.
    DO we need to make any config changes to make the database writable from portal. Please advise.
    Thanks,

    Hi,
    If your system is a AS ABAP + +JAVA System,, you have to do the following
    1. Login to Client 001 using SAP GUI
    2. Create a user id
    3. Login to portal and you will be able to see the user.
    4.Assign him the portal rights
    If you want the portal to use seperate Database for USers, there is a setting in Visual admin, that you can change for the same, but i dont remember that

  • Error while creating contact through API in Install Base

    Hello
    I am trying to create contacts when creating a install base through API...
    I tried below code as per metalink note# 215456.1 and giving the below error. I checked setup andI have 'Ship To' exists in Instnace Party Account Relationsship setup in the aplication and also I have a party Id 1232890 exist in hz_parties table with party type as 'Person' and I passed contact_ip_id as instance_party_id from CSI_I_PARTIES table for the instance to be update...
    Also, can anybody help me how to purge the error messages before calling the API, suppose if i have 2 records and all two records will error then my second record error getting contatenated with my first error and message count also getting increased(see error message below as message count coming as 2 even though there is only one error)
    SET SERVEROUTPUT ON SIZE 1000000
    DECLARE
    p_instance_rec CSI_DATASTRUCTURES_PUB.INSTANCE_REC;
    p_ext_attrib_values_tbl
    CSI_DATASTRUCTURES_PUB.EXTEND_ATTRIB_VALUES_TBL;
    p_party_tbl CSI_DATASTRUCTURES_PUB.PARTY_TBL;
    p_account_tbl CSI_DATASTRUCTURES_PUB.PARTY_ACCOUNT_TBL;
    p_pricing_attrib_tbl CSI_DATASTRUCTURES_PUB.PRICING_ATTRIBS_TBL;
    p_org_assignments_tbl CSI_DATASTRUCTURES_PUB.ORGANIZATION_UNITS_TBL;
    p_asset_assignment_tbl CSI_DATASTRUCTURES_PUB.INSTANCE_ASSET_TBL;
    p_txn_rec CSI_DATASTRUCTURES_PUB.TRANSACTION_REC;
    x_instance_id_lst CSI_DATASTRUCTURES_PUB.ID_TBL;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    x_msg_index_out NUMBER;
    t_output VARCHAR2(2000);
    t_msg_dummy NUMBER;
    BEGIN
    p_party_tbl(1).instance_party_id := null;
    p_party_tbl(1).instance_id := 1216497;
    p_party_tbl(1).party_source_table := 'HZ_PARTIES';
    p_party_tbl(1).party_id := 1232890;
    p_party_tbl(1).relationship_type_code := 'Ship To';
    p_party_tbl(1).contact_flag := 'Y';
    p_party_tbl(1).contact_ip_id := 1699185;
    x_msg_count := 0;
    p_party_tbl(1).OBJECT_VERSION_NUMBER := 1;
    -- Now call the stored program
    csi_item_instance_pub.update_item_instance(
    1.0,
    'F',
    'F',
    1,
    p_instance_rec,
    p_ext_attrib_values_tbl,
    p_party_tbl,
    p_account_tbl,
    p_pricing_attrib_tbl,
    p_org_assignments_tbl,
    p_asset_assignment_tbl,
    p_txn_rec,
    x_instance_id_lst,
    x_return_status,
    x_msg_count,
    x_msg_data);
    -- Output the results
    if x_msg_count > 0
    then
    for j in 1 .. x_msg_count loop
    fnd_msg_pub.get
    ( j
    , FND_API.G_FALSE
    , x_msg_data
    , t_msg_dummy
    t_output := ( 'Msg'
    || To_Char
    ( j
    || ': '
    || x_msg_data
    dbms_output.put_line
    ( SubStr
    ( t_output
    , 1
    , 255
    end loop;
    end if;
    dbms_output.put_line('x_return_status = '||x_return_status);
    dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
    dbms_output.put_line('x_msg_data = '||x_msg_data);
    -- COMMIT;
    END;
    ERROR
    SQL> @p
    Msg1: The Party Relationship Type (Ship To) entered is either invalid or it does
    not exist in the Installed Base Lookups
    Msg2: The Party Relationship Type (Ship To) entered is either invalid or it does
    not exist in the Installed Base Lookups
    x_return_status = E
    x_msg_count = 2
    x_msg_data = The Party Relationship Type (Ship To) entered is either invalid or
    it does not exist in the Installed Base Lookups
    PL/SQL procedure successfully completed.

    Hi
    We are in 11.5.10.2 and I already checked notes which you sent before and setups are fine as the relationship type' Ship to' having 'contacts' enabled in the setup.
    I am also seeing a differernt issue as once I update existing item instnace with the status 'Return for Credit' through API, system is not allowing me to update the extended attributes through front end application manually and I am seeing a note at the end of the screen as 'Note: This item instance cannot be updated. ' and this is only happening when I update the item instance status to 'Returned for Credit' not when I create new item instances with status as 'Created'. Is this intended functionality to restrict update on extended attributes if I change the status of item instnace to 'Return for Credit' ?
    Thanks

  • Unable to create tables through dbms_sql

    Hai
    I got the below error when i am createing table through dbms_sql package at any user except sys user.Our database is 8.1.6 standard edition
    SQL>CONNECT MOHAN/MOHAN;
    SQL> CREATE OR REPLACE Procedure EXECUTESQL (SQLStatement IN VARCHAR2) IS cursor
    _name INTEGER; ret
    2 INTEGER; BEGIN cursor_name := DBMS_SQL.OPEN_CURSOR; DBMS_SQL.PARSE(cursor_n
    ame, SQLStatement,
    3 DBMS_SQL.native); ret := DBMS_SQL.Execute(cursor_name); DBMS_SQL.CLOSE_CURS
    OR(cursor_name); END;
    4 /
    Procedure created.
    SQL> exec EXECUTESQL('create table test(name number)');
    BEGIN EXECUTESQL('create table test(name number)'); END;
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 782
    ORA-06512: at "SYS.DBMS_SQL", line 32
    ORA-06512: at "MOHAN.EXECUTESQL", line 2
    ORA-06512: at line 1
    Any idea about that
    Thanks in advance
    mohan

    Since you are using Oracle 8.1.6, you can use EXECUTE IMMEDIATE instead of DBMS_SQL. Make sure that the necessary privileges have been granted directly, not through roles. Click on the link below for more about privileges and roles and the error message that you got:
    http://osi.oracle.com/~tkyte/Misc/RolesAndProcedures.html
    Once you have the privileges granted properly, you should be able to use the code below. I should point out that this is still doing things the hard way. You can just issue the create table statement from the SQL prompt. I must assume that this is just a minimal experiment and that the eventual code involves more.
    SQL> CREATE OR REPLACE PROCEDURE executesql
      2    (SQLStatement IN VARCHAR2)
      3  IS
      4  BEGIN
      5    EXECUTE IMMEDIATE SQLStatement;
      6  END executesql;
      7  /
    Procedure created.
    SQL> EXEC executesql ('CREATE TABLE test (name NUMBER)')
    PL/SQL procedure successfully completed.
    SQL> DESC test
    Name                                      Null?    Type
    NAME                                               NUMBER

  • Getting Error while creating Project through API:PA_PROJECT_PUB.CREATE_PROJ

    Hi Gurus,
    I'm getting an error while creating a New project.
    My code looks like this:
    APPS.PA_PROJECT_PUB.CREATE_PROJECT
    (p_api_version_number => l_object_version_number --IN Parameter
    ,p_commit => l_commit --IN Parameter
    ,p_init_msg_list => l_init_msg_list --IN Parameter
    ,p_msg_count => l_msg_count --OUT Parameter
    ,p_msg_data => l_msg_data --OUT Parameter
    ,p_return_status => l_return_status --OUT Parameter
    ,p_workflow_started => l_workflow_started --OUT Parameter
    ,p_pm_product_code => g_pm_product_code --IN Parameter
    ,p_op_validate_flag => l_op_validate_flag --IN Parameter
    ,p_project_in => g_project_in --IN Parameter
    ,p_project_out => g_project_out --OUT Parameter
    ,p_tasks_in => g_task_in --IN Parameter
    ,p_tasks_out => g_task_out --OUT Parameter
    The out put params are: p_msg_count => 1
    p_return_status => E
    p_workflow_started => N
    g_project_out.pa_project_id => 170000000000000000000
    g_project_out.pa_project_number => ^
    g_task_out_rec.pa_task_id => 170000000000000000000
    End process record p_proj_insert => 1
    Resetting the task count variable
    when I checked the API code I found this:
    PA_INTERFACE_UTILS_PUB.G_PROJECt_ID := null; --bug 2471668 ( not in the project context )
    PA_PM_FUNCTION_SECURITY_PUB.check_function_security
    (p_api_version_number => p_api_version_number,
    p_responsibility_id => l_resp_id,
    p_function_name => 'PA_PM_CREATE_PROJECT',
    p_msg_count => l_msg_count,
    p_msg_data => l_msg_data,
    p_return_status => l_return_status,
    p_function_allowed => l_function_allowed
    . I think I am getting the error because of this.
    Now, question.
    Do I need to run the Create Project from a specific Responsibility?
    because when I ran the underlined query, I fpound the final status as 'N'.
    I'm a HR guy and PA is a new world for me. Any help will be appreciated.
    Thanks!!
    Viky

    You need to find any responsibility and userid that lets you create a project using the screen.
    And then in your code, you need to set your context to that resp/userid.
    Hope this helps
    Sandeep Gandhi

  • Using XML to create files through API

    Hi.
    I created a new custom type - a subclass of "Document", with a few private attributes.
    I wrote a small XML file that creates an instance of that type.
    I have no problem using that XML with FTP or with the web interface - it parses the XML automatically and creates my custom file.
    However, when I try to use the java API to do the same, it just copies the XML file into IFS, but doesn't parse it or creates the custom file that is defined in it.
    I am using the IFSFileSystem.createDocument method, with parsing set to true, and "null" for the callback parameter.
    Of course, the XML parser is registered (as I said, it works with FTP and web interface).
    Please help.
    Thanks, Edo.

    Sure .. you can use XML as the data source. If you have DW8,
    you can even
    do it right in the Dreamweaver Interface.
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "melneum" <[email protected]> wrote in
    message
    news:e7n37t$40m$[email protected]..
    > Is it possable to use xml to create user lists that can
    then be searched
    > to
    > allow access to a section of a site like you can do with
    asp? I would
    > prefer
    > not to use any database stuff on a site i am currently
    working on but need
    > a
    > secured login area.
    >
    > Any ideas??
    >

  • Unable to create Invoice through BAPI

    HI Experts!
    We are trying to create PO based (no GR and SES) invoice through "BAPI_INVOICECREATE". It is working perfectly for Material PO, but not for service PO. We are putting PO Quantity as '1' and UOM is "AU" for service. Getting error that "PO Quantity and UOM for iten 00001 is not in limit"
    Help!!!!

    I believe you can use UOM = EA as long as the rest of the P.O. is set correctly for the service and not GR of items.
    Please test in QA invirornment (if you have one) first. (not 100% sure it will work for your system but it does work for mine)

  • Unable to create delivery through ME2O in subcontracting process

    Hi,
    I am trying to create delivery for the subcontracting order in ME2O, but it was giving the error. Stock also exist for component material.
    The error messange is:
    "An item with no delivery quantity is not permitted. Item will be deleted".
    Please let us know the reason.
    Thanks in advance!
    Thanks,
    Jana

    Hi
    Please check the Stock overview MMBE of the material, in the stcok overview check the stock qty click on
    details and check if any stock qty is reserved for any delivery.
    Usually the delivery is created but PGI is not done , in such cases systme reserves the stock for that delivery, in the sytem it shows that stock is availble but that may be reserved.
    Thanks & Regards
    Kishore

  • On Prem Lync - Enable federation for "Lync Online" causes presence fail and gives error when creating groups

    Hi all,
    We have had Lync on premise for a long time, and have recently added Office 365 Business Premium Plan because we wanted Cloud exchange and SharePoint.
    I have found that on our on prem Lync, when we enable federation for "Lync Online" it cause our presence to intermittently flick on and off, and we are unable to create groups in our Lync Client. We get the message "unable to create a group
    at this time".
    We are also not able to federate with Office365 hosted Lync Online clients.
    This seems to be a bug between Office365 plans that have hosted lync licenses and on prem Lync. Has anyone found the
    What I need to do is disable office365 Lync, and I have tried to do that in every location I can find (DNS/User settings), but I still have this issue.
    Has anyone come across this issue and found a fix?
    Simon.

    Hi,
    Did you do a Lync Hybrid environment or just make federation with Lync Online?
    Please double check if there is any wrong configuration for federation with Lync online environment. You can refer to the following steps in the link below of “Configure federation support for a Lync Online domain in Lync Server 2013”:
    http://technet.microsoft.com/en-us/library/hh202166.aspx
    Then make sure CMS replication update to the latest status.
    If the issue persists, check if Lync Server update the latest version. If not, update it and then test again.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • 3710 fold create groups

    Hi,
    I'm unable to create groups on my nokia 3710 device. right now there is one group, but if  want to add a new one, I got a message, that only 25 groups are possible.
    What can I do?
    Cheers
    Chris

    Hope the suggestion of Farby  works. So you'll have a back up of all your contacts which is very important, than apps  try to sych it this time with outlook/outlook express, Lotus notes if you have Windows XP, or Windows mail if you have Vista/Win 7. Whatever model of phone you get its easy to put back all your contact.
    Its really pain in the ??? even if you have a hard copy of your contacts to type it in one by one say 500 of them ! 
    Knowledge not shared is knowledge wasted!
    If you find it helpfull, it's not hard to click the STAR..

  • Unable to create the Profit center groups

    Hi,
    We have created new company codes in R3Dev and also created the
    validation rules for the same. We have assigned the Set ID's to the
    validation rules. These Set ID's gets created when profit center groups
    are created for the new company codes.
    We have transported the company code configuration settings and the
    validation rules to R3QA.
    Now in R3QA, when I try to create the profit center groups in KCH5N for
    the new company codes, it says "the group already exists".This is
    caused due to the SET ID's which also got transported along with
    validation rules. I have checked the table 'SETHEADER" which shows the
    SET ID's for the new company codes.
    Could you please a solution to resolve this issue.
    Thanks
    Rakesh

    Hi Mohan,
    Since Set Id's have moved to quality along with vaidation rules, I am to create the profit center groups, as it says the group already exists. I believe the set Id's need the master data maintained in R3Q, before they are transported. Since this is not maintained, with the transport, the data is sitting for Set Ids at the table level (Table: SETHEADER),  because of which I am to unable to create the profit center groups.
    Thanks,
    Rakesh

  • Task Does not get triggered when User is created through API

    Hi,
    Each new user in our OIM environment is supposed to have a iPlanet account. I have configured the access policy for the same and it works.There is also a process task which needs to be triggered once the user is successfully created in the DS. Following is my issue:
    1.When the new user is created through the admin console, the user is provisioned successfully to DS as well because of the access policy and the task also gets triggered successfully.
    2. There is an approval workflow for another resource, at the end of which a user needs to be created through APIs in OIM. The user gets created successfully in OIM and also get provisionined to DS just like in the above use case. However, the task fails in this case. I see that the task is being triggered from the user's resource profile, but the status is rejected.
    Can someone please tell me why is this happening. I initially though there was some issue with my adapter for the task, but in case 1 it works just fine.
    Following is the exception I get as soon as the iPlanet connector finishes creating the user in DS:
    java.lang.ClassCastException: java.lang.String
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpSETFIELDSONUSERCREATE.implementation(adpSETFIELDSONUSERCREATE.java:51)
    at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    Thanks,
    Supreetha

    Hi,
    Have you checked the process data that you are passing to this adapter and check the mapping of process data to the adapter variable. Try to log the value which you get from process data. I got this error when I was trying to use the literal value from process data as "true" for a boolean value. This is a bug. This value is not actually a boolean value. It threw me error too sometimes back. Either you pass the boolean value from adaptor factory as a literal value or change the type boolean both in your code and the adapter.
    OIM works strangely. ;) All the best,
    Manila

  • I am unable to create a new email message when I connect to the internet through google

    I am unable to create a 'new email message'when I connect to the bigpond.com webmail through the internet from my ipad2.

    Try this. Settings>Safari>Block Pop-Ups>Off.
    I have an Exchange account that behaved similarly to what you are describing. I finally realized that I had to allow pop ups in order to access my mail on the server.

  • Unable to create Product group form T Code- MC84 in ECC 6.0

    Dear Expert,
              After Upgrade from 4.7E to ECC 6.0 we are facing problem for Tcode-MC84(Create Product Group) is opening but we are unable to Create product group..
            can any tell me what is problem for this or is there any apply SAP Note for this.
    Thanks in advance,
    Regards,
    Kumar,

    Hi,
    I think for some particular versions you can create a product group directly using T code MC84, and if u have got a material type say PROD-Product group,then use mm01 for creating a product group. And then you can do the  change in MC86 for product group.
    Refer thread:
    https://forums.sdn.sap.com/click.jspa?searchID=15761932&messageID=5854286
    Regards,
    R.Brahmankar
    Edited by: R Brahmankar on Sep 1, 2008 12:42 PM

  • Unable to create multiple transport target groups in SLD

    We have multiple R/3 QA systems but just 1 XI QA system and we need to test interfaces with all R/3 QA client at the same time. My XI development team has asked to explore whether its possible to create multiple target systems.
    Currenlty R3_dev has R3_QA1 as target business system, we would like to add R3_QA2 as target system for R3_dev.
    There is a "add/change" option in Transport tab and there is a grid which seems to imply that multilple entries are possible.
    I have added R3_QA2 to the Group "Qa_Bus_Group" and was able to  replace
    R3_QA1  with R3_QA2 however I was unable to create multiple target systems.
    I was wondering if anyone ran into this issue and any suggestions are welcome. Thanks in advance.

    Hi Syed,
               You can create multiple target systems only for different business system groups.If all the business systems like R3_QA1,R3_QA2, R3_QA3 belong to the same business group "QA_BUS_GROUP" , then you can have only one among the three system as target.
               So R3_DEV  can have only one system as target either R3_QA1 Or R3_QA2 or R3_QA3 since they belong to the same business group "QA_BUS_GROUP".
                If there are three different business system groups then you can have 3 target systems that correspond to their respective business system groups ,in this case source business system can be assigned to the 3 target systems that belong to different business system groups .
               Since that is not the case with your scenario, you cannot create multiple target systems.
    Regards,
    Laawanya

Maybe you are looking for