EBS-use the fnd_user_pkg API to create a user, add roles, and modify users

Source: Internet
Author: User

For example, if you have a peripheral support system, you need to click a link after logging on to the peripheral system to log on to the Oracle ERP system, then we need to first create the users of the peripheral system in Oracle ERP and assign them their responsibilities.

DECLARE

A BOOLEAN;

BEGIN
-------------------------------------------------------------
-- Change password
-------------------------------------------------------------
-------------------------------------------------------------
-- Create User
-------------------------------------------------------------

Fnd_user_pkg.CreateUser ('simon ',
'Seed ',
'PW $234567'
);
-------------------------------------------------------------
-- Add Resp
-- Select * from fnd_responsibility fr where fr. responsibility_id =
-- Select * from fnd_responsibility_tl frt where upper (frt. responsibility_name) like '%'
-- Select * from fnd_application fa where fa. application_id =
-- Select * from fnd_security_groups fs
-------------------------------------------------------------
Fnd_user_pkg.AddResp ('simon ',
'Sysadmin ',
'System _ ADMINISTRATOR ',
'Standard ',
'Test API ',
Sysdate,
Null
);
Commit;
End;

-- Use the following code to log on to the Oracle ERP system directly in Link:

<Html>
<Head>
<Title> iSupport Login </title>
</Head>
<Body onLoad = "document. Login. submit ()">
<Form action = "http: // host: port/OA_HTML/jtfavald. jsp" method = "post" name = "Login" id = "Login">
<Input type = "hidden" name = "username" value = "$ UserName $">
<Input type = "hidden" name = "password" value = "$ Password $">
</Form>
</Body>
</Html>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.