Setting default password to all the users in OIM

Hi ,
I want to set the default password for all the users provisioning in OIM via trusted recon.
Please let me know how to achieve this.
Thanks

in MDS(eventhandler.xml) provide operation=CREATE else in code you can check the same if(operation.equals("CREATE"))
find below complete code this is tested and working fine
public EventResult execute(long processId, long eventId, Orchestration orchestration) {
UserManager um =null;
isLoggerInfoEnabled = logger.isInfoEnabled();
if(isLoggerInfoEnabled)logger.info("execute: processId = " + processId + "; eventId = " + eventId + "; orchestration = " + orchestration);
HashMap<String, Serializable> parameters = orchestration.getParameters();
logger.info("parameters = " + parameters );
RandomPasswordGeneratorImpl randomPasswordGenerator = new RandomPasswordGeneratorImpl();
char new_pwd[] = randomPasswordGenerator.generatePassword(new User(null));
String password = new String(new_pwd);
try{
um = Platform.getService(UserManager.class);
String userLogin= getParamaterValue(parameters, "User Login");
um.changePassword( userLogin, password.toCharArray(), true);
}catch (Exception e) {
if(logger.isErrorEnabled()) logger.error(e.getMessage());
if(logger.isErrorEnabled()) logger.error(" ", e);
return new EventResult();
public BulkEventResult execute(long processId, long eventId,BulkOrchestration bulkOrchestration) {
tcUserOperationsIntf userOperationsService=null;
UserManager um =null;
isLoggerInfoEnabled = logger.isInfoEnabled();
if(isLoggerInfoEnabled)logger.info("Bulk processId = " + processId + "; eventId = " + eventId + "; bulkOrchestration = " + bulkOrchestration);
um = Platform.getService(UserManager.class);
HashMap<String, Serializable>[] parametersArray = bulkOrchestration.getBulkParameters();
for(int i=0;i<parametersArray.length;i++)
HashMap<String, Serializable> parameters = parametersArray;
logger.info("parameters = " + parameters );
RandomPasswordGeneratorImpl randomPasswordGenerator = new RandomPasswordGeneratorImpl();
char new_pwd[] = randomPasswordGenerator.generatePassword(new User(null));
String password = new String(new_pwd);
try{
String userLogin = (String)parameters.get("User Login");
um.changePassword( userLogin, password.toCharArray(), true);
}catch (Exception e) {
if(logger.isErrorEnabled()) logger.error(e.getMessage());
if(logger.isErrorEnabled()) logger.error(" ", e);
return new BulkEventResult();
private String getParamaterValue(HashMap<String, Serializable> parameters, String key) {
String value = (parameters.get(key) instanceof ContextAware)
? (String) ((ContextAware) parameters.get(key)).getObjectValue()
: (String) parameters.get(key);
return value;
}

Similar Messages

  • Set default password for all users including csv file

    I would like to set the default password for all users
    including the ones imported in the csv file?
    Also now the default passwrd in set to the email address. How
    do i change that setting to the "login" setting in the csv file so
    those users can loin with that password?
    Kinda the same question but do yuo get the idea?
    Thank you,
    Chip

    You could download and install RCDefaultApp 2.1 for all users: check the Read Me and then test it on something to see if it accomplishes what you want.
    http://www.rubicode.com/Software/RCDefaultApp/

  • Set default Parameter ids for the users

    Can some one please tell me how to set PID and values(Parameter ids) which will default upon every user creation.
    thnx.

    hi syed,
    You can fill fields on screens with default values from SAP memory using parameter IDs. It is the same as SPA and GPA.
    Parameter IDs are stored in the table <b>TPARA</b>. They can be created from <b>SE80</b>. Choose Edit Object->Choose tabstrip "More" and then choose the radiobutton Set/Get Parameter ID
    Below example is from <b>SAP Help</b>.
    For example, a user only has authorization for company code 0001. By entering the value '0001' in field COCD in the Parameter register in this user’s master record (SU01), the system automatically fills the field Company code with the value ‘0001’ on all screens he or she calls. If this company code is not predetermined using a parameter ID in the user master record, the system automatically adopts the first value entered by the user at the beginning of the transaction for the rest of the current terminal session. However, this value has to be re-entered the next time the user logs on to the system.
    Regards
    Alfred
    <points_begging_removed_by_moderator>
    Message was edited by: Julius von dem Bussche

  • How to set FBL1N T code Layout to default to all the users using this T cod

    Dear Friends
    I have created a new layout by modifying the some of the fields in FBL1N T code output.  I want to set as default layout to all the users using this T Code. Is there any way we can set the  custom layout as default layout  to all the users.
    Presently Only I can see as default layout but  not the other users
    Thanks in Advance
    Thanks
    MVS

    Hi
    I have one above like issue but in FB03, I have been one layout as default using -lay admin when i come back and re execute the
    FB03 transaction  the default lay out not working directly every time i have to  "display as list from the" Go to" menu then only
    document showing as per lay out..I want  that lay out has to be work with out  going to Dispaly as list
    please advice me where i did wrong .its not working  even after the changes i log out the from the SAP and re login
    thanks
    Ranamka
    Edited by: Ranamka on Mar 10, 2011 9:59 PM

  • Setting Default Preferences for All Users in Crystal Reports Server 2008 v1

    We are currently looking to set the default preferences in the CMC for all of our users.
    I did locate this page Link: [How to set default preferences for all users in Infoview 3.1/CRS 2008]
    The first part of the thread did seem promising but I am unable to find the sample .jsp code that people recommended.
    I would assume that this scenario is common enough that someone knows a way to set universal preference defaults.
    Thank you

    I thought I could just run it too but when I attempt to I get a Windows Script Host error:
    Script: C:\User Prefs.vbs
    Line: 1
    Char: 1
    Error: Expected statement
    Code: 800A0400
    Source: Microsoft VBScript compilation error.
    I noticed the first most line seems to be markup for a web interface though I am not familiar with vbs so I may be wrong.  I used the publishing wizard to put the script on the CMC to attempt to run it through the CMC but it still does not work.

  • How to set up same timezone in BI Publisher for all the USERS?

    Hi Experts,
    My OBIEE version is 11.1.1.6.6  and any user can go into the My Account and then preferences  and set the timezone.
    But as an admin, i see they are too many users and wanted to setup common timezone for all of them.
    How do i setup common timezone in BI Publisher for all the users?
    Thanks
    Ashish

    Check
    Time Zone Specification from http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#4535403
    just in case https://blogs.oracle.com/xmlpublisher/entry/how_to_keep_your_dates_from_go

  • How to retrieve all the users along with their password from LDAP

    Hello,
    Can anyone let me know how to retrieve and list all the user along with their password from LDAP.
    Thanks

    Hi Prashant,
    I have limited experience with Synchronization, but I agree with you - if you need to synchronize Passwords, you need to have the Password in clear Text.
    If you trying to build your own Synchronization Solution using any of the avaliable LDAP APIs, I don't think you can ever retrieve a user's Password in clear text.
    However, I did come across an interesting article & I hope you find it useful :-
    http://www.oracle.com/technology/obe/obe_as_10g/im/configssl/configssl.htm
    I am not sure if SSL is necessary - If you have a look at Metalink Note 277382.1 ( How to Configure OID External Authentication Plug-In for Authentication Via Microsoft Active Directory (MS AD) ), teh question asked by oidspadi.sh for the same is asnwered as "N".
    Regards,
    Sandeep

  • Ecc6, after i've changed all the passwords for all oracle users, then how

    ECC6, after i've changed all the passwords for all oracle users, now sap can't connect to oracle , then,  How can i config the sap to make sure it can boot normal?
    If our database is sqlserver, i've changed the database password for all database users, then, How can i config the sap?
    Thanks!

    My db is oracle ,                           the oracle host name is dbserver.
    The sap ap server only install the SAP. SAP host name is apserver.
    Just now i've altered all the password of the oracle database db user account, Include the account "sys".
    (I must alter the password.)
    Now the SAP service in the host "apserver" can't boot.
    Could you teach me  how can i config the "apserver" to make the SAP normal boot ?
    Thanks!
    Best regards!

  • Command Line to change all the users passwords

    Hello there,
    I run Tiger Server. I want to change the password for 300 students from the command line to 1234 as a password for all the students. Is there any easy way to change all the password at once.
    Thanks,

    I changed it from WM. No terminal.

  • Setting Default Dashboard based on Groups/users in OBIEE 10g

    Hi,
    I am having a requirement and facing some issues with setting a default dashboard option to the users who ever access the application. Below is the brief description of entire requirement.
    The main requirement is to integrate OBIEE into a .net and silver light application. We will be having a 3 links in the .net application , which in turn displays the OBIEE reports and dashboards upon clicking the 3 links.
    We are using the concept of Init blocks, session variables and Go URL from an OBIEE standpoint for accomplishing this integration requirement. We have also configured LDAP server in OBIEE.
    The issue we are facing is out of the 3 links in .net application, we have one link/icon called dashboard icon which should display bunch of OBIEE dashboard pages in the form of 4 tabs but currently it is showing the My Dashboard home page. For this to achieve to set default dashboard page is to go to My account and change the default dashboard to the desired dashboard and log out and log in back to the application and we will be all set with dashboard pages being displayed upon lcking the dashboard icon but this is manual process for each user as they need to login into the .net application and change the setting s in My Account manually to change the default dashboard setting to the desired one.
    How should I make sure, whoever is logging into the Application (every user) should be able to see the default dashboard pages without changing the options manually by going to My Account.
    The LDAP server is taking care of the Authentication part of the users as every user record is maintained in Active directory which in turn is part of LDAP server.
    To brief high level requirement on single statement is  how to make a default dashboard pages to users based on group in OBIEE. Is there any option in OBIEE, where we can change or set a default dashboard to particular group in OBIEE either in RPD or UI level.
    Appreciate your help on this.
    Let me know if anyone needs any more information in this regard.
    Thank
    Praveen

    You can set 'PORTALPATH'. Have a look at these threads below:
    how to get default dashboards when users logs in
    Re: PORTALPATH for Each Group
    - Bharath

  • PreProcess Event Handler setting default password

    Greetings.
    We developed a custom preprocess event handler and is working fine, but I want to set a default password for a new user using the sentence orchestration.addParameter("Password","defaultpassword") However I got the message :
    <Error> <oracle.iam.identity.usermgmt.impl.handlers.create> <IAM-3050009> <Unknown attribute for entity user.
    oracle.iam.platform.entitymgr.UnknownAttributeException: User : [Password]
    I think that is necesary use a method like setXelleratePassword or something like that.
    How to set a default password in a preprocess event handler associated to the create user event?
    Thanks!

    Hi
    Try with this.
    Use orchestration.addParameter("USR_PASSWORD","defaultpassword")

  • How can all the users in my computer (my kids) have access to all the photos I have in I Photo?

    How can all the users in my computer (my kids) have access to all the photos I have in I Photo? My photos only appear when I (the administrator) log into the computer. I want my kids to be able to access them also.

    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • Query regarding the fields details in particular form for all the users in

    Dear All,
                  I have one query regarding the fields details in particular form for all the users in company.
    Let take an exapmle if i had created Purchase Order having fields in content tab as 1.Item No. 2.Quantity 3.Unit Proce   4.Total   5. Location.
    While Login in User manager i set these fields only for Purchase order , but when i login from other user and open the similar purchase order the defaults fields are also seen including  above 4 fieds .
    Now my question is how to set the User choice fiels for the particular form that are common to all users.
    Means whenever i login in any user and opens the same document the same fields should be seen....Thanksssss.........

    You have to login with each and every user and do the Form Settings of every forms, so that all the forms look same for all the users.
    This is a manual job and you have do do it with every user login.
    Alternately, you can try out this link that explains
    [How to Copy One Screen Layout to Another User|http://www.sbonotes.com/2008/03/how-to-copy-one-screen-layout-to.html]

  • HT1529 I have multiple users on my Mac and I was wondering how you tell the system to retain all the user names so they don't have to enter their email addresses every time ???

    I have multiple users on my Mac and I was wondering how you tell the system to retain all the user names so they don't have to enter their email addresses every time ???

    Email addresses into what?
    Each user should have their own account and password to log in.  Each is independent of the other.  So for Mail each has their own Mail account if they set one up in Mail. 
    That's the way it should be set up.  Are you using a single account and allowing multiple users to use that one single account?  If so then in Mail at least you could set up individual mail accounts.  But everything else in the system is shared.

  • When I download firefox, using recommended setting, or my own, all the sub files/folders like plugins, modules, updater end up on the desktop as well as in the file location. And when I try to put them into the file location, they don't. And when I delete

    When I download firefox, using recommended setting, or my own, all the sub files/folders like plugins, modules, updater end up on the desktop as well as in the file location. And when I try to put them into the file location, they don't. And when I delete them, FireFox won't open. I tried deleting FireFox and reinstalling it multiple times, and a message pops up sometimes that says FireFox may not have installed correctly, so I follow the steps, but all the extra icons on my desktop don't go away. This has happened every time I have downloaded FireFox. The browser itself works, but I need to know how to get rid of these icons, but still be able to use FireFox. This is on a new computer, with Windows 7.
    == I downloaded FireFox. ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6

    Managed to solve this myself. Just went to properties > hidden.

Maybe you are looking for

  • Bug in adjustment brush undo

    Select Adjustment Brush tool paint a mask switch to "Brush: Erase" paint away some mask ctrl-z (undo) tool switches back to "Brush: A" when it should stay on Erase

  • MS SQL Server 2000 migrate to Oracle 8

    Hi - i am trying to migrate 8 distinct databases from SQL Server 2000 to Oracle 8 using the Migration Assistant Utility. as i am new to Oracle, i am having some challenges. 1. do i need to migrate the SQL Server "Master" database first? 2. the Migrat

  • Creating a background sign?

    i have a scene taking place in a hollywood office, and i'd like to create a sign, like the hollywood sign behind them or maybe a bunch of buildings behind them. how do i do this? kinda new to fcp and studio....

  • Can we write %System.getProperty("CONFIG_MODE");% this stmt in EL or jstl

    Hi everyone, Can we write below statement in EL or jstl instead of using Scriplet. <%System.getProperty("CONFIG_MODE");%> Thanks, Nihar.T

  • What is Frostwire and why do I have it?

    A new item has suddenly appeared in my iTunes application- 'Frostwire'. I click on it, and get the message 'the shared library, Jonathan's Frostwire tunes, is not compatible with this version of iTunes' (which for the record is V 8.0). Well, great. I