Cancel the assignment of users to a group of IOM using the API/Java Code

Hello OIMers,

Can you please tell me how can I delete the assignment a belonging to a group through code?

This is the case:

When the user is deleted from Active Directory, I want to cancel the user from a group, assumes that the name of the group is "employed full-time."

Currently how do is click the profile in the administration Console, then select group of drop down and then select Cancel this group assignment.

Please tell me how to do the above tasks programmatically, it would solve my problem.


Thanks to all in advance.

Kind regards

VSN

Have you tried findGroups?

You get a result set with only one entry and then just do a:

long groupKey = groups.getLongValue("Groups.Key");

Hope this helps
-Martin

Tags: Fusion Middleware

Similar Questions

  • Adding users to a group of construction using the command line tool

    Hello
    Please forgive me if this is in the wrong category/forum, I can't seem to find one for Oracle Portal. I wonder if someone could help me with this issue please?

    I am trying to automate the adding users to a group of portal, entries already exist for users in the OID.
    With the help of the following ldapmodify command:

    ldapmodify h myhost.company.com Pei 389 - D cn = sleep w f /home/modify.ldif password

    where /home/modify.ldif has the following entries:-

    DN: cn = User1, cn = Users, dc is company, dc = com
    ChangeType: modify
    Add: orcldefaultprofilegroup
    orcldefaultprofilegroup: cn = groupname, cn = portal. 090112.174408.194907000, cn = groups, dc = company, dc = com

    DN: cn = User2, cn = Users, dc is company, dc = com
    ChangeType: modify
    Add: orcldefaultprofilegroup
    orcldefaultprofilegroup: cn = groupname, cn = portal. 090112.174408.194907000, cn = groups, dc = company, dc = com

    The ldapmodify script puts the specified group in the field "Default group" of the 'Edit portal user profile' page in the portal, which is fine. However it is not in fact add the user to the group. When I check the list of the members of the users group are not listed. Also the group is not listed under the existing users group membership "in the"Edit user"page. Also, when I try to connect to the portal as users, I get the error message "you are not authorized to perform this operation. (WWC-44131) "

    How can I add users to a group membership by using the command line tool?

    Thank you.

    M

    Your LDIF file must change the group entry and no input from the user.

    something like

    DN: cn = portal. 090112.174408.194907000, cn = groups, dc = company, dc = com
    ChangeType: modify
    Add: uniqueMember
    uniqueMember: cn = User1, cn = Users, dc is company, dc = com

  • How to cancel the screen lock code?

    I have the screen when I put the email with the exchange of creat mode

    But how to cancel the lock code after I remove e-mail account

    When slected off the coast, it will prompt you for a password/PIN confirm?  Try this:

    1. turn off.

    2. close the card and don't do anything else.

    3. immediately cut off the phone, press and hold the power button for the option.

    4 turn it back on.

    Rotates the screen and the promp password once again yet?  If so, the next step is to partial erasure options reset the device by going to the tap and info on the device.

  • How to see the public API java code (including police)

    Hello

    Excuse my noobishness, but I recently met {this} message and can't seem to find out how Mantaker (and other participants of the discussion) discovered the java code in the class of the police?

    Am I missing something? Is it possible for any public class?

    Please fill in my blanks of knowledge.

    Thank you.

    If you look at the post just above that you have linked to you will see that they used the javap command.  It's legal and it comes with the JDK.  Either way, you will notice that it does not give the complete code just the headers of the method and fields.

    For example, to get information, they passed the command line and navigate to the directory where your net_rim_api.jar file is.  Then type

    javap net.rim.device.api.ui.Font
    

    Of course, this assumes that the javap command is in your path.

  • Consistency of the Oracle: Java code does not work

    Hello
    I'm just playing with the API consistency. I came across a problem of substance, I'm unable to solve it.
    I want to create a list of arrays of arrays of strings, i.e. for example: [["a", "b"], ["c", "d"] ['e', 'f']] I need to store in consistency and retrieve back. I use a string "compartmentId" as key for this table. In short string "compartmentId" is key and the table that is: [["a", "b"], ["c", "d"] ['e', 'f']] is the value.
    ==============================

    I wrote a simple Java for this method. Data is written in consistency, but when I try to recover it-somehow the typecast "arrayList = (ArrayList < String [] >) (Sessions.get (compartmentId))"; fails.

    When he tried with string i.e. singles, int objects the test case works. For example String str = (String) (Sessions.get (compartmentId));

    Any idea, why should above fail.

    I copy my code, just in case required:

    ==============================

    Pack package;
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    import java.util.ArrayList;
    to import java.util.Iterator;
    public class DemoCoherence {}

    public static NamedCache Sessions = CacheFactory.getCache("Sessions");

    @SuppressWarnings ("unchecked")
    public static String getSession (String compartmentId)
    {
    String sessionId = 'I suck ';

    ArrayList of ArrayList < String [] > = new ArrayList < String [] > ();
    arrayList = (ArrayList < String [] >) (Sessions.get (compartmentId));
    If (arrayList! = null) {}
    Iterator itr = arrayList.listIterator ();
    While (itr.hasNext ()) {String [] ls = (String []) itr.next (); if (ls [1] == "yes") {ls [1] = 'no';}}
    sessionId = ls [0];
    Break ;}
    }

    }

    return the sessionId;
    }





    @SuppressWarnings ("unchecked")
    public static String putSession (String compartmentId, String sessionId)
    {
    ArrayList of ArrayList < String [] > = new ArrayList < String [] > ();
    arrayList = (ArrayList < String [] >) (Sessions.get (compartmentId));
    If (arrayList == null) {}

    ArrayList < String [] > newArrayList = new ArrayList < String [] > ();
    String [] newSession = new String [2];
    newSession [0] = sessionId;
    newSession [1] = "yes";
    newArrayList.add (newSession);
    Sessions.put (compartmentId, newArrayList, 10000);

    }
    on the other
    {
    String [] newSession = new String [2];
    newSession [0] = sessionId;
    newSession [1] = "yes";
    arrayList.add (newSession);

    Sessions.put (compartmentId, arrayList, 10000);
    }
    return the sessionId;

    }









    }

    Ah, that's right, forget the effects of deserialization of POF. Method should look like this with active pof-

        public String getSession(String compartmentId)
            {
            String sessionId = "I am null";
            // This will be returned as an ImmutableArrayList
            java.util.List arrayList = (java.util.List) (Sessions.get(compartmentId));
            if (arrayList != null)
                {
                java.util.Iterator itr = arrayList.listIterator();
                while (itr.hasNext())
                    {
                    // This will be returned as Object[]
                    Object[] ls = (Object[]) itr.next();
    
                    if (ls[1].equals("yes"))
                        {
                        ls[1] = "no";
                        sessionId = (String) ls[0];
                        break;
                        }
                    }
                }
            return sessionId;
            }
    
  • assign a user to multiple groups?

    Hello world
    Suppose we have about 500 groups, and we want to add a user to all the groups of this 500 at a time. How can do us?
    (Note: I know adding sequentially in each group, but I want to add all the groups at once)

    Soon, Amith, my bad - my link is to the variable USER, same process for the GROUP through blocks init etc etc.

  • How to add a user to a group?

    Using the API Java (EJB), how can I add a user (or any entity) to a group?

    I tried to use the UserImpl setGroupMemberships method, but it doesn't seem to work.

    Take a look at addPrincipalToLocalGroup in com.adobe.livecycle.usermanager.client.DirectoryManagerServiceClient.

    Steve

  • How do you remove all THE Java code of Vista before a Java reinstall.

    I have (Microsoft Security Essentials) has recently detected viruses in my tree of Java.  While I think that the problem was managed by MSE, I still want to remove completely all my machine Java code prior to a relocation of a pure set of Java.  It seems that Java would not provide you with a removal of Java (like MaAfee) do this, and the only code available tool is the standard Microsoft required uninstall code.  I want to remove all traces of Java code, and I don't usually use (do not trust) of 3rd party code that you find on the Internet, but if anyone has good experience with one of them, I would like to know.

    Even if the uninstaller code seemed to work, I found a lot of leftover Java files and folders left behind.  For example, there is a Sun\Java\... tree located in the AppData\LocalLow directory.  I would like to know why this code was left and whether it is safe to just delete.  I don't like just big clear code because there may be a registry entry based on the code, which could cause another problem to me (even if the Java code is supposed to be uninstalled).

    In the meantime, as an alternative, I renamed all Java directories that I can find.  Roughly the same and about as good what remove Java directories, isn't.

    And finally, I have a Vista 64-bit system, so which implementation of Java should I download/use. When I uninstalled the Java code, there is an updated version of 32-bit (Version 6, 26 update in the list of programs), as well as an outdated version of 64-bit (Version 6, Update 13 instead of Version 6, update 26) in the list programs.  These work together.   I shouldn't have to download both, I have to, or I should.

    And one last comment.  I've been running for a few days now without any Java installed on my machine and do not encounter problems or errors due to the absence of the code.  I know that many of the Applications that I use, use javascript, which I think is a little different that the standard Java code.  So what's the problem here.  Have I just not met a Java-application or is there more parts left Java in the machine I don't know or Windows excuting part of the said code.  I need to Java, I don't.

    roninrr

    Yes, Java is bad enough to remove all its files when uninstall you it but things left to do no harm. You can remove them if you want.

    There is no relationship between Java and Javascript, with the exception of confusion as well as the fact that both languages look a bit.

    You can probably do without Java. Java has become one of the biggest goals for malware recently. I uninstalled Java of my computers a while back I found I was taking more time now know to use it. I was only access a Web site regularly used and find a substitute for it. I could leave uninstalled, and see if you hit what he really needs.

    If you decide to reinstall, the 32-bit version is all you need unless you use Internet Explorer 64-bit (which you shouldn't).

  • 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/

  • Send messages via the java code, but using definitions of Mail

    Hello

    I want to send mails using java code, but reading the data (body, subject, sender, etc.) of the IOM Mail definitions.

    can someone send me a link or a thread where this method is used?
    or a reference to some Thor API manual.

    Thank you.

    You can use tcEmailOperationsintf API to call IOM Email definitions from java code.

    Here is the snippet of code on the use of this API.

    {} public void getEmailTemp (String email_def_name)
    tcEmailOperationsIntf emailIntf = null;
    resSet tcResultSet = null;
    Map emailMap = new HashMap();
    emailMap.put ("Email Definition.Name", email_def_name);
    try {}
    emailIntf = getUtilityFactory() (Thor.API.Operations.tcEmailOperationsIntf)
    .getUtility ("Thor.API.Operations.tcEmailOperationsIntf");
    resSet = emailIntf.findEmailDefinition (emailMap);
    for (int i = 0; i)< resset.getrowcount();="" i++)="">
    resSet.goToRow (i);
    Void String = resSet.getStringValue ("Email Definition.Subject");
    System.out.println ("subject of the email is:" + sub);
    String body = resSet.getStringValue ("Email Definition.Body");
    System.out.println ("body of the email is:" + body);
                                  
    }
    } catch (tcAPIException e) {}
    System.out.println ("Exception occurred in the getEmailTemp method:" + e);
    } catch (tcColumnNotFoundException e) {}
    System.out.println)
    «cloumn illegal name allowing access to the getEmailTemp method: "+ e);»
    }
    System.out.println ("getEmailTemp smoothly method");
    }

    You can use this code for your reference.

  • Script to cancel the assignment of users of VMware View

    I have a group of users that I want to cancel the allocation of specific machines for VDI. Is there a way to pull a group of users from a csv file which will remove them from the said VM attributed without having to do it manually in the view manager?

    Delete the property is probably the command.

    Thank you!

    You want the cmdlet Remove-UserOwnership.

    Provided that the CSV file contains the following fields

    'VM', 'user '.

    "VM1", "user1".

    "VM1", "user1".

    You can do something like this

    Import-Csv input.csv -UseCulture | %{
      $vm = Get-DesktopVM -Name $_.VM  if($vm.user_displayname -eq $_.User){
        Remove-UserOwnership -machine_id $vm.machine_id  }
    }
    
  • How do I cancel the target account without deleting the user in the system target?

    Hello Experts,

    We need to know if it is possible to revoke a resource (delete account), without deleting the user in the target system.

    Example:

    UserOim1 in IOM has a resource of SAP ECC, is linked to the SAP UserSap1user.
    We need assign SAP UserSap1 user to another user of IOM UserOim2.
    So we'd like to broke the link between UserOim1 and UserSap1 (without deleting the SAP user) and then connect the SAP with UserOim2user.


    Is this possible?

    Best regards
    AT

    If you move a resource from one user to another, there is a process of service account for this.

    Using the API under tcUserOperationsIntf, you can use changeToServiceAccount. Next moveServiceAccount will move to the instance from one user to another, and finally chageFromServiceAccount turn off the type of service account.

    This account must really be identified as a service before all the shares of account account occur however. There should be no other reason to switch from a users account. If the account is defined as a service from the beginning account, simply attach existing adapters for the tasks of service account. They will fire instead of disable regular and delete tasks. I think that you will always have questions if the revoke occurs, and then you run these tasks because all the other tasks will be canceled State.

    -Kevin

  • No Add button in the users section and groups on LenovoEMC Storage Manager 1.4.4.14439

    I just install my new Iomega PX4 - 300 d and have enabled security. When I go to the users section and groups, there is no Add button to create new users or groups.

    The Add button is available in other sections and I created with success of new volumes/shares.

    I read the instructions and following the guides online without success.

    Is there another setting that I missed?

    He solved.

    I disabled the security and then reactivated it.

    The add users/groups button reappears.

  • When I try to assess my computer via the control panel by pressing 'rates receive this computer' i a that 'message windows could not calculate windows experience index because the user cancelled the assessment' how can I solve this problem.

    Ideas:

    • information on the performance and the tool programs having problems
    • the user cancelled the assessment
    • installation of Windows vista service pack 2
    • Tracking FAQ

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Hello Marie Claude fernando.

    Thanks for posting on the Microsoft answers Forums.

    In a command prompt elevated.  WinSAT formal type

    I hope that this answer to your questions, if you need further assistance please come back and post, we are more than happy to help you.

    Kind regards

    Edgar
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • The opportunity to identify a specific storage for each user or security group.

    Hi all

    I asked how to specify storage for each user or security group on the server of the University Complutense of Madrid. ex. I want user 'weblogic' unable to download a document on the server of the University Complutense of Madrid, more than a gigabyte. the user can check in several files, but thetotal space for all files are not a gigabyte.

    Thank you

    I asked how to specify storage for each user or security group on the server of the University Complutense of Madrid. ex. I want user 'weblogic' unable to download a document on the server of the University Complutense of Madrid, more than a gigabyte. the user can check in several files and the total space for all files not exceeding a gigabyte.

    You can write a rule to achieve this where in the xStorageRule is evaluated based on any set of metadata such as dDocAuthor or dDocSecurityGroup etc., or a combination of metadata.

Maybe you are looking for

  • OfficeJet Pro 8630: Problem with cartridges

    Hello: They yellow cartridge in the printer ran out of ink.  Normally, this isn't a problem.  I opened my new pack of ink and replaced the yellow cartridge.  The printer freaked out and said that there was something wrong with the cartridge.  Not OK,

  • HP Envy 100 series: 2 Facer impression

    When I select two side printing of the printer covers and saturates the entire sheet in black ink. A significant additional complaint is that it quickly wears out the ink cartridge. How can I fix this?

  • Sometimes my VI does not add an extension of .tdms and corrupts data

    I have a VI in Labview real-time, which generates a number of timetraces containing voltage readings. I use the .tdms for this format. Most of the time it works perfectly, but sometimes it won't add the .tdms for my data extension. All resulting data

  • How solve the magnifying glass

    We used to have a magnifying glass 'click' on our mouse.   After Dell worked on a problem for us, the magnifying glass is gone.  Is there an easy way to restore the magnifying glass on our mouse?  Or make it easily accessible, another way?

  • attach error

    Hello When I turn on the portable wifi hotspot show this error Please help me to solve this