declare l_user_id number; l_responsibility_key fnd_responsibility.responsibility_key%TYPE := 'SYSTEM_ADMINISTRATOR'; l_application_short_name fnd_application.application_short_name%TYPE := 'SYSADMIN'; l_responsibility_id number; l_application_id number; l_responsibility_name varchar2(200) := 'System Administrator'; l_security_group_id number := 0; begin l_user_id := fnd_user_pkg.CreateUserId( x_user_name => 'TEST' , x_owner => 'CUST' , x_unencrypted_password => '123456' ); select application_id into l_application_id from fnd_application where application_short_name = l_application_short_name; select responsibility_id into l_responsibility_id from fnd_responsibility where application_id = l_application_id and responsibility_key = l_responsibility_key; fnd_user_resp_groups_api.insert_assignment( user_id => l_user_id , responsibility_id => l_responsibility_id , responsibility_application_id => l_application_id , security_group_id => l_security_group_id , start_date => trunc(sysdate) , end_date => NULL , description => l_responsibility_name ); fnd_wf_engine.default_event_raise( 'oracle.apps.fnd.security.user.assignment.change' , l_user_id || ':' || l_responsibility_id ); fnd_wf_engine.propagate_user_role( 'FND_USR' , l_user_id , 'FND_RESP' || l_application_id , l_responsibility_id , trunc(sysdate) , NULL ); -- Added for Function Security Cache Invalidation Project fnd_function_security_cache.insert_user_resp( l_user_id , l_responsibility_id , l_application_id ); commit; end;
Главная
> Oracle e-Business Suite > Создание пользователя
Комментарии (0)
Уведомления (0)
Написать комментарий
Уведомление
Последние комментарии