Change a role through the API

Hello

I'm trying to change the owner of the role through the API, but I'm stuck in a ValidatianFailedException.

I use following code:

oracle.iam.identity.rolemgmt.api.RoleManager roleMgr = (oracle.iam.identity.rolemgmt.api.RoleManager.class) client.getService;
With "Test 2" = an existing role
Role = roleMgr.getDetails ("The Unique role name", "Test 2", attr3);
I try to assign the key role of the owner xelsysadm
role.setAttribute ("key role owner", "1");
Using the function change
RoleManagerResult rst = roleMgr.modify (role);

But the .modify function gives me following error:

oracle.iam.identity.exception.ValidationFailedException: IAM-3056014: impossible to specify a value for the attribute key: the key role
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at oracle.iam.identity.rolemgmt.api.RoleManager_ogut7n_RoleManagerRemoteImpl_1035_WLStub.modifyx (unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
to $Proxy4.modifyx (Unknown Source)
at oracle.iam.identity.rolemgmt.api.RoleManagerDelegate.modify (unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
to Thor.API.Base.SecurityInvocationHandler$ 1.run(SecurityInvocationHandler.java:68)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs (weblogicLoginSession.java:52)
at Thor.API.Base.SecurityInvocationHandler.invoke (SecurityInvocationHandler.java:79)
to $Proxy5.modify (Unknown Source)
at be.nbb.oim.OIMClientRunner.createAuthzPolicy(OIMClientRunner.java:968)
to be.nbb.oim.OIMClientRunner. < init > (OIMClientRunner.java:142)
at be.nbb.oim.OIMClientRunner.main(OIMClientRunner.java:161)

Can someone help me with this?

THX!

Greetings

Add the category role to the role

Example Code:

System.out.println("RoleUpdate.process() START");
          String roleKey = "72";
          HashMap mapAttrs = null;
          Set roleKeys = null;
          RoleManager roleManager = null;
          RoleManagerResult roleManagerResult = null;
          Role role = null;
          roleManager = getRoleManager();
          roleKeys = new HashSet();
          roleKeys.add(roleKey);
          mapAttrs = new HashMap();
          mapAttrs.put(RoleManagerConstants.ROLE_DISPLAY_NAME, "Change Display name");
          role = new Role(mapAttrs);
          roleManagerResult = roleManager.modify(roleKeys, role);
          print("Modification status: '" + roleManagerResult.getStatus() + "'");
          System.out.println("RoleUpdate.process() END");

HTH,
BB

Tags: Fusion Middleware

Similar Questions

  • Change the Port Group Namespace for autonomy through the API?

    Work with vShield / POSSIBLE 5.5.0a.

    Take a group of ports which, out of the box will have a default namespace. As a result, you see the following menu items and information:

    PortGroupNamespace01.PNG

    By clicking on the Stand-alone namespace change link is there for that. We now have a group of ports with the stand-alone namespace and the additional menu tabs, firewall App and SpoofGuard.

    PortGroupNamespace02.PNG

    I can of course change for autonomy through the user interface, but can not find the equivalent API calls in the vShield API Programming Guide to do it programmatically. Can someone please advise on how to do this via the API?

    Thought that I would realize, since I figured this out in the end - a case of RTFM! Namespaces to appear in the Guide of programming on page 186, but there is no explicit mention of the way to make a group of independent ports. However, after revisiting the guide the penny dropped that adding a space of names to the data center is the equivalent of the evolution of a group of ports to a stand-alone namespace. Once you enter that (may be more obvious to you, it was for me), the examples in the guide can be followed.

    So to change ports for the autonomy group namespace, you must do the following:

    Https:///api/2.0/namespace/datacenter/ POST

    dvPortGroup-xxxxx

    Make sure that the content type is set to application/xml, text/xml (which has worked for me in the document) and not in the contrary case, it fails with a complaint about content type.

  • Liquid can be changed through the API?

    Hello

    In the developer documentation, I can only find the reference to the use of liquid to retrieve information through the API. It can also change the information? Or is the collection that it is acting as a reference for the purposes of change?

    See you soon.

    Adrian Brown

    Brilliant logic.

    Liquid is only to read and display Adrian, you can not write in the installer with the liquid. Only through open platform apps in the admin or the 3rd party API.

  • Loading of information costs for the Organization through the API

    Hello

    I saw the discussion below. He replied, but the link does not work. Please, help us to load the data on costs for the organaization.

    We also refer Doc - id: 276677.1. It says only the cost for assignment information can be loaded by the api. ?

    (2) in the form of the Organization, we have added the ranking, "HR".

    When we press 'Costing Information' is displayed.

    We need to download this Information of costs in the body through the API.

    Which API should we used?


    Please help us.

    Hello

    Use the API for the creation of HR organisation.

    Oracle provides APIs for creating organization as well regarding the creation of HR organisation.

    These 2 are different API. If you create using HR organization you will also see the columns of the table for the dimension information of the operating companies.

    Kind regards

    Kathan Bhatt

  • Business Catalyst: Can I access the CRM extended through the API BC database?

    Hello!

    I'm trying to integrate our Business Catalyst with Salesforce account so that Business Catalyst handles all of our Web site and email marketing while Salesforce manages our sales data. I am trying to use a program called Podbox (that uses the API to maintain databases of synchronization), but can only the limited amount of lack of access, coordinated and none of my custom fields of BC. Does anyone know of a workaround for that all of my custom fields are visible via the API? Or are they available through the API and it would be a problem with Podbox? I tried to search in the documentation, but couldn't find much on the extended CRM database.

    Thanks for any help!

    ~ Rhyne

    Hello

    The extended CRM database API end points that you are looking for is not available in British Colombia at this point.

  • Cannot update the END_DATE_ACTIVE column in the HZ_CODE_ASSIGNMENTS Table through the API

    Hello

    I'm not able to update the column END_DATE_ACTIVE HZ_CODE_ASSIGNMENTS Table through the API: hz_classification_v2pub.update_code_assignment.
    After running with all the facings that he managed, but it is not properly updated the end_date_active to the date given as parameters when executing the API defines it rather end_date_active to null.

    Please help.

    Thanks and greetings

    Salvation;

    What is your version of the EBS? If you are on r12.x you can hit bug. Please see:
    Unable to update HZ_CODE_ASSIGNMENTS end_date_active with January 1, 2012 [1166367.1 ID]

    Respect of
    HELIOS

  • Followed lead changes and deletions via the API

    Hello

    We use the API block for extract contacts and records every night for the storage of data.  For now, enter us all the records where the field of creation or last update happened the last time sync ran.  Since a large number of areas (e.g. partitions) are updated, which seems to result in almost a full (slow) re - sync every day.  Also, that leash not does any way to identify that were deleted to Eloqua, then we can also remove it from our warehouse.  Is there a better way to do it?  It doesn't seem like there is no available activities representing the field changes or deletes Records unless I'm missing something.

    Thank you

    Shane

    Hi Shane,

    Unfortunately at this time, the only way to draw from these data is the date of last modification, which as you know is updated on the update of any field. Subscribe to specific field changes and destruction Records are things we look for in the implementation via the Firehose API, however, there is no firm plan in place yet.

    Thank you

    Chris

  • Move line command r does not create through the API

    Hello

    I m creating the order of MOVING through the Standard API of the Oracle. Its share of the header is created successfully, but don't create the line.
    However, the Standard API return status as S. I m using the following INV_MOVE_ORDER_PUB API. CREATE_MOVE_ORDER_HEADER for INV_MOVE_ORDER_PUB and header. CREATE_MOVE_ORDER_LINES for lines.

    After you run the line level API return it the following message.

    Context of initialized requests: 3767 50238 401
    ==========================================================
    Call of INV_MOVE_ORDER_PUB. Create_Move_Order_Lines API
    ==========================================================
    Return status: S, return value: T
    Moving lines of order created successfully for header ID 1942372
    ==========================================================

    Thanks in advance...

    Kind regards
    DK

    Check how to create lines of movement using INV_MOVE_ORDER_PUB command. Create_Move_Order_Lines API [Video] [ID 729263.1]
    He has the video as well as sample code.
    Make sure that you follow these guidelines.

    Hope this helps,
    Sandeep Gandhi

  • Need text box changes to reflect through the document.

    Hi all

    I'm pretty new in InDesign. I was wondering if there's some way to do master text box changes reflect through the whole document used this master page after you move the text boxes on the documents. Is this possible?

    So. Let's say that there is the block of text with the text on the master page. I decided to use this master page on a given document, but I needed to move the block of text with the text in this document. I won't be able to change the master page text?

    Right. Once ignore you it and move on the live page, change the text on the master does not affect the text on the live page.

    If you have the same frame with the same variable text appear in the same place on multiple pages, put that image on a master page is a good way to make your life easier. But if you need the same frame with the same variable text appears upwards in * different * places on many pages, there are more effective ways.

    You don't mention a version. CS3 and CS4 allow variables (Type > text Variables). You can create a custom text variable and insert this variable in your document. Change the definition of the variable and this will change all at once. I think that a custom text variable cannot be more than one line long, but the only limit to the length of the line is the length of the block of text that is.

    For more than one line, you can make your block of text in a separate document, export it to PDF and then place the PDF anywhere in your document. Edit the new document, PDF export and it will change all at once. In CS3 or CS4, you can also directly put your separate Indesign document into your working document. No necessary PDF.

    Ken

  • Activation of roles through the Proxy authentication

    Hi all
    I have a question to turn roles via the proxy authentication.

    It is an example of my environment:

    3 users:
    -SCHEMA_OWNER
    -PROXY_USER
    -APP_USER

    1 role:
    -SCHEMA_ACCESS

    Role SCHEMA_ACCESS has all subsidies for the selection, insertion, in the SCHEMA_OWNER tables. PUBLIC SYNONYMS have also created por these objects.

    We'll see

    GRANT SCHEMA_ACCESS TO APP_USER.
    ALTER USER APP_USER GRANT CONNECT BY PROXY_USER WITH ROLES SCHEMA_ACCESS.

    Now, APP_USER can access the tables of the SCHEMA_OWNER directly or via the PROXY AUTHENTICATION.
    The question are how to configure APP_USER to access these objects only through the proxy authentication and prevent access if APP_USER connects directly to the database.

    Thanks in advance.

    Try again with a secure application role: http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/politips.htm#i1006355

  • No way of knowing through the API if an Echosign user is inactive?

    Hello - I am working with the SOAP API - y at - there no way via the API whether an Echosign user is active or not? the getUsersInGroupResult table contains only:

    [groupKey] = > * key *.

    [company] = > * company *.

    [email] = > * email *.

    [fullNameOrEmail] = > * name *.

    [take] = > * user key *.

    Even if I shoot at all users and affected the API once again for each user to get the getUserInfo UserData, it still doesn't look like an active/inactive status:

    API - Document eSignature software - Adobe Document Cloud methods

    Looks like it would be trivial to add:

    [status] = > ACTIVE

    in the getUsersInGroupResult-

    THX

    Hello Nbennett25,

    I took this as a feedback and would certainly pass.

    Kind regards

    -Usman

  • Is it possible for the Mobile (or) telephone number through the API of the SIM card


    Try Phone.getDevicePhoneNumber)

  • Essbase error when you try to change the dimension through the rule files

    Hi Knowledgebank.

    I'm new to Essbase. I'm trying to change my dimension through the rule files and Iam getting error (Dimension build setings).

    Example:

    My current dimensiion is:

    MARKET TOTAL
    ASIA
    Singapore
    CHINA
    HONG KONG
    NORTH AMERICA
    SOUTH AMERICA


    I am trying to add a few new countries of SOUTH AMERICA and I can't. Is there a step by step guide to achieve this?
    I'm following the documentationi but still errors.

    Help on this is going to help me go further.

    Note:-I am able to load the data successfully.
    'TOTAL MARKET' 'COUNTRY'--> header I have jump while loading
    'SOUTH AMERICA' 'BRAZIL '.
    'SOUTH AMERICA' 'ARGENTINA '.

    As above, your first file is correct if you use generation referance.
    Your mapping in the rules file should be like this.
    Gen2, Gen3 TOTAL MARKET, MARKET TOTAL
    'SOUTH AMERICA' 'BRAZIL '.
    'SOUTH AMERICA' 'ARGENTINA '.

    For generation Referance always starts on Gen2.
    Gen1 sets the level of the dimension. If the dimension is not there, you must set in the definition of dimension not in Field1.

  • How to read and write attributes using the API?

    I'm trying attributes of access (read and write) of the following:

    SequenceFile

    Sequence

    The sequence steps

    When you look at the documentation of the API, TestStand, the following functions are available:

    PropertyObject

    Properties

    Attributes (read-only)

    HasAttributes (read-only)

    Methods

    DisplayAttributesDialog

    I tried to use the SetValString and GetValString commands using the reference of the attributes, but it does not seem that the data is stored in the file.

    I can't find the following information in the TestStand API:

    1. Where the attributes are stored in a property object?

    2. How can we access through the API?

    No advice and no information is appreciated!

    You must increment the number of changes to the file after that editing the sequence editor (or UI) won't refresh or mark the file, as amended. Use sequenceFile.AsPropertyObjectFile (). IncChangeCount().

    SequenceFile attributes are stored in the SequenceFile.Data, not the object of SequenceFile object. You can change them in the Advanced tab of the properties of the file sequence dialog box.

    Hope this helps,

    -Doug

  • Set the signature using the API field only

    I have a situation where all PDFs you signed are created for each customer individually and on the fly.

    I must be able to define the scope of the signature using the API only.

    Is this possible? I can't change the pdf file and add any kind of labels. It must be done using an x, the value of the coordinate y.

    Hello Lawrence,.

    If you are looking to set the fields of the form through the API, you can see below reference material:

    https://secure.NA1.echosign.com/public/docs/EchoSignDocumentService21#FormField

    Kind regards

    -Usman

Maybe you are looking for

  • Payment of music Apple

    It is possible to buy a subscription to Apple's music using iTunes Store Gift credit card? If Yes, where can I register?

  • Problem with my laptop

    This message continues to appear a lot on my mac after I downloaded a program called Vuze. "Utility has encountered a fatal error and will end now." How can I solve this problem? I looked at another forum of discussion with the same problem, but for

  • Is WiFi adapter supports WPA - PSK on Equium A100-147 encryption?

    I decided to buy a satellite A100-147, but I would like confirmation that the WiFi adapter supports WPA - PSK encryption. I can't find confirmation anywhere. My guess is that he does, it's a recent machine, but I would be sure. Thank you once again.

  • Link between SCRM installation and verification PQM

    Hi allis it possible to directly connect a facility with an Audit PQM associated with this installation?Of the Audit PQM I can see the relationship with the installation, click on it and jump directly into the installation.I can't find the same link

  • Help please! I can't install Flash Player for my website

    I have a Web site. The problem is whenever the readers of my site from a mobile phone, they complained that I might have a problem with the flash player, but when someone visits the laptop or desktop, it seems OK. Can you tell me what is the problem?