OIM 11g - EventHandler PostProcess add the user to the Group

Hello world

I am developing an eventhandler postprocess after a create operation of the user, in which I would like this user to be added to a group. I don't know if it's possible?

This is the code to java that I wrote :


public EventResult run (long processId, long eventId, orchestration of the Orchestration) {}


tcDataProvider tcdata is XLDatabase.getInstance () .getDataBase ();.

Take string = getUserKey (processId, orchestration);

try {}
long n = Long.parseLong (take);
gKey long = 56;

groupAPI = (tcGroupOperationsIntf) tcUtilityFactory.getUtility (tcdata, "Thor.API.Operations.tcGroupOperationsIntf");

groupAPI.addMemberUser (gKey, nabil, true);

} catch (tcAPIException e) {}
System.out.println ("NOK");
} catch (tcGroupNotFoundException e) {}
System.out.println ("NOK1");
} catch (tcUserNotFoundException e) {}
}

return new EventResult();
}



And this is the error I get :

----------

< 24 Jul. 2012 10: 45 CEST > < error > < oracle.iam.identity.rolemgmt.utils > < ARA-3056030 >
java.lang.RuntimeException: method not implemented
at oracle.iam.request.eventhandlers.RequestDataActionHandler.execute(RequestDataActionHandler.java:110)
at oracle.iam.platform.kernel.impl.OrchProcessData.runPreProcessEvents(OrchProcessData.java:896)
at oracle.iam.platform.kernel.impl.OrchProcessData.runEvents(OrchProcessData.java:634)
at oracle.iam.platform.kernel.impl.OrchProcessData.executeEvents(OrchProcessData.java:227)
at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.resumeProcess(OrchestrationEngineImpl.java:665)
at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.process(OrchestrationEngineImpl.java:435)
at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:381)
at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:334)
at oracle.iam.identity.rolemgmt.impl.RoleManagerImpl.grantRoles(RoleManagerImpl.java:566)
at oracle.iam.identity.rolemgmt.impl.RoleManagerImpl.grantRole(RoleManagerImpl.java:552)
at oracle.iam.identity.rolemgmt.api.RoleManagerEJB.grantRolex (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 com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
to $Proxy343.grantRolex (Unknown Source)
at oracle.iam.identity.rolemgmt.api.RoleManager_ogut7n_RoleManagerRemoteImpl.__WL_invoke (unknown Source)
(....)

NOK
----------

I tried to implement other methods such as getMemberUsers ("gKey") , and this one works...


If you can help me with this, it will be really useful!

Thank you

Thibault

You have entered the code in the execute method. Put it in the method bulkexecute as well.

Why do you need to write event handlers to put the user in a group? Better to create a rule group membership and attach it to a group. Whenever a new user is created, the role membership rule is evaluated. All the users who fill out this membership rule will be automatically get assigned to this group.

Kind regards
GP

Tags: Fusion Middleware

Similar Questions

  • Add bulk users to a group

    Is it possible using which you can add users in bulk to a group using:

    Web client

    Fat client

    PowerShell--> provide the cmdlet and the full syntax

    As I usually do is to create a workflow of ARS who calls a Powershell script (configured in a script "activity") to perform the group member add bulk.  You then grant users delegated the right to start the workflow from the web client or the client.

    In regards to adding bulk input file, you can do two things:

    (1) the hard code the name of the input file in your script that is thrown by the workflow, or

    (2) configure a setting in the workflow that prompts the user for the name of the input file.  To support this, I usually create a two line script that lists the files in a particular folder to present to the user a list of input files to select from.

  • 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

  • Add the group with the ES2 Java API

    Hi all

    There is an example that shows how to create a new group using the ES2 API here:

    http://help.Adobe.com/en_US/LiveCycle/9.0/programLC/help/index.htm

    However, if you run the code to create a group, the code works fine and a new OID is returned. But if you go in the /AdminUI ES2 and the list of all groups, you don't see the 'AdobeGroup' group here! Also if you are looking to the /AdminUI for the group 'AdobeGroup' it is not found.

    If the code does not work or the Admin UI does not show the newly created group.

    What's not here?

    Thank you.
    Paul.

    After the code snippet should work for you

    public String createSampleGroup() throws UMException{        String groupOid = checkGroupExist(groupName);
    
            if(groupOid != null){            return groupOid;        }        String groupCanonicalName = groupName;
    
            GroupImpl group = new GroupImpl();        group.setCanonicalName(groupCanonicalName);        group.setDomainName(domainName);        group.setGroupType(Group.GROUPTYPE_PRINCIPALS);        group.setLocal(true);        group.setPrincipalType(Principal.PRINCIPALTYPE_GROUP);
    
            groupOid = directoryManager.createLocalGroup(group);        log("Sample group created with name %s",groupName);
    
            return groupOid;    }
    
        /**     * Search the groupwith the given name in the sample domain      */    private String checkGroupExist(String groupName) throws UMException{        PrincipalSearchFilter psf = new PrincipalSearchFilter();        psf.setCommonName(groupName);        psf.setSpecificDomainName(domainName);
    
            //By default the filter causes like search unless you are using the absolute version        //Setting this ensures that search is exact        psf.setMatchExactCriteria(true);
    
            //By default search returns obsolete users also. Set this to ensure that        //only active users are returned        psf.setRetrieveOnlyActive(); 
    
            //PrincipalReference are lightweight user objects and searching for them would be more performant        //compared to the User search. If you do not require any other user attribute then prefer this        //mode of search        List result = directoryManager.findPrincipalReferences(psf);        if(result.isEmpty()){            log("Sample group with name [%s] does not exist",groupName);            return null;        }else{            String oid = result.get(0).getOid();             log("Sample group with name [%s] already exist",groupName);            return oid;        }    }
    
  • How to add the Group Policy Editor Gpedit.msc for Windows 7 family?

    Where can I download for Windows 7 family gpedit.msc?

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    Group Policy Editor is a professional editions feature, full and Windows 7 Enterprise edition. He does it not belong to Starter, Home Basic and Home Premium edition.

    If you have need of Gpedit , you can use Windows Anytime Upgrade upgrade your Home Premium to professional edition or ultimate edition without losing your data and installed the software... This tutorial will help you with the Express Upgrade: http://www.sevenforums.com/tutorials/95744-windows-anytime-upgrade-how.html

    All hack party. for Gpedit to Home Premium is against your Windows 7 end user license agreement and may include procedures that could severely damage your computer.

  • Box AD - 9.1.1.4 adapter - adding after the user from this group is created

    Dear all,
    Is it possible to add the group to the user using the adapter box AD after it has been in service to the announcement?

    Thank you

    There are a couple of different alternatives:

    1. use one (or more) access policies to fill the child form with the groups you want
    2. If you do a direct supply simply fill out the child form as you wish
    3. If you do not ask the basis of provisioning, according to me, you have a child form on the shape of the object for groups

    Hope this helps
    / Martin

  • Creation of the user in the Group of IOM

    Every time I reconcile a user of a system of Trsuted, how to add this user to IOM group(ex:group1) automatically?

    Go to rule of Designer and create rule as role is Consultant.

    It can be anything.

    Go to the Group > Manage > select your gorp > drop down > Select membership rule > select your rule created.

  • Object of the USR UDF is not respected in oim 11g

    Hi all
    We did the upgradation of oim 9.1 IOM 11.1.1.5 and verified our functionality (Provisioing AD/Exchange). Practically, all work as planned, up to now, we have not seen all the important issues. How ever, we observed one thing to console design, there are 6 user defined field Defination IOM objects in our IOM 9.1

    SDK utility Structure - user defined fields
    Objects in OBJ - user defined fields resource
    Applications of REQ - user defined fields
    Act - user defined fields
    Roles of UGP - user defined fields
    Users of the USR - user defined fields 0

    We have 36 (UDF) fields in object USR IOM 9.1
    Later, upgradation of oim 11g, we have 5 field except USR user-defined objects.

    USR was missed in oim 11g, how ever we are able to see the values of all the users through IOM admin console. Everything bad thing here. Can you please think about it, the impact and work around for this (if any).

    Thank you.

    USR is moved to Console advanced IOM to 11g to the title of the item menu user Configuretion.

    Check out there.

  • 'create file user.js in profile directory' to add the user prefs to enable Mozilla Rich Text editing

    The message of ff for me, is "to protect users information, unprivileged scripts cannot invoke the commands cut, copy, and paste in the Mozilla rich text editor... to activate these features, you must change your browser preferences... "This is an online course. In discussion forums and editing my post for answers - when you slide on a sentence, then rt clk for copy/cut/paste edit options - this is when I get the message to follow the instructions to create a user.js file in my profiles. I followed the instructions to "Change preferences in Firefox" to create a user.js file (didn't have any) to add the features described and specific for this site (which is an .edu site). Since had a "user.js" file open in a text editor to create one I RT. CLK, given 3 options of text document type, choose 'doc RTF' typed then required lines of preference user, saved as .rtf, ff, closed, reopened, returned on the forums of the school, tried the same editing options, but got the same answer. After leaving completely, returning my profile the user.js file, I thought I did wasn't there. I scrolled a lot a lot of useful articles, comments etc here, but nothing specific to this type of file in the profiles? In these instructions, step 3 "open file user.js from this directory in a text editor. "If there is no user.js file, create a. That's what I have to do. Then I'll be ready for the step 4 yay! Thank you.

    As soon as you click on the selected text, the site displays a message about changing the settings of your?

    On this site, you can use the standard Windows keyboard shortcuts for cut, copy and paste: Ctrl + x, Ctrl + c, Ctrl + v?

    If so, I suggest to do this.

    Alternatively, you can the websites stops to replace the context menu showing always menu of Firefox. This can be a bit annoying on certain cases, such as Google Maps, where menu Firefox allows you to hide menu Google. When this happens, you can usually press ESC to remove the Firefox menu and use the site menu. If you want to change this, here's how:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste the context and make a pause so that the list is filtered

    (3) double-click the preference dom.event.contextmenu.enabled from true to false.

  • What happens when I add the user?

    Hello

    I want to add a user. I think with administrator privileges.

    How is the Admin differs from the standard?

    It will have access to everything in the two? Fine.

    Nothing will change in appearance in adding a user?

    Excuse my stupidity, but it indicates a base folder will be created with his name. Is that mean a home folder as average with separate applications, desktop, Documents, films, records, etc.?

    best,

    Elmer

    It's for Yosemite, but the same information applies to El Capitan-> OS X Yosemite: Configure users on your Mac will explain the differences between accounts.

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

  • Valid email required? Failed to add another user to the escan.

    Hi, my printer is HP Photosmart 7520

    I try to add a user who will be my work email address, I get to the Welcome screen, then asked to enter the email address, this is made of sinople carefully and then I get a message "Please enter a valid email address to continue.

    I have re set the settings, look for the updates and tried a dozen times.

    Any ideas very welcome.

    It's what I suspected. Your SMTP server for the email client you are using doesn't have the necessary safety requirement, or it has too many. Some areas would not meet the criteria to be used for this feature, unfortunately. This is probably due to a change in our standards or their standards. I don't know who. But the round of work more accessible is to use another area.

    I'm sorry for the inconvenience this might cause.

    -Spencer

    PS I hope you have a wonderful day!

  • Add a user outside the administrator account

    original title: is it possible for someone to add a user other than Administrator account?

    Somehow an added to user accounts user account and it is not me the administrator?

    Hello

    What operating system is installed on the computer?

    You can create a new user account without being an administrator, but the account will not be a standard user account that has limited privileges.

    Hope that helps.

  • Add the user to the users group in the Users.ini file using c#

    Hello

    Using a c# application, we strive to add/remove a user from the TestStand Users.ini file.

    The CreateDeleteUsers.seq file in the samples of TestStand is used as a reference.

    We have seen that we are able to add the user to the list of user help file

    engine. UsersFile.UserList.SetPropertyObjectByOffset (0, 0 x 1, newUser.AsPropertyObject ());

    However, when we try to add the user to the user group, the sample file CreateDeleteUsers.seq said

    RunState.Engine.GetUserGroup (Locals.GroupName). Members.SetPropertyObjectByOffset (0, 0 x 1, Locals.User.AsUser.LoginName)

    If we try to replicate this in c#, the API seeks the last parameter (which is LoginName in the CreateDeleteUsers.seq file) as an object of property

    engine. GetUserGroup (this.) GroupName). Members.SetPropertyObjectByOffset (0, 0 x 1, newUser.AsPropertyObject ());

    This causes an exception of object reference when we run the application.

    Please advise on how to proceed.

    Thank you

    Arun-

    The members property is an array of string, so the 3rd parameter to SetPropertyObjectByOffset requires a string property object, IE. the user name and not of the user object. From the will of the user object error with '-17308; Specified value is not the expected type. ». The example should really be using SetValStringByOffset to be clearer so that you only specify the user name of the actual string.

  • Performance issuses, impossible to uninstall a program, add another user account, the computer doesn't turn off etc.

    Can anyone help, my vista home 32-bit edition computer is seriously messsed! ??

    I'm unable to download windows updates and I have like 20 of them to download, it just never performs an act he says its download, but it's not I can leave it for hours and nothing happens, this causes problems because my computer does now, because when you do it just says : configuration of updates and can last for hours, so I have to unplug the power to turn it off, which is not good for the computer.

    IM also having problems with other things such as it won't let me uninstall not more programs, I can't do a restore of the system from the control panel or add another user account. freezes Internet too much, slow start. I always get microsft popups saying: "the program has stopped working and not could find solutions to this problem" but I did a system restore in safe mode, but the dates were 3 months back and that didn't help the performance of this computer. I want to return to a closer date now, but I can't. as it doesn't let me do a restore of the system in the menu start control pannel ir.

    I run a scan with malaware had 181 made thereats that were deleted but I still have the same problems as above

    He said also my windows defender is not protected (outdated) more and needs to update, but it will not update

    Help, please

    Hi gandt85,

    1. you remember to make changes to the computer before this problem?

    2. are you able to boot into safe mode without any problem?

    Since you are not able to restore the system to normal mode, I suggest you to do a system restore to a recent date of WinRE using the full version of Windows Vista disk.

    Method 1:

    Do follow link below:

    What are the system recovery options in Windows Vista?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-Vista

    Method 2:

    You can also try to run a scan using Microsoft Security Essentials.

    Check out the link:

    http://www.Microsoft.com/security/products/MSE.aspx

    Also, try the malicious software removal tool and check.

    http://www.Microsoft.com/security/malwareremove/default.aspx

    Hope this information is useful.

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

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for

  • G560: confusion

    Hello everyone. I have a Lenovo G560 and recently wanted to play games on it. Being a fan of FPS, I had heard good things about the Crysis series, so I decided to buy the Crysis Maximum Edition. Is not not a PC gamer experience, because the game has

  • LaseJet Pro MPF M125a: Digitization of unavailable features

    Hello I just installed HP software and driver cd on Windows 7 and also updated. But the analysis is not available. The desttop I have icons for HP help learn & Center (work) and HP LJ125126 Scan. But when I scan icon, a popup say in Finnish "HP LJ M1

  • I need drivers for 2 unknown devices in the T60 Windows 7 clean install

    After a clean install of Windows 7 on my T60 87414BU install all drivers, I was able to recognize I have yet 2 Virtuelperipherique unknown by the screenshot below, for which I was able to find the drivers for. Suggestions or are these legacy devices

  • That should solve my Vista and XP client automatic updates? My workplace uses a WSUS

    Hello all,. What should my xp and vista workstation updates automatic be defined if I wanted only to receive updates of our WSUS? The network type is a jerk and I don't want to ask him.

  • English language pack or re-install Win8.1 English?

    I am about to receive an Inspiron 17 7000, but because of my location, it was only possible to buy a system with version 8.1 of Windows Pro in Dutch only. I want only one interface in English on the laptop, so I guess I have two choices (1) get it op