wwv_flow_fnd_user_api.edit_fnd_user to set the change of password on first use

Hello

Oracle Database 11 g Release 11.2.0.1.0 under Windows 2008 R2 x 64
Request Express 4.1.0.00.32

I import a workspace of our dev system to 100 databases and I want to make sure that developers are not required to change password on the first loging, otherwise it will lose a lot of time

I am running

ALTER session set current_schema = APEX_040100;

Start
wwv_flow_security.g_security_group_id: = 10;
wwv_flow_security. G_user: = "ADMIN";
wwv_flow_security.g_import_in_progress: = true;

for r in (select *)
of apex_040100.wwv_flow_fnd_user
where security_group_id <>10) loop
wwv_flow_fnd_user_api.edit_fnd_user (p_user_id = > r.user_id,)
p_user_name = > r.user_name,
p_change_password_on_first_use = > 'n',.
p_first_password_use_occurred = > 'Y');
end loop;

commit;

wwv_flow_security.g_import_in_progress: = false;
end;

However, this does not seem to do anything and does not return an error. When I query the table of apex_040100.wwv_flow_fnd_user nothing has changed

I searched the documentation of the APEX (http://docs.oracle.com/cd/E23903_01/welcome.html) for wwv_flow_fnd_user_api , and there is only a single match which lists just the name of the package, not even the specification

Thanks in advance

Robert

OK now, I had a little more time to look at your code.

I would like this:

declare
  t_secgrp_id     apex_040100.apex_applications.workspace_id%type;
  t_existing_appl apex_040100.apex_applications.application_id%type := ;
begin

  select workspace_id
  into   t_secgrp_id
  from   apex_applications
  where  application_id = t_existing_app;  

  wwv_flow_security.g_security_group_id := t_secgrp_id;
  wwv_flow_security.g_user := 'ADMIN';
  wwv_flow_security.g_import_in_progress := true;

  for r in (select *
            from apex_040100.wwv_flow_fnd_user
            where security_group_id t_secgrp_id)
  loop
    wwv_flow_fnd_user_api.edit_fnd_user(p_user_id                      => r.user_id,
                                        p_user_name                    => r.user_name,
                                        p_change_password_on_first_use => 'N',
                                        p_first_password_use_occurred  => 'Y');
  end loop;

  commit;

  wwv_flow_security.g_import_in_progress := false;

end;

see especially the secgrp...

Kind regards
Richard

-----
blog: http://blog.warp11.nl
Twitter: @rhjmartens
If you answer this question, please mark the thread as closed and give points where won...

Tags: Database

Similar Questions

  • Set the option 'Require the change of password on first use'.

    I can't get the option 'Require the change of password on first use' for an end user.
    I go to 'Manage the Application Express Users', enter and confirm a new password and choose Yes to 'Require change of password on first use', and then apply the changes. But still, it does not prompt the user to change passwords to log in. I also tried the account, then making the changes described above to lock and then unlock it, but which doesn't work anymore. Any ideas on what's not here?

    Patrick,

    When an account has the attribute to change password on first use , the user is presented with the dialog box password change only after creating a new account or when the administrator of the site use the link "Reset" at home > manage workspaces > manage developers and users, causing the password be changed and sent to the user. Regardless of whether the account has the attribute to change password on first use , the user is also presented with the password change dialog box when the account has expired, following the expiration of the explicit account by an administrator of site or workspace or of time passing.

    In all cases, the requirements to 'change' the password is really just a requirement to enter the old password and enter a new password (twice), which may be the same as the old password, condition that is not inconsistent with history of password restrictions created for the workspace.

    Scott

  • Apex 4.2 requires modification of the password on first use

    Hi, I use apex 4.2 linux oc4j 11 GR 2

    I have a 4.2 workspace in which I created several apex end user and I have set them up with temporary password. And require the change of password on first use is selected to YES.

    Shared component logo setting / configuration of thecompan identification process.

    declare

    Boolean val ;

    Start

    if  APEX_UTIL. CURRENT_USER_IN_GROUP() p_group_name = > 'HILL') then

    : CMP_IMG:= ' HILL. PNG';

    : COMPANYID := 2;

    : NAVIGATION_PAGE := 11;

    ELSIF APEX_UTIL. CURRENT_USER_IN_GROUP() p_group_name = > 'UCI'() then

    : CMP_IMG:= "UCI.png";

    : COMPANYID:= 1;

    : NAVIGATION_PAGE := 11;

    ELSIF APEX_UTIL. CURRENT_USER_IN_GROUP() p_group_name = > "PAUL") then

    : CMP_IMG:='PF. png';

    : COMPANYID := 4;

    : NAVIGATION_PAGE := 11;

    ELSIF APEX_UTIL. CURRENT_USER_IN_GROUP() p_group_name = > ' 'HERE') then '.

    : CMP_IMG:=' HERE. PNG';

    : COMPANYID := 3;

    : NAVIGATION_PAGE := 11;

    ELSIF APEX_UTIL. CURRENT_USER_IN_GROUP() p_group_name = > 'TODS') then

    : CMP_IMG:='. tods png';

    : COMPANYID := 5;

    : NAVIGATION_PAGE := 11;

    else : CMP_IMG:=' MCO. png' ; : NAVIGATION_PAGE := 14;

    end if;

    end;



    Login page


    wwv_flow_custom_auth_std. logon

    (P_UNAME = > :P101_USERNAME,)

    P_PASSWORD = > :P101_PASSWORD,.

    P_SESSION_ID = > v() "APP_SESSION").

    P_FLOW_PAGE = > :APP_ID |': ' | : NAVIGATION_PAGE);



    Problem 1. After my initial connection it never pop-up/navigation to the password reset page.

    Problem 2 I gave instruction to the end-user with screenshots to tell them to go to /f? p = 4550:7 where they enter an email address and user name to reset the password.

    Previously, he worked smoothly...  Lately email stuck in the queue. And should be sent with the force.

    Error ORA-27492: cannot run the "APEX_040200.ORACLE_APEX_MAIL_QUEUE" work: not available Scheduler

    It is a problem of 4.2 or I'm missing some parameters.

    Thanks for your time in advance.

    For problem 2 Alter system set job_queue_processes = 1000; It works fine now.

  • Need to change password on first use - Apex does not

    Hello

    I create a user (not a butend developer) in the Apex. While connect for the first time, its not asking to change the password when connecting for the first time.
    I change the option of

    'Require the change of password on first use'-'yes '.


    Thanks in advance

    You need the updated version of the APEX 4.0.2.00.07: http://www.oracle.com/technetwork/developer-tools/apex/application-express/402-patch-189110.html#CHDCHDEE

    This will fix this issue.

    Best regards

    Tobias

  • Change password on first use

    When I create my user page manage users of Express of Application I put the 'require change of password on first use' to yes. It works fine for all users trying to get into the constructor. They put in the workspace name, Id, and password and be re-directed to the change password page. However, all normal users that URL to the right of the login page, do not get invited to change their password. Why is this?

    Hello

    You need something like

    owa_util.redirect_url('f?p=' || v('APP_ID') || ':CHANGE_PASSWORD:' || v('APP_SESSION') || ':::');
    

    Kind regards
    Jari

  • Definition of attributes based on the change of password

    Hello

    I have a requirement where if the administrator changes the password of a user to the IOM, I need set a particular attribute in the directory server, but if the user changes his password, I need to delete it. Could someone please tell me how can I capture that has changed the password and then set this attribute in the DS?

    Thank you
    PETREA

    It will give the details of the profile for the user that triggered the change of password.

    Ideally, you should plug the API code in the task where you try to define attributes in the DS.

  • I've recently updated my Apple ID (including the change of password). However, could not connect to iTunes to update the applications or make purchases. Any help?

    I've recently updated my Apple ID (including the change of password). However, could not connect to the iTunes Store to update the applications or make purchases. Any help?

    Have you tried a forced reboot? Hold down the home and Sleep/Wake buttons simultaneously for about 15-20 seconds , until the Apple logo appears. You won't lose anything.

    Then sign out of the iTunes Store and reconnect.

  • Problems of the change of password for my iMac

    I'm finishing the change of password for my iMac in early 2014 running on the latest version of El Capitan.

    When the opening up of the procedure is finished, I get a message in the upper right of the home screen of the iMac. The message says that I need to enter my new password to complete the amendment of the code of procedure. I can either click on "enter new password" or "delete" message. I tried to click on the two, but nothing happens except the message disappears.

    It's all quite strange that I have to use the new password to open the iMac for use and it recognizes the new password, if I try to change the password once more.

    Can someone tell what I am doing wrong or where I need to enter the password to complete the password change procedure. Thank you!

    This problem has not yet someone can help please?

  • My BTinternet said I'd or incorrect password since the change of password on it and Apple ID. The login and password are both correct

    I changed my password on Apple ID yesterday she rejected my old man an OK. Then forced me to change my password BTinternet for mail, she will not now send mail showing the username or password are incorrect. They are correct and I can receive messages but not send.

    If you have updated your password to your email account then you have successfully updated for the outgoing and incoming server? Update outbound or tap on the email in settings > Mail, Contacts, calendars; then press the account name in the following screen; then "SMTP" (under the title of outgoing e-mail server); name of the primary server; and the tap and update the password.

    Or delete the email account and add it back

  • Get the error "Failed to change the network provider password" after having used the change an option of network after Ctrl alt delete password

    Hello

    I don't know what is the use of this option called "change a network password".i have windows 2008 domain infrastructure.
    All client computers are in the other domain and accessing drives on the part of the domain that I made it through with a one-way trust.
    Can users change their passwords to access the reader to share through change a network password option? If Yes? I'm unable to change the password by using this option.
    Any help will be appreciated.
    Thank you

    Hello

    The question you have posted is linked to the domain network and would be better suited to the TechNet support. I suggest you to report the problem in the TechNet support for more information.

    http://social.technet.Microsoft.com/forums/en-us/newThread?category=WindowsServer&Forum=winserverfiles

    If you have other problems with Windows, please post in the Microsoft Community. We would be happy to help you.

  • Implications of the changing user passwords

    Hi all
    We review our security policy and came across some DB users with default passwords.

    APPLSYSPUB
    JUNK_PS
    OWAPUB
    SSOSDK

    First of all, I would like to ask if there are implications of evolution using FNDCPASS, second password that users cannot be changed without impact and precautions if there is place?

    Thank you
    Burak

    Burak;

    For APPS, APPLSYS and APPLSYSPUB please use FNDPASS utulity

    Topic: How change Oracle Applications Release 12 passes using the Doc Oracle Apps schema password change Utility (FNDCPASS) - ID: 437260.1
    437260.1 - how to change Oracle Applications Release 12 passes using the Oracle Apps schema password change Utility (FNDCPASS)
    MOS 159244.1 Doc - how to use FNDCPASS to change the Oracle, APPS, APPLSYS users and application passwords Module (INV, AR, AP, etc.) For the Applications 11.5
    Note: 160337.1 - How do I manually change applications, the APPLSYS and passwords APPLSYSPUB in the Oracle Applications

    For others, please see:
    When you run FNDCPASS with Option of ALLORACLE why it does not all user passwords? [456838.1 ID]
    Best practices for securing Oracle E-Business Suite Release 12 [403537.1 ID]
    Best practices for securing of the E-Business Suite [ID 189367.1]

    Respect of
    HELIOS

  • How to set the database user password never expires

    Hi all

    I have a server linux with Oracle 11 g installed that is used primarily to test a few developers and QA people. I want to put the DB user password never expires. I ran the following (which works on a windows machine), but the password still shows that it will be completed in 7 days. Is there anything else I can do to "force" the pw to infinity? I tried to stop closing the DB, stop / restart the listener...

    ALTER DEFAULT PROFILE LIMIT PASSWORD_LIFE_TIME UNLIMITED;
    Select * from dba_profiles where the profile = 'DEFAULT' and AS "PASSWORD_LIFE_TIME" resource_name
    'PROFILE' 'RESOURCE_NAME' 'RESOURCE_TYPE' 'LIMIT '.
    'DEFAULT' 'PASSWORD_LIFE_TIME","PASSWORD""UNLIMITED ".

    Select the profile from dba_users where username = 'TEST ';
    'PROFILE '.
    'BY DEFAULT'

    Select the username, account_status, to_char (expiry_date, 'DD-MM-YYYY') date_exp from dba_users where username = 'TEST ';
    "USERNAME", "ACCOUNT_STATUS" "DATE_EXP.
    «TEST' «OPEN ' «»

    Help appreciated.

    This error is given when the PASSWORD_LIFE_TIME expires and the duration of the period of grace begins

    "PASSWORD_GRACE_TIME" "PASSWORD" "UNLIMITED"
    

    change PASSWORD_GRACE_TIME 0,.

  • Cannot use editiable 'form' on App fields when the document is password protected. Used to be able to...

    We have created manuals on Adobe Pro which has fields to fill in edit for notes and it is password protected. Everything seemed to work perfectly on PC and Mobile Devices until this past weekend when we noticed that on mobile device, edit the fields are locked. The security settings are defined for the user to change the editable fields.

    Hello

    When the password is applied to a PDF document, the PDF document will be encrypted.

    Acrobat Reader mobile products (for iOS, Android, Windows Phone) have the known limit where the changes cannot be saved in encrypted PDF documents.  As a result, users are not able to make any changes (for example to fill in forms or add annotations/comments) to encrypted PDF documents.

    As you already know, there is no such limitation in the desktop version of Adobe Reader or Acrobat.

    Sorry for the inconvenience.

  • Unable to set the paper size at all when using Firefox built-in PDF Viewer

    I use the built-in Firefox pdf viewer and it's fab.

    But if I try to print, I go to the preview before print and go through the layout and it is useless, because it assumes that my book is almost SQUARE, and the only options I have are portrait and landscape. I use A4 paper, like most of the British and European.

    Of course, I can't work around the preview before printing or that it ends up in the wrong settings by default.

    Adjust (default), it is only based on the width (if I set the margins to zero - it's okay), but lacks the lower half of the page because Firefox think my paper is the PLACE for a reason any.

    The only thing that works is to set the zoom to print at 60% and have tiny everthing, which is ridiculous.

    Any ideas? Is it possible to manually set the width and height of the paper?

    Thanks if anyone can help with this - my alternative is to use the Toshiba reader of PDF files, and it prints terribly to be unreadable. The print quality on Firefox is fine, if I could get to fit on paper...

    Hmm, in your screenshots, why mention the title bar of the window Yahoo mail? Is it an attachment that is somehow embedded in the message? If so, can you find a way to see it in its own tab? Sometimes with the right button > setting > Open Frame in a new tab will do, but I did not open Yahoo Mail to experiment.

  • HP Pavilion 17 Laptop: How I PERMANENTLY set the clickpad to disable when you use a mouse?

    I know how to go into the settings and change so that the clickpad is disabled when the mouse is in use.  I leave the mouse plugged all the time because I don't like the clickpad.  However, I have to disable the clickpad whenever I restart the computer.  As if by magic, the parameter disappears whenever the computer is turned off.  I want him to stay permanently.  How to make that happen.

    It is important here to ensure that you do not change ANYTHING else (don't hit the DELETE key on anything)

    OK, right click on start, then run
    type: Regedit

    hit return on your keyboard

    Yes, there are a LOT of things here, but it is organized.

    you have the menu at the top, you want to hit edit and then find

    type: DeleteUserSettingsOnUpgrade

    If you look at the bottom of the regedit window, you will see the location, and MUST say: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Synaptics\SynTP\Install

    If Yes, then on the right side (in regedit window), you do a right click on the DeleteUserSettingsOnUpgrade, and click on edit.    Change a 1 to 0.

    The logic here is the 1 means 'yes', a 0 would mean no..   We do NOT want the user settings to remove on the upgrade, so that we modify the value.

    Once you make the change and press 0, you can go out, and that will solve the problem.    Note that you must always indicate the pilots to turn off the touchpad when an external pointing device is connected if you don't have already done.

    The advantage of doing this, rather than turn off the touchpad, is that you can unplug your mouse to travel, and you don't have to make time before changes.

Maybe you are looking for