Login
Register

Home

Trainings

Fusion Blog

EBS Blog

Authors

CONTACT US

Oracle Scripts
  • Register

Oracle Gold Partners, our very popular training packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

webinar new

Search Courses

You can use this SQL Script to create a FND_USER for any Technical Developer that joins your team.
This simple script will set all the desired admin responsibilities and all common profile options for a given FND_USER.
Salient features of this simple script are
1. If a user is inactive, that FND_USER will be re-activated
2. If any of their Sysadmin or WF Admin or Application Developer or Functional Admin responsibilities are inactive, those responsibilities will be re-activated
3. Add commonly used responsibilities will be assigned to the user
3. Personalization, Diagnostic and Utilities profile options will be assigned to this user.
4. Password expiration will be removed from the FND_USER


In a nutshell, use this script to enable a user and to enable all their administrator responsibilities.
This script can be run as many times for any given user.
In case a user does not exist, then new user will be created with default password being oracle123

 



Please find the script below


Save this as a SQL File, and it will prompt for parameter User Name



DECLARE
  --By: Anil Passi
  --When Jun-2007
  v_session_id INTEGER := userenv('sessionid');
  v_user_name  VARCHAR2(30) := upper('&Enter_User_Name');
  result    BOOLEAN;
  v_user_id INTEGER;

  FUNCTION check_fu_name(p_user_name IN VARCHAR2) RETURN BOOLEAN IS
    CURSOR c_check IS
      SELECT 'x' FROM fnd_user WHERE user_name = p_user_name;
    p_check c_check%ROWTYPE;
  BEGIN
    OPEN c_check;
    FETCH c_check
      INTO p_check;
    IF c_check%FOUND
    THEN
      /*Yes, it exists*/
      CLOSE c_check;
      RETURN TRUE;
    END IF;
    CLOSE c_check;
    RETURN FALSE;
  END check_fu_name;

BEGIN
  IF NOT (check_fu_name(p_user_name => v_user_name))
  THEN
    fnd_user_pkg.createuser(x_user_name                  => v_user_name
                           ,x_owner                      => ''
                           ,x_unencrypted_password       => 'oracle123'
                           ,x_session_number             => v_session_id
                           ,x_start_date                 => SYSDATE - 10
                           ,x_end_date                   => SYSDATE + 100
                           ,x_last_logon_date            => SYSDATE - 10
                           ,x_description                => 'Anil Passi'
                           ,x_password_date              => SYSDATE - 10
                           ,x_password_accesses_left     => 10000
                           ,x_password_lifespan_accesses => 10000
                           ,x_password_lifespan_days     => 10000
                           ,x_employee_id                => NULL /*Change this id by running below SQL*/
                            /*   
                                                             SELECT person_id
                                                                   ,full_name
                                                             FROM   per_all_people_f
                                                             WHERE  upper(full_name) LIKE '%' || upper('<ampersand>full_name') || '%'
                                                             GROUP  BY person_id
                                                                      ,full_name
                                                             */
                           ,x_email_address => This email address is being protected from spambots. You need JavaScript enabled to view it.'
                           ,x_fax           => ''
                           ,x_customer_id   => ''
                           ,x_supplier_id   => '');
   dbms_output.put_line ( 'FND_USER Created' ) ;
  ELSE
    fnd_user_pkg.updateuser(x_user_name                  => v_user_name
                           ,x_owner                      => 'CUST'
                           ,x_end_date                   => fnd_user_pkg.null_date
                           ,x_password_date              => SYSDATE - 10
                           ,x_password_accesses_left     => 10000
                           ,x_password_lifespan_accesses => 10000
                           ,x_password_lifespan_days     => 10000);
   dbms_output.put_line ( 'End Date removed from FND_USER ' ) ;                          
  END IF;
  SELECT user_id
    INTO v_user_id
    FROM fnd_user
   WHERE user_name = v_user_name;
  fnd_user_pkg.addresp(username       => v_user_name
                      ,resp_app       => 'FND'
                      ,resp_key       => 'FND_FUNC_ADMIN'
                      ,security_group => 'STANDARD'
                      ,description    => 'Anil Passi apps2fusion.com'
                      ,start_date     => SYSDATE - 1
                      ,end_date       => SYSDATE + 10000);
  fnd_user_pkg.addresp(username       => v_user_name
                      ,resp_app       => 'SYSADMIN'
                      ,resp_key       => 'SYSTEM_ADMINISTRATOR'
                      ,security_group => 'STANDARD'
                      ,description    => 'Anil Passi apps2fusion.com'
                      ,start_date     => SYSDATE - 1
                      ,end_date       => SYSDATE + 10000);
  fnd_user_pkg.addresp(username       => v_user_name
                      ,resp_app       => 'FND'
                      ,resp_key       => 'FNDWF_ADMIN_WEB'
                      ,security_group => 'STANDARD'
                      ,description    => 'Anil Passi apps2fusion.com'
                      ,start_date     => SYSDATE - 1
                      ,end_date       => SYSDATE + 10000);
  fnd_user_pkg.addresp(username       => v_user_name
                      ,resp_app       => 'FND'
                      ,resp_key       => 'APPLICATION_DEVELOPER'
                      ,security_group => 'STANDARD'
                      ,description    => 'Anil Passi apps2fusion.com'
                      ,start_date     => SYSDATE - 1
                      ,end_date       => SYSDATE + 10000);
 
    fnd_user_pkg.addresp(username       => v_user_name,
                       resp_app       => 'ICX',
                       resp_key       => 'PREFERENCES',
                       security_group => 'STANDARD',
                       description    => 'Anil Passi apps2fusion.com',
                       start_date     => sysdate - 1,
                       end_date       => null);

 result := fnd_profile.save(x_name        => 'APPS_SSO_LOCAL_LOGIN'
                            ,x_value       => 'BOTH'
                            ,x_level_name  => 'USER'
                            ,x_level_value => v_user_id);

 result := fnd_profile.save(x_name        => 'FND_CUSTOM_OA_DEFINTION'
                            ,x_value       => 'Y'
                            ,x_level_name  => 'USER'
                            ,x_level_value => v_user_id);

 result := fnd_profile.save(x_name        => 'FND_DIAGNOSTICS'
                            ,x_value       => 'Y'
                            ,x_level_name  => 'USER'
                            ,x_level_value => v_user_id);

 result := fnd_profile.save(x_name        => 'DIAGNOSTICS'
                            ,x_value       => 'Y'
                            ,x_level_name  => 'USER'
                            ,x_level_value => v_user_id);

 result := fnd_profile.save(x_name        => 'FND_HIDE_DIAGNOSTICS'
                            ,x_value       => 'N'
                            ,x_level_name  => 'USER'
                            ,x_level_value => v_user_id);

                           
  COMMIT;
END;
/


Anil Passi

Comments   

0 #1 Francesco 2008-10-24 09:46
Thanks a lot for the script. Supersleek! ;D
Quote
0 #2 Mukunthan Lakshmanan 2008-10-24 12:58
Hi Anil,

This one is fantastic... but, i do have some small questions - kindly get them resolved!
In the FND_USERS table, the columns CREATED_BY and LAST_UPDATED_BY are NOT NULL columns - which I don't see being filled up, in the package above - fnd_user_pkg.cr eateuser. So, can you please tell me, what values will be defaulted there??

Thanks ,
Mukunthan L
Quote
0 #3 Anil Passi 2008-10-24 13:00
These will get defaulted from fnd_global.user _id for the session that runs the script.

You can set FND_GLOBAL variables by running the script below, or by running fnd_global.apps _initialize

Quote:

DECLARE
v_session_id INTEGER := userenv('sessionid') ;
BEGIN
dbms_application_info.set_client_info ( 101 ) ; --put ur org_id here

fnd_global.initialize
(
SESSION_ID=>v_session_id
,USER_ID =>18594
,RESP_ID =>4650125
,RESP_APPL_ID =>8402
,SECURITY_GROUP_ID =>0
,SITE_ID =>NULL
,LOGIN_ID =>3115003
,CONC_LOGIN_ID =>NULL
,PROG_APPL_ID =>NULL
,CONC_PROGRAM_ID =>NULL
,CONC_REQUEST_ID =>NULL
,CONC_PRIORITY_REQUEST =>NULL
) ;
commit ;
END ;
/


Thanks,
Anil Passi
Quote
0 #4 Anil Passi 2008-10-24 13:10
List of responsibilitie s added by this script are shown below
You can extend this script to add further responsibilitie s and user level profile option values.


Thanks,
Anil Passi
Quote
0 #5 Robert 2008-11-15 10:00
Hi Anil,

Could you please guide me for to get the apps password?.

For recover the pass for any user, we run the following query in the instance
SELECT USER_NAME , encrypted_found ation_password, encrypted_user_ password
FROM FND_USER
WHERE user_name LIKE upper('&usernam e')
OR user_name LIKE upper(
(SELECT
substr(fnd_prof ile.value('GUES T_USER_PWD'),1
,instr(fnd_prof ile.value('GUES T_USER_PWD'),'/ ')-1)
FROM dual)
)

And then, in other instance, we public the function "decrypt" within package FND_WEB_SEC.
Then, we run the following query for to get the pass for any user.
SELECT usertable.user_ name
, (SELECT
fnd_web_sec.dec rypt((
SELECT
fnd_web_sec.dec rypt(UPPER(
(SELECT upper(fnd_profi le.value('GUEST _USER_PWD')) FROM dual)
), :GUEST_found_pa ss)
FROM dual), :user_pass)
FROM dual) AS encrypted_user_ password
FROM fnd_user usertable
WHERE usertable.user_ name LIKE upper('&usernam e');

If we want to get the pass for apps user, can you please guide me how do it?

Thanks a lot.
Robert.
Quote
0 #6 chiku 2008-11-17 14:29
Hi Anil,

I needed some help with the fnd_user_pkg.de lresp.
We have some users assigned to a responsibility which they are not supposed to have.
How do I delete or end date the assignment of the responsibility without affecting or breaking anything.
I went through this api but I see some workflow related stuff. I fear I might break something if I use this api to delete the assigned responsibilitie s.
Could you please throw some light on this...

Thanks ,
Mona
Quote
0 #7 Anil Passi- 2008-11-17 14:34
Hi Mona

You should use API, as per below to end-date responsibility.
This will take care of everything, see sample below

fnd_user_pkg.ad dresp(username => v_user_name
,resp_app => 'SYSADMIN'
,resp_key => 'SYSTEM_ADMINIS TRATOR'
,security_group => 'STANDARD'
,description => 'Anil Passi apps2fusion.com '
,start_date => SYSDATE - 1
,end_date => SYSDATE ;

Thanks
Anil Passi
Quote
0 #8 Ram 2009-01-07 22:27
Hi! Anil,
I am trying to create user from other than APPS user using fnd_user_pkg.cr eateuser API. I gave neccessary grant privileges and also created synonyms.
I am able to create new user without any problem in one instance but in another instance with the same approach following error is displayed "ORA-20001: Custom
user name validation in subscription to event oracle.fnd.user .name.validate failed". Please let me know what might the problem.

Thank s,
Ram
Quote
0 #9 Anil Passi-- 2009-01-08 00:14
Some Subscription might be attached to event oracle.fnd.user .name.validate that is raising this error. This event is used to ensure that names of users comply with your company naming standards for a FND User
Quote
0 #10 Ram 2009-01-08 11:52
Hi! Anil,
Thanks for the quick response.
Can you please tell me where i can look for this subscription. But when we are trying to create from Apps forntend we are not getting this error.

Thanks,
Ram
Quote
0 #11 Saurabh Sonkusare 2009-03-22 04:14
Hi Anil,

First of all, thanks for the script.

I have a question. How can we utilize the same script (with some modifications) to register Suppliers as Users. This is mainly required for iSupplier User Registration but we are unable to find any API related to that.

We have IBM AIX server, Oracle 11.5.10.

Regar ds,
Saurabh
Quote
0 #12 Anil Passi- 2009-03-22 04:22
Login to "Supplier user Administrator" Responsibility and this is an OA Framework page. Enable tracing using diagnostics menu.
Setup a user account in that responsibility and see the trace files for the API's used by Oracle.
I believe it is fnd_user_pkg itself and Oracle might be passing customer_id paramter when creating the username.

But you can doublecheck that using the trace file.

Thanks,
Anil Passi
Quote
0 #13 Vyaghresh 2009-10-21 23:49
Hi,

I wnat to list the users having more than one OU Responsibilitie s attached.
E.g Assume there are three Users A, B and C, User A have two responsibilitie s belongs to OU1 and User B have two responsibilitie s belongs to OU2 but user C have two responsibilitie s one belongs to OU1 and another belongs to Ou2.
Now i need to list only the User C.
Please assist me how to proceed with this.
Oracle Release : 11510
Quote
0 #14 Prakash Sharma 2011-01-24 07:30
Hi Anil,

FNDLOAD User miration doesn't migrate personal information, Only user name and assigned responsibilitie s.
Is this possible to migrate associate person with the user through FND_USER_PKG API.
If yes.. could you plz explain me.
Quote
0 #15 Anika Ranjan 2011-01-24 12:52
Hi Anil,

I have migrated users and responsibility through FNDLOAD script, but the password for the users is not getting migrated.
I have checked the ldt files and they dont contain passwod information for the users.
I have also checked the fnd_user table and the end_date for the users is set to null.
I am not able to understand why FNDLOAD is not able to pick the passwod information. Please guide me in this regard.

Thanks ,
Anika
Quote
0 #16 Nikhilmistry 2011-04-20 16:56
Hi Anil,
does oracle apps has any function which we can use when any of the FND_USER's password get changed DBA (management_ get alert?

Nikhil
Quote
0 #17 SD 2011-07-27 02:07
HI Anil,

I have a requirement where I have to end-date responsibility and then re-instate the same responsiblities . Can you please guide me how this can be done with above package.
Quote
0 #18 SB 2012-04-21 03:18
Hi Anil,
I want to delete a user . Could you please let me know how I can do that. One quick question Other than Inactivate Cann't we delete a user?
Quote
0 #19 Pasha 2012-08-14 09:24
Hi Anil,

Our test EBS sysadmin got locked out. How can I unlock it ??

Regards
Pas ha
Quote
0 #20 hegn til haven 2021-06-02 17:59
You ought to take part in a contest for one of the best websites online.
I am going to recommend this blog!
Quote
0 #21 Jefferson 2021-06-13 05:29
I like what you guys tend to be up too. This kind of clever work
and reporting! Keep up the very good works guys I've incorporated you guys to blogroll.
Quote
0 #22 Luttersville.Com 2021-06-22 17:54
Besproei de palmboom elke week met water, tijdens de lente/herfst en de avonden van de zomer.Besproei de palm elke week met vocht, tijdens
de herfst of lente plus de avondjes van de
zomers.

Stop by my blog :: Luttersville.Co m: http://Luttersville.com/trachycarpus-1358/
Quote
0 #23 best link building 2021-07-11 03:56
Good day! Do you know if they make any plugins to safeguard against hackers?
I'm kinda paranoid about losing everything I've worked hard on.
Any recommendations ?
Quote
0 #24 Alisa 2021-07-18 06:05
Can you tell us more about this? I'd like to find out
more details.
Quote
0 #25 TheresaLiene 2021-08-02 06:52
And that as a result..

circumspection
milk farm hentai
Quote
0 #26 Komposit havehegn 2021-08-08 15:03
Hi, i think that i saw you visited my web site thus i came to “return the favor”.I am trying to find things to enhance my
website!I suppose its ok to use a few of your ideas!!
Quote
0 #27 MarilynRam 2021-08-09 21:09
I think, that you are not right. I am assured. Write to me in PM.

guardianship
tickle central videos
Quote
0 #28 one punch man תרגום 2022-01-27 05:52
It's very straightforward to find out any matter on net as compared to textbooks,
as I found this post at this website.
Quote
0 #29 jesenna moda 2017 2022-01-31 09:01
WOW just what I was looking for. Came here by searching for наталья сивец
Quote
0 #30 irrijardin vallauris 2022-02-02 07:30
Ꭺppreciate tһіs post. Ꮤill try it out.
Quote
0 #31 bakt kveite i ovn 2022-02-07 11:57
Amazing blog! Is your theme custom made or did
you download it from somewhere? A design like yours with a few simple tweeks would really make my blog stand out.
Please let me know where you got your theme.
Thanks a lot
Quote
0 #32 อิควอไลเซอร์ 2022-02-10 23:12
It's an awesome paragraph in favor of all the online users; they will take benefit from it I am sure.
Quote
0 #33 унимил 2022-02-18 20:47
We stumbled over here from a different web address and thought
I might check things out. I like what I see so now i am following you.
Look forward to finding out about your web page for a second time.
Quote
0 #34 кверти клавиатура 2022-02-21 10:56
Today, I went to the beachfront with my children. I found a sea shell
and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She put the shell
to her ear and screamed. There was a hermit crab inside and it pinched her ear.

She never wants to go back! LoL I know this is totally off topic but I had to tell someone!
Quote
0 #35 pico projektor 2022-02-22 10:48
Wonderful site. Lots of useful information here.
I'm sending it to some buddies ans additionally sharing in delicious.
And certainly, thanks to your sweat!
Quote
0 #36 דאקירי מתכון 2022-02-23 11:32
Hi mates, how is the whole thing, and what you would like to say on the
topic of this post, in my view its actually awesome for me.
Quote
0 #37 pubg レート確認 2022-02-25 12:12
Hi there, You have done a great job. I'll certainly digg it
and personally recommend to my friends. I am sure they will be benefited from this website.
Quote
0 #38 adele vikt 2022-02-26 15:16
What's up to all, how is everything, I think every
one is getting more from this website, and your views are nice designed
for new visitors.
Quote
0 #39 1254732000 2022-02-27 10:30
Whats up very cool site!! Guy .. Excellent .. Superb ..
I will bookmark your web site and take the feeds additionally?
I'm glad to find a lot of helpful information right here in the
publish, we'd like work out extra techniques in this
regard, thanks for sharing. . . . . .
Quote
0 #40 1ти си акорди 2022-02-28 19:26
I am not sure where you are getting your info, but great topic.
I needs to spend some time learning much more or understanding more.
Thanks for great information I was looking for this info for my
mission.
Quote
0 #41 msi gtx 970 ราคา 2022-03-15 14:58
It's perfect time to make some plans for the future and it is time
to be happy. I've read this post and if I could I want
to suggest you few interesting things or tips. Maybe you
could write next articles referring to this article. I desire to read even more
things about it!
Quote
0 #42 chrome jarak jauh 2022-03-16 19:47
Hi to all, how is everything, I think every one is getting more from this site, and your views are pleasant for
new visitors.
Quote
0 #43 google vertejad 2022-03-29 17:53
Undeniably consider that which you stated. Your favorite reason appeared to be on the internet the easiest thing to have in mind of.
I say to you, I definitely get irked even as folks think about concerns that they just do not recognize about.
You controlled to hit the nail upon the highest as smartly as defined out the whole thing
with no need side effect , other people could take a signal.
Will probably be again to get more. Thank you
Quote
0 #44 2800 dollar sek 2022-04-19 03:58
For newest information you have to go to see internet and on web
I found this website as a finest site for latest updates.
Quote
0 #45 larawan ng bayabas 2022-04-19 14:30
This is the right webpage for anyone who really wants
to find out about this topic. You realize a whole lot its almost hard to argue with you
(not that I actually will need to…HaHa). You certainly put a fresh spin on a subject that's
been written about for a long time. Excellent stuff, just excellent!
Quote
0 #46 48801400373 2022-04-28 23:17
Pretty component of content. I simply stumbled
upon your site and in accession capital to assert that I get in fact enjoyed account your weblog posts.
Any way I will be subscribing on your augment and even I fulfillment you get admission to consistently quickly.
Quote
0 #47 miawaug horror game 2022-05-02 17:20
Great post. I used to be checking continuously this weblog and
I am impressed! Extremely useful information specially the remaining section :
) I handle such information a lot. I was seeking this certain info for a
very lengthy time. Thanks and best of luck.
Quote
0 #48 anthem update märz 2022-05-05 23:47
I don't know whether it's just me or if everybody else encountering problems with your blog.
It seems like some of the written text within your posts are running off the screen. Can somebody else please comment and let me know if this is happening
to them too? This may be a problem with my web browser because I've
had this happen before. Kudos
Quote
0 #49 нийл гейман 2022-05-09 23:30
This is a topic which is near to my heart... Cheers!
Where are your contact details though?
Quote
0 #50 norsunjalka 2022-05-16 13:51
Hi, everything is going perfectly here and ofcourse every one is sharing information, that's in fact fine, keep up writing.
Quote
0 #51 bahaya paramex 2022-05-16 22:27
Way cool! Some very valid points! I appreciate you penning this article plus the rest of the site is
very good.
Quote
0 #52 аманда пийт 2022-06-09 20:06
Hello there! Would you mind if I share your blog with my zynga group?
There's a lot of people that I think would really
enjoy your content. Please let me know. Thank you
Quote
0 #53 essayssolution.com 2022-09-18 08:11
Good day! I know this is kinda off topic but I was wondering which blog platform are
you using for this website? I'm getting fed up of Wordpress because I've had problems with
hackers and I'm looking at options for another platform. I
would be great if you could point me in the direction of a good platform.
Quote

Add comment


Security code
Refresh

Search Trainings

Fully verifiable testimonials

Apps2Fusion - Event List

<<  Apr 2024  >>
 Mon  Tue  Wed  Thu  Fri  Sat  Sun 
  1  2  3  4  5  6  7
  8  91011121314
15161718192021
22232425262728
2930     

Enquire For Training

Related Items

Fusion Training Packages

Get Email Updates


Powered by Google FeedBurner