Cannot create groups using the API

Hello

I have an approval workflow for the creation of a new organization and it works fine. Once the final level of approval is finished, I should create a new org and three groups within the IOM. My adapter creates the new organization successfully. However, I get exception when I try to create groups. Is someone can you please tell me what is the question. I assigned all group permissions to the users group on the approval of the application. Here is the snippet of code with the exception 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 agency created");
HashMap < String, String > groupMap = new HashMap < String, String > ();
groupMap.put ("Groups.Group name" orgName + "Admin");
long adminGroupKey = groupOper.createGroup (groupMap); -It's the line, I get the following exception


CREATENEWORG running
= Class Security.iam.identity.adapters.tasks.CreatePartnerOrg target
Initializing class
New agency created
ERROR, March 8, 2011 16:52:10, 660, [XELLERATE. SERVER], class/method: tcDataObj/eventPreInsert error: Insert permission is denied
ERROR, March 8, 2011 16:52:10, 661, [XELLERATE. API], class/method: tcGroupOperationsBean/createGroup some problems: maoRejections: you are not allowed to insert this object.
Thor.API.Exceptions.tcAPIException: You are not allowed to insert this object.



Thank you
PETREA

Which user do you use?

Config ConfigurationClient.ComplexSetting = ConfigurationClient.getComplexSettingByPath ("Discovery.CoreServer");
final Hashtable env = config.getAllSettings ();
tcSignatureMessage moSignature = tcCryptoUtil.sign ("xelsysadm", "PrivateKey");
tcUtilityFactory utilFactory = new tcUtilityFactory (env, moSignature);

Tags: Fusion Middleware

Similar Questions

  • Cannot create channels using the Scheduler

    Hello

    In Oracle 11 g r2
    CREATE OR REPLACE PROCEDURE p_tst
    AS
    BEGIN
       DBMS_SCHEDULER.CREATE_CHAIN (chain_name            => 'CHAIN_DELTA1',
                                    rule_set_name         => NULL,
                                    evaluation_interval   => NULL,
                                    comments              => NULL);
    END;
    --=================================
    EXEC p_tst;
    I am facing the error. ORA-01031: insufficient privileges.
    I have the DBA role assigned to my username. What could be the reason for the error?

    Kind regards
    Matola.

    Or, if appropriate, use the rights of the current user instead of the author's rights.

    CREATE OR REPLACE PROCEDURE p_tst authid current_user
    AS
    BEGIN
       DBMS_SCHEDULER.CREATE_CHAIN (chain_name            => 'CHAIN_DELTA1',
                                    rule_set_name         => NULL,
                                    evaluation_interval   => NULL,
                                    comments              => NULL);
    end;
    /
    
  • Cannot create images using the Digital Image Standard 2006 Editor

    original title: Digital Image Standard 2006 Editor

    I have the Digital Image Standard 2006 Editor on my Windows 7 computer and for some reason, the only thing I can't do with it is to create frames and mats. Nothing happens when I click on this option. Everything else works so I am confused. Any suggestions?

    Hi Kittea,

    Thanks for posting in the Microsoft Communities. The problem description, I understand that you are not able to access some options in editor of Digital Image Standard 2006 application. Before you start the troubleshooting steps, provide the following information:

    ·         Did you do changes on the computer before the show?

    ·         You get the error message? If Yes, what is the full error message?

    Follow these methods.


    Method 1: Uninstalland reinstall the program.


    Method 2: place the computer in a clean boot State to see if there is a software conflict as the clean boot helps eliminate software conflicts.


    Note: After completing the steps in the clean boot troubleshooting, follow step 7 the link to start the computer to a Normal startupmode.

    I hope this helps. Let us know if you need more assistance.

    Thank you.

  • Unable to create the pool of IP required for configuration VXLAN using the API REST NSX

    Basically, I want to configure VXLAN using the REST API. To set up VXLAN, VMKNic IP addressing accepts DHCP or IP Pool. I decided to go with Pool of IP.

    To create a Pool of IP "NSX-DEV-IPPOOL-01', I used the REST APIs.»

    POST https:// < nsx - ip > /api/2.0/services/ipam/pools/scope/ < id data center >

    < ipamAddressPool >

    < name > NSX-IP-POOL-02 < / name >

    < LG > 24 < / LG >

    < gateway > 10.99.134.1 < / gateway >

    Lab.local < dnsSuffix > < / dnsSuffix >

    < dnsServer1 > 10.99.134.2 < / dnsServer1 >

    < dnsServer2 > < / dnsServer2 >

    < Plages_ip >

    < ipRangeDto >

    < startAddress > 10.99.134.225 < / startAddress >

    < endAddress > 10.99.134.229 < / endAddress >

    < / ipRangeDto >

    < / Plages_ip >

    < / ipamAddressPool >

    Now I can see the Pool of IP in vCenter under NSX Manager-> [NSX-Manager-IP]-> manage-> object-> Pools of IP group.

    nsx_ipPools.png

    But when configuring VXLAN, no IP pool is present.

    nsx_configurev_xlan.png

    Y at - it all the additional steps required after the addition of pool of IP using the REST API?

    Thanks in advance.

    Remove the existing IP pool.  Then recreate the pool by using the API, but instead of using with globalroot-0.

  • How to create VI execution asynchronous step using the API

    I want to create a "run way asynchronous step VI" using the API TestStand in LabVIEW.

    Navigation on the details of the step and the properties of the object, apparently, that it is a type of 'special' step that is actually a SequenceCall.  However, I don't see how to access the data contained in this type of step.  I enclose my current VI used to 'Browse' the data for reference.

    Please advise on how to create this step.

    Thank you

    Hey LVB,

    I'm sorry, I didn't know that you always wanted to use the "Use the Prototype sequence" checkbox option.  In this case the attached code should demonstrate how this can be accomplished.

    Thank you

  • Create new Orgs by using the API (hr_organization_api.create_hr_organization) and details additional Org Unit

    Hello

    I created some orgs again using the API (hr_organization_api.create_hr_organization)

    I also want to create additional details Org Unit FDF but not sure which API to use.

    I am trying to insert data into attriubute1, 2 and 3 of the table to hr_all_organization_units by using the API, however the hr_organization_api.create_hr_organization API only allows me to use a segments of1 to 30 in the parameters of the API and NOT the attribute columns

    Can someone please suggest.

    Thank you

    Hello

    As you have rightly noted, hr_organization_api.create_hr_organization is not the settings to meet the ATTRIBUTE?.

    You could try calling the hr_organization_api.update_organization with the "p_organization_id" returned by the API call 'create '.

    Kind regards

    Rajen

  • Create 10000 of TI resource Instance using the API of the IOM.

    Hello

    I need to develop a utility that will create 1000's of resources COMPUTER to IOM, the utility must read the resource data in a CSV file.

    Utility must use the Api of the IOM to develop this feature...

    Please provide feedback

    Kind regards


    Abreu

    Thanks Abhishek.

    I have a doubt linked to this resource setting that is there in the CSV file, how we can pass these parameters as aphAttributes in createITResourceInstance method.

    Kind regards

    Sri

  • How to associate the data store of the target for the newly created using the API Interface

    How to create a new Interface under project, need to associate the data store target for mappings for the interface by using APIs "."

    Able to get the associated interface created temporary data store. You need to associate a new database model. How to do this using the API

    My code is,

    String pCode = "DEVELOPMENT";
    Context OdiContext = (mgr.getFinder (OdiContext.class)) .findByCode (pCode) (IOdiContextFinder);
    System.out.println (Context.getLastDate ());

    OdiInterface pInterface = new OdiInterface ("toDeleted_Interface", pFolder, context);
    pFolder.addInterface (pInterface);

    The list of ds < DataSet > = pInterface.getDataSets ();
    < DataSet > iterator itr = ds.iterator ();
    DataSet ds_nxt = itr.next ();

    PAlias string = "HRA_TMPL_DEFNS_TL";
    pOrder int = 0;
    OdiModel pModel = (mgr.getFinder (OdiModel.class)) .findByCode ("FILE_PM_MODEL") (IOdiModelFinder);
    String pName = "HRA_TMPL_DEFNS_TL";
    OdiDataStore pUnderlyingOdiDataStore = new OdiDataStore (pModel, pName);
    SourceDataStore pSourceDataStore = new SourceDataStore (ds_nxt, false, pAlias, pOrder, pUnderlyingOdiDataStore);
    ds_nxt.addSourceDataStore (pSourceDataStore);

    TargetDataStore tdata = pInterface.getTargetDataStore ();

    If (tdata.isTemporaryDataStore ())
    {
    }

    http://odiexperts.com/creating-interface-for-single-source-and-target/
    http://odiexperts.com/creating-temporary-interface-using-ODI-SDK/

  • create the policy by using the API of the IOM: tcAPIException:insert exception failed

    Hello

    I need to create the policy by using the API of the IOM.

    Here is my code:

    long [] provObjKeys is {10};.
    Boolean [] revokeObjectIfNotApply = {true};
    long [] denyObjKeys is {11};.
    long [] groupKeys is {6};.
    tcAccessPolicyOperationsIntf accessPolicyOp = (tcAccessPolicyOperationsIntf) ioUtilityFactory.getUtility ("Thor.API.Operations.tcAccessPolicyOperationsIntf");

    HashMap policyCriteriaMap = new HashMap();
    policyCriteriaMap.put ("Access Policies.Name", "computer laptop Access Policy");
    policyCriteriaMap.put ("Access Policies.Description", "computer laptop access political Desc");
    policyCriteriaMap.put ("Access Policies.Note", "computer laptop Access Policy Note");
    policyCriteriaMap.put ('Access Policies.Retrofit Flag', ' yes');
    policyCriteriaMap.put ("Access Policies.By Request", "No");

    long accessPolicyKey = accessPolicyOp.createAccessPolicy (policyCriteriaMap, provObjKeys, revokeObjectIfNotApply, denyObjKeys, groupKeys);

    but the political establishment fails.

    Not able to discover the problem.

    policyCriteriaMap.put ("Access Policies.Retrofit Flag", "1");
    policyCriteriaMap.put ("Policies.By application access","0");

  • Object LVOOP read/write using the API TestStand

    Is it possible to read/write a LVOOP object to a variable TestStand from LabVIEW using the API of TestStand?

    SetPropertyObject() takes a green wire reference, which is incompatible with an LVOOP object.  SetValVariant(), SetValIDispatch(), and SetValInterface() seems to just write a value null of type variant.  I don't know if I use the wrong API function or if it's just not possible.

    Hi jsiegel,

    That's right, it is not quite possible to what I believe, it is your intention. As mentioned, TestStand cannot create the object of LabVIEW. To make and use references of LabVIEW with TestStand, you need LabVIEW out this reference, which may then store it TestStand as an object reference. For VI requiring the obeject LabVIEW as an input, the registered object reference can be passed in. To make calls to LabVIEW classes using the class member call with a step of the VI Action instead of the call to VI for the Type.

    Of course, you need both LabVIEW and TestStand 2012 or newer in order to use these functions.

    Kind regards

  • Definition of privileges by using the API

    Hello

    I am a newbie of TestStand. Please bear with me if this question seems very basic.

    I am trying to build a c# wrapper around the user management module in TestStand. I created a new user interface that reads all the characteristics of a user as his groupname, privileges etc.

    How can I access the NI_UserCustomPrivileges using the API?
    I need to access privileges custom under the grouping custom privileges.

    I'd appreciate any help in this.

    Use the User.HasPrivilege method.  This method takes as a parameter a representative the particular privilege search string you are looking for.  For example, you can search the database name, i.e. 'RunSelectedTests' [User.HasPrivilege ("RunSelectedTests")] or you can search the full path, for example "Debug.RunSelectedTests".  In this way, you should be able to search privileges custom as "Custom.MyPrivilegeName."  Note that if you are only looking for the database name and there are several instances of the name of this database that exists, TestStand will only work on the first instance it finds.

  • The value of the PropFlags using the API

    Hello

    I created a new group using the c# API calls. I need to ensure that the new group is not deleted. So I tried using the SetFlag method to set these property flags.

    The code snippet is as

    userGroup = eng. NewUser (null);

    userGroup.LoginName = "Test";

    userGroup.AsPropertyObject (). Flags ("PropFlags_NotDeletable", 0x1, 0x400000);
    userGroup.AsPropertyObject (). Flags ("PropFlags_NameNotEditable", 0x1, 0x400000);

    However, the newly created group doesn't have these flags set.

    How can I go on the definition of these indicators?

    Thank you

    Arun

    You pass incorrect arguments to the function flags. The first parameter is the string to search for the property you want to set flags on. In this case, pass an empty string to reference the user object. The second parameter specifies the options for the function. In this case you need anything. The third parameter specifies the desired flags set on the property. You must pass the combination of indicators (PropFlags_NotDeletable |) PropFlags_NameNotEditable). If you remember the flags feature, it will overwrite the flags that you set in previous calls.

    userGroup.AsPropertyObject (). Flags ("", 0 x 0, PropFlags_NotDeletable |) PropFlags_NameNotEditable);

  • How to get the role name of the OIM 11 g using the API

    Hello
    I have a scenario in which I create role/group of OIM 11 g & she gets supplied with AD [= works great] & other party it is when I remove role in OIM 11 g then it should
    removed from the AD. I wrote the postprocess event handler to achieve this goal.
    In the authoring part of role I get all the parameters by using "orchestration.getParameters ()"; but when I delete the role then "orchestration.getParameters ();" is empty, so I'm
    Unable to get the name of the role.
    Is there a way to get the role name when you remove roles by using the API?

    Thank you
    Rahul Shah

    Hello

    To implement using pre-wet the handler rather post-processing.

    Kind regards
    Ralu

  • How to use the API of PL/SQL DBFS

    Hi guys,.

    I re-post this question to see if someone can help out me. I'm trying to use the API of PL/SQL DBFS to manipulate the files stored in DBFS.

    Details of the environment:
    Windows 7 or 5.5 OEL (I tried both platforms)
    Database: Oracle DB EE 11.2.0.2
    IDE: SQLDeveloper on Windows 7

    I have two users, DBFS_USER, who is the shop owner DBFS and MYUSER that connects to the store to manipulate files using the API of PL/SQL DBFS.

    Creation scripts:
    -----------------
    Connect / as sysdba;

    Dbfs_ts CREATE TABLESPACE DATAFILE 'D:\oracle\oradata\orcl\dbfs01.dbf' SIZE 1 M AUTOEXTEND ON NEXT 1 M;

    -create users
    create dbfs_user user identified by dbfs_user quota default tablespace unlimited dbfs_ts on dbfs_ts;
    create myuser identified by myuser;

    -grant the role
    GRANT RESOURCES, CREATE VIEW, CREATE SESSION, DBFS_ROLE, CREATE TABLE TO dbfs_user.
    GRANT RESOURCES, CREATE VIEW, CREATE SESSION, DBFS_ROLE, CREATE TABLE TO myuser.

    -create a filesystem (such as DBFS_USER)
    connect dbfs_user/dbfs_user;

    exec dbms_dbfs_sfs.createFilesystem ('STAGING_AREA_FS');

    exec dbms_dbfs_content.registerStore ('STAGING_AREA_FS', 'posix', 'DBMS_DBFS_SFS');

    dbms_dbfs_content.mountStore exec ('STAGING_AREA_FS', 'staging_area');

    commit;

    -export store STAGING_AREA_FS (as DBFS_USER)

    exec dbms_dbfs_sfs.exportFilesystem ('STAGING_AREA_FS');

    -Check the names of table (like MYUSER)
    connect myuser/myuser;

    -He can't see (without brackets)
    Select * from table (dbms_dbfs_content.listMounts);

    -Note at the bottom of the table table_name
    Select * from table (dbms_dbfs_sfs.listTables);

    -Mount as MYUSER (example with SFS table_name $ _FST_32)
    dbms_dbfs_sfs.registerFilesystem exec ('MYUSER_FS', 'DBFS_USER', ' FS$ _FST_32');

    exec dbms_dbfs_content.registerStore ('MYUSER_FS', 'posix', 'DBMS_DBFS_SFS');

    dbms_dbfs_content.mountStore exec ('MYUSER_FS', 'staging_area');

    commit;

    -verification of Mount (like MYUSER)

    Select * from table (dbms_dbfs_content.listMounts);

    Select the path in dbfs_content;


    CREATE a STORED PROC (like MYUSER)
    ----------------------------

    CREATE OR REPLACE PACKAGE MYUSER_PKG

    CreateDirectory function
    (P_File_Path IN VARCHAR2,
    P_ErrMsg OUT VARCHAR2)
    return number;

    END MYUSER_PKG;

    /


    CREATE OR REPLACE PACKAGE BODY MYUSER_PKG

    CreateDirectory function
    (P_File_Path IN VARCHAR2,
    P_ErrMsg OUT VARCHAR2)
    Return number
    IS
    l_Return NUMBER;
    l_props DBMS_DBFS_CONTENT. PROPERTIES_T;
    BEGIN
    l_Return: = 0;

    () DBMS_DBFS_CONTENT.createDirectory
    path = > P_File_Path,
    Properties = > l_props);

    RETURN l_Return;
    EXCEPTION
    WHILE OTHERS THEN
    l_Return: = NVL (SQLCODE,-1);
    P_ErrMsg: = SQLERRM;
    RETURN l_Return;
    CreateDirectory END;

    END MYUSER_PKG;

    /

    When you compile the package, I get this error:
    Error (9,11): PLS-00201: identifier 'DBMS_DBFS_CONTENT' must be declared
    Error (9,11): PL/SQL: ignored element
    Error (13.3): PL/SQL: statement ignored
    Error (15,19): PLS-00320: the declaration of the type of the expression is incomplete or incorrect

    How can I solve the problem in the error message? I'm not an expert in DB. I used this reference documentation: http://download.oracle.com/docs/cd/E11882_01/appdev.112/e18294/adlob_client.htm#CIHDEJAA

    Thanks in advance.

    CAPPA

    You must directly grant the privileges of DBFS_ROLE because roles are not enabled in stored PL/SQL:

    SQL> select* from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    
    SQL> show user
    USER is "SYS"
    SQL>
    SQL> create user myuser identified by myuser;
    
    User created.
    
    SQL> GRANT CREATE SESSION, RESOURCE, CREATE VIEW, DBFS_ROLE, CREATE TABLE TO myuser;
    
    Grant succeeded.
    
    SQL>
    SQL> begin
      2  for x in (select privilege, table_name
      3           from dba_tab_privs
      4           where grantee='DBFS_ROLE')
      5  loop
      6   execute immediate 'grant ' || x.privilege || ' on ' || x.table_name
      7   || ' to myuser ';
      8  end loop;
      9  end;
     10  /
    begin
    *
    ERROR at line 1:
    ORA-22812: cannot reference nested table column's storage table
    ORA-06512: at line 6
    
    SQL>
    SQL> connect myuser/myuser
    Connected.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE MYUSER_PKG IS
      2  Function CreateDirectory
      3  (P_File_Path IN VARCHAR2,
      4  P_ErrMsg OUT VARCHAR2)
      5  return Number;
      6  END MYUSER_PKG ;
      7  /
    
    Package created.
    
    SQL> show errors
    No errors.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY MYUSER_PKG  IS
      2  Function CreateDirectory
      3  (P_File_Path IN VARCHAR2,
      4  P_ErrMsg OUT VARCHAR2)
      5  return Number
      6  IS
      7  l_Return NUMBER;
      8  l_props DBMS_DBFS_CONTENT.PROPERTIES_T;
      9  BEGIN
     10  l_Return := 0;
     11  DBMS_DBFS_CONTENT.createDirectory (
     12  path => P_File_Path,
     13  properties => l_props);
     14  RETURN l_Return;
     15  EXCEPTION
     16  WHEN OTHERS THEN
     17  l_Return := NVL(SQLCODE, -1);
     18  P_ErrMsg := SQLERRM;
     19  RETURN l_Return;
     20  END CreateDirectory;
     21  END MYUSER_PKG ;
     22  /
    
    Package body created.
    
    SQL> show errors
    No errors.
    

    You should check why some GRANT statement fails if you have another problem with the other piece of code.

  • How can we add lines by using the APIs in the Apex?

    Hi all

    In my application, I created the elements of text using the API like this:

    HTP.p ('< tr >');
    HTP.p ("< td width = 80px align =" center"> < b > ');
    HTP.p ("font color =" black"> ');
    HTP.p (APEX_ITEM. Text(1,c.empno,10,30,"','','"f01_'|| j||'"'));
    HTP.p ("< /b > < table > '");

    Now, I need to add a line button when you click on to insert a new row so that it can enter data...

    How do I do this?

    Thank you
    David...

    David,

    If the EMPNO is your primary key column, it cannot be changed. The update process identifies the line updated by EMPNO. If you want to allow users to change the EMPNO value, you will need to add another column to your tabular form that is used to store the primary key. In general, the primary key values must be meaningless, should not be exposed to the end user and only used for internal processing.

    Kind regards
    Marc

Maybe you are looking for