How To Add Responsibility to USER using pl/sql? – Oracle Applications

Posted by Jiltin     20 April, 2009    10,473 views   

If you have the Apps Password, its quite easy to create a FND_USER for yourself by using the API. I find this script very useful when development environment gets cloned from Production(that is when i do not have FND_USER in Production).

Please note that:-
1. You will be allocated System Administrator by this script. Hence you can assign whatever responsibilities that you desire latter, after logging in.
2. The password will be set to oracle
3. You need apps password to run this script. Alternately you need execute permission on fnd_user_pkg from the user where this script will be run. If using some other user, please use apps.fnd_user_pkg.createuser
4. You need a COMMIT. I have not included the commit within this script.
5. When running this script, you will be prompted to enter a user name.

Using the pl/sql you can add responsibility to any USER without having Application System Administrator Rights.
First, get value for ‘Responsablity_Application_Short_Name’ and ‘Responsibility_Key’ Parameters you need to run following sql Statement by Using APPS User Name

SELECT FAV.APPLICATION_SHORT_NAME, FAV.APPLICATION_NAME,FRV.RESPONSIBILITY_KEY, FRV.RESPONSIBILITY_NAME
FROM FND_APPLICATION_VL FAV, FND_RESPONSIBILITY_VL FRV
WHERE FRV.APPLICATION_ID=FAV.APPLICATION_ID
ORDER BY FRV.RESPONSIBILITY_NAME

To add Responsibility of “Receivables Manager” to User Jiltin

BEGIN
        fnd_user_pkg.addresp (‘JILTIN’,‘AR’,‘RECEIVABLES_MANAGER’,‘STANDARD’,‘Add Responsibility to USER using pl/sql’,SYSDATE,SYSDATE + 100);
        COMMIT;
        DBMS_OUTPUT.put_line (‘Responsibility Added Successfully’);
EXCEPTION
        WHEN OTHERS
        THEN
        DBMS_OUTPUT.put_line (   ‘ Responsibility is not added due to ‘ SQLCODE SUBSTR (SQLERRM, 1, 100));
        ROLLBACK;
END;

Another sample script to add System Administrator

DECLARE
v_session_id INTEGER := userenv(’sessionid’);
v_user_name VARCHAR2(30) := upper(‘&Enter_User_Name’);
BEGIN
–Note, can be executed only when you have apps password.
– Call the procedure to Creaet FND User
fnd_user_pkg.createuser(x_user_name => v_user_name
,x_owner =>
,x_unencrypted_password => ‘oracle’
,x_session_number => v_session_id
,x_start_date => SYSDATE – 10
,x_end_date => SYSDATE + 100
,x_last_logon_date => SYSDATE – 10
,x_description => ‘www.notesbit.com’
,x_password_date => SYSDATE – 10
,x_password_accesses_left => 10000
,x_password_lifespan_accesses => 10000
,x_password_lifespan_days => 10000
,x_employee_id => 30 /*Change this id by running below SQL*/
/*
SELECT person_id
,full_name
FROM per_all_people_f
WHERE upper(full_name) LIKE ‘%’ ” upper(’full_name’) ” ‘%’
GROUP BY person_id
,full_name
*/

,x_email_address => ‘admin@notesbit.com’
,x_fax =>
,x_customer_id =>
,x_supplier_id => );
fnd_user_pkg.addresp(username => v_user_name
,resp_app => ‘SYSADMIN’
,resp_key => ‘SYSTEM_ADMINISTRATOR’
,security_group => ‘STANDARD’
,description => ‘Auto Assignment’
,start_date => SYSDATE – 10
,end_date => SYSDATE + 1000);
END;
/

Following are the reference for the pl/sql package

begin
fnd_user_pkg.addresp(
        ‘&User_Name’, /*Application User Name */
        ‘&Responsablity_Application_Short_Name’, /*get from Query Below */
        ‘&Responsibility_Key’,/*get from Query Below */
        ‘&Security_Group’, /* Most of cases it is ‘STANDARD’ so you can hard code it */
        ‘&Description’, /* Any comments you want */
        ‘&Start_Date’, /* Sysdate From Today */
        ‘&End_Date’ ); /* Sysdate + 365 Rights for Next One Year*/
commit;

dbms_output.put_line(‘Responsibility Added Successfully’);

exception
        when others then
                dbms_output.put_line(‘ Responsibility is not added due to ‘ SQLCODE substr(SQLERRM, 1, 100));
                Rollback;
end;
/

Following Google Searches Lead To This Post: link with user and responsibility
pl sql responsibilities
script to attach responsibilities in fnd_user
how to add responsbility to sysadmin in ebs 12
how to add a responsibility to a user using script
how to find responsibility ID Oracle
x_password_lifespan_accesses
r12 add responsibility api
query to find functions in a responsibility
table that stores roles of a user pl/sql
fnd_user_pkg.addresp oracle apps
to get the responsibility name using sql
fnd_user_pkg
assigned responsibility to user from backend
PLSQL responsibilities
oracle r12 fnd_user
oracle script for end dating users responsibilities
add system adminin responsibility throu fnd_user_pkg
query to get user responsibilities
ORACLE APPLICATIONS : LIST RESPONSIBILITIES FOR A USER
11i responsibility api
FND API to add responsibility
Oracle apps responsibility not showing on list
sql query to find user roles,profile in oracle
assign sysadmin responsibility Oracle Applications
create user id in oracle as sysadmin using SQL
how to find a user using sql on oracle apps
oracle applications “copy responsibility”
update FND_USER _ RESPONSIBILITY
“oracle applications” “copy responsibility”
How to update user responsibility details in oracle apps through API
How To update Responsibility to USER using pl/sql
oracle sql to get responsibilities with menus
fnd_user_pkg find user name from userid
how to find fnd user responsibility
oracle financials fnd_user_pkg
how to change responsibility name oracle
query role and user id in oracle
Oracle apps users creation SQL
fnd system profiles 11i api
oracle apps script to add responsiblity to user
check user apps have responsibility
creatinng username using fnd_user
adding a responsibility to user oracle
oracle create user via fnd package
oracle fnd_user list of responsibilities from SQL*Plus
sql to show fnd users by responsibility
script assign responsibility Oracle apps
oracle apps not a valid responsibility for the current user
calling oracle apps api from pl/sql
how create user in 11i using api
sql query to find what responsibilities are related to particular org
add new responsibility in backend
how to add a responsibility for a user in 11i
adding responsibility for a application user from backend
Query to add resposibility to user in ORacle apps
oracle APPS create user API
find Oracle fnd_user and responsibilities
“is not a valid responsibility for the current user”
Oracle apps user password reset using sql
11i responsibility user query
add responsibility to user script
query responsibilities user oracle
show users oracle pl sql
APPS RESPONSIBILITY API
get user id in apps
fnd_user api
pl sql from assigning responsibility to user in oracle apps
creating users in oracle financials r12
FND_USER and RESPONSIBILITY
create application user from backend in oracle apps
Scripting Administrator is not a valid responsibility for the current user
responsibility not showing
Oracle EBS user login script
add responsibility with sql
add responsibility sql
copying user responsibility in oracle apps
update fnd_user
Oracle EBS is not a valid responsibility for the current user
oracle EBS sql How to get menus attached to responsibilities
oracle user responsibility
oracle api+setting responsibities
how to add responsibilities to users in Oracle?
query to assign responsibility in oracle apps
oracle financials fnd_user table
How to get Responsibility Id in R12
how to get responsibility id in SQL R12
responsibility id api
responsibility id api in oracle apps
oracle user responsibility date table
query pl sql user roles
script to end date all users 11i
change pl/sql oracle password
add ebs responsibility through database
nd_user_pkg.CreaterOLES
Oracle apps role and responsibility API
Tax Managers is not a valid responsibility for the current user. Please contact your System Administrator
Oracle API to end_date responsibility
creating roles in r12
“Tax Managers is not a valid responsibility for the current user. Please contact your System Administrator”
Oracle Apps creating responsibilities using script
end date responsibility from backend + Oracle Apps
sample fnd_user_pkg.CHANGEPASSWORD
oracle fnd_user_pkg
System Administration is not a valid responsibility for the current user
Report Manager is not a valid responsibility for the current user
“Report Manager” is not a valid responsibility for the current user oracel apps R12
get responsibility from profile
fnd user and responsibility
inurl:index.php?pl= Name :: Password :: Homepage :: wow gold
How to add responsibilty from back end
API to assign user with responsibility in EBS
FND table storing the responsibilities of user id in oracle apps
fnd_ user+responsibility+menu
query to find responsibilities to a user in 11i
how to create a user using API in oracle?
responsibilities tables in oracle
how to attach a report to a responsibility from back end in oracle apps
select FND_USER_PKG
end dating responsibility script in oracle applications
11i create user from backend
how to create an oracle application user by backend
assigned oracle system administrator but it is not showing
oracle responsiblity tables
assigning responsibility to user in oracle apps
how to create responsibility in oracle apps using api
oracle EBS script end_date FND_USER
applications add responsibility
oracle apps responsibility table
inurl: ?post= “comments” “wow gold”
FND_USER_PKG.ADDRESP
How to check for a responsibility in Oracle Apps from back end
API to add/end date the responsibility
profile responsability application
profile get responsability application
oracle apps api to add responsibility to user
how to create the responsibilities in apps
how to create new user in oracle apps from sql
sql to fetch responsibility start date and end date in Oracle Apps
Oracle EBS add user script
Oracle apps add responsibility script
how to add mu;tiple menus in responsibility window oracle
how to add responsibility in ebs 12
how to add user management responsibility
add responsibility script query oracle apps
add a responsibility to a user from backend
HOW TO CREATE A NEW USER IN ORACLE APPS
HOW TO RESET PASSWORD FROM BACK END IN ORACLE APPS
sql to chech assigned responsibilities
how to set user id in oracle apps procedure
how to assign responsibilty and roles to user
fnd_responsability
SYSADMIN responsibility of APPS
how to assign a responsibility to different users from back end in Oracla applications
how to create multiple responsibilities for an user in oracle
find responsibilities assigned to a user
create user pl/sql fnd-user
adding sys admin role to user from backend
how to add responsibility in oracle apps from front end
administrator responsibility +oracle+script
script to add responsibility in oracle apps
assign users to role in oracle applications
pl/sql procedure oracle applications with api
script to create user in oracle apps
oracle apps responsibility tables
responsibility is not showing for user in Oracle R12
Tables which has responsibilities for an user in Oracle Apps
how to add responsibility ++ oracle apps
oracle user responsibilities
pl sql list user responsibilities
plsql query user responsibilities
Sql query to find the USer id from fnd user table in oracle apps
oracle apps sysadmin user backend
Oracle apps reset user password back end
oracle ebs what table links users to a responsibility
ORACLE APPS api assign responsibility
responsibilty and function ebs query
inurl:home/index.php “comment” “wow gold” “Add new”
Oracle EBS, responsibilities end_date
how to query a responsibility from backend
unable to assign responsibility to user oracle
site: wow gold sale inrul:blog add comment
sql script to find the number of front-end users in Apps R12
how to add a responsibility
how to create user using pl sql
backend API to add a responsibility to a user in oracle apps
create user using api’s in pl/sql +oracle apps
pl/sql table name user is attached to which role
get responsibility profile option oracle pl/sql api
new responsibility is not show in my account oracle apps
oracle user responsibility data table
ebs+sql+update+sysadmin+password
copying responsibilities in Oracle Financials
sql select username from oracle r12 user table table
user not able to find the responsibility in apps
script to add application user oracle application
assigning responsibilities r12
oracle api to assign responsibility
“oracle responsibility table”
add responsibility in oracle apps through database
fnd_user responsibilities
to endate sysadmin responsibility for users in oracle
endate sysadmin responsibility for list of Users from Backend
endate sysadmin responsibility from backend
endate sysadmin resposibility from backend for list of users
pl/sql api+update profile option responsibility
what happens when cliked on responsibility in 11i
inrul:blog add comment site:notesbit.com
get oracle user id in pl/sql
how to reset sysadmin password in ebs R12
pl sql check responsibility
assign responsibility to user 11i
site: WOW inrul: blog add comment
how to add responsibility in oracle apps
shell script to password end date for fnd_users
how do change user in pl sql
is not a valid responsibility for the current user. Please contact your System Administrator.
how to create responsibility from plsql in apps
oracle userid plsql
get EBS responsibility list query
oracle Responsibility not used by the users
responsibility assigned to oracle user but unable to check it from application
how to add a responsibility in oracle apps
what user responsibility can add oracle banks
not a valid user for this responsibility
assign role to user oracle EBS r12 pl sql
who added a responsibility in ebs to a user
add systemadministor using pl/sql
how to add pages to a website using pl sql ?
assign responsibility to user
pl/sql profiling in oracle applications
fnd user
check for a user in pl sql script
“sql statement” oracle “reset password”
create query only responsibility in oracle apps r12
add a user from front end to apps
script to add responsibilities from backend to the user
how to end date all responsibilities assinged to a user from backend
FND_USER_PKG.CREATEUSER
sql query to end date a responsibility in backend
top sql querys application r12
add sysadmin role to user oracle apps backend
creating users in Oracle Apps
Oracle API to add responsibility to a user
find the list of user with same responsibility in apps
ebs table that store responsibility and roles
ebs script to change user password
responsibility api oracle
fnd_user_pkg.addresp+end date+R12
responsibility oracle api
Tax Managers is not a valid responsibility for the current user
sql query functions Responsibilities
apps get responsability from user
setting up responsibilities in oracle through script
script to check responsibility assigned to an user
obtain last query in Oracle EBS using sql statement
how to assign SYSADMIN role to all users in oracle APPS
apps assign responsibilities from backend
User Management is not a valid responsibility for the current user. Please contact your System Administrator.
“ORACLE”+”USER Apps”
api to change responsibility oracle
attaching responsibility from backend+apps
FND api oracle
adding responsability through backend in oracle
Responsibility Creation using API
creating fnd_users using sql
copy menu pl/sql oracle ebs
User Management is not a valid responsibility for the current user. Please contact your System Administrator
responsibility script in oracle apps
end date oracle responsibility back end
sql end date responsibility
how to end date responsibility from back end
assign profile option to Responsibility using sql script in oracle apps
EBS R12 tables description.pdf
“find current user” “pl/sql”
end dating responsibilties in R12 via sql script
responsibility auto assignment in oracle
responsibilities assigned to a user
11i add responsibility to user
get responsibility EBS Oracle
oracle fnd_user_pkg changepassword
script for read of menu oracle ebs
assign system administrator role in Oracle Financials from the backend
Oracle Applications select fnd_ profile options
creating user through API in oracle apps

Post to Twitter  Post to Delicious  Post to Digg    Post to StumbleUpon

Categories : 11i Scripts, Oracle AOL, Scripts Oracle Tags : ,

Comments
June 26, 2009

This is my first time comment at your blog.
Good recommended website.

Posted by wow gold
August 3, 2009

useful scripts..Thansk a lot.

Posted by Subrat Majhee
September 14, 2009

Wonderful!

Posted by Nirav
November 2, 2009

Hi,

What happens the day after end_date for a responsability ?

Will the user have access the day after end_date ?

Thank you.

Luc Martineau

Posted by Luc Martineau
January 10, 2010

while running this script i got following error:
‘Application Object Library was unable access your ORACLE password.’

What may be the cause and what should be the action?

Posted by Abhijeet
January 11, 2010

Are you running as apps user or some other user? If apps, it should not say this. If other other user , it may likely say. second, what is the version of oracle application you use?

Posted by Jiltin
January 12, 2010

nice,very nice

Posted by ffxi gil
February 1, 2010

ome other user? If apps, it should not say this. If other other user , it may likely say. second, what is the version of oracle application you us

Posted by abercromibe
February 9, 2010

Excellent job.Very useful script.Awesome presentation. Thanks Thanks a lot.

Posted by Kalyan
March 21, 2010

it is very nice

Posted by metin2 yang
Leave a comment

(required)

(required)