{"id":4260,"date":"2013-11-02T18:36:21","date_gmt":"2013-11-02T18:36:21","guid":{"rendered":"http:\/\/erpschools.com\/?p=4260"},"modified":"2014-12-08T08:40:28","modified_gmt":"2014-12-08T08:40:28","slug":"api-user-and-responsibilities-oracle-apps","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps","title":{"rendered":"API: FND_USER_PKG: Create User,reset Password and add Responsibilities"},"content":{"rendered":"<p>1) API to create FND User<\/p>\n<p><code>BEGIN<br \/>\nfnd_user_pkg.CreateUser ( x_user_name =&gt; 'Operations',<br \/>\nx_owner =&gt; NULL,<br \/>\nx_unencrypted_password =&gt;'welcome1',<br \/>\nx_start_date =&gt; TO_DATE('01-JAN-2000'),<br \/>\nx_end_date =&gt; NULL, x_last_logon_date =&gt; NULL,<br \/>\nx_description =&gt; 'Operations User',<br \/>\nx_password_date =&gt; NULL,<br \/>\nx_password_accesses_left =&gt; NULL,<br \/>\nx_employee_id =&gt; NULL,<br \/>\nx_email_address =&gt; NULL,<br \/>\nx_fax =&gt; NULL,<br \/>\nx_customer_id =&gt; NULL,<br \/>\nx_supplier_id =&gt; NULL);<br \/>\nCOMMIT;<br \/>\nEND;<\/code><\/p>\n<p>2) API to add responsibilities to a user<br \/>\n<code>BEGIN<br \/>\nfnd_user_pkg.addresp(username =&gt; 'ABC',<br \/>\nresp_app =&gt; 'SYSADMIN',<br \/>\nresp_key =&gt; 'SYSTEM_ADMINISTRATOR',<br \/>\nsecurity_group =&gt; 'STANDARD',<br \/>\ndescription =&gt; NULL,<br \/>\nstart_date =&gt; TO_DATE('01-JAN-2000'),<br \/>\nend_date =&gt; NULL );<br \/>\nCOMMIT;<br \/>\nEND;<\/code><\/p>\n<p>3) API to remove responsibilities from a user<br \/>\n&#8211;This script will end date the assignment of responsibility to user<br \/>\n<code>BEGIN<br \/>\nfnd_user_pkg.delresp(username =&gt; 'ABC',<br \/>\nresp_app =&gt; 'SYSADMIN',<br \/>\nresp_key =&gt; 'SYSTEM_ADMINISTRATOR',<br \/>\nsecurity_group =&gt; 'STANDARD' );<br \/>\nCOMMIT;<br \/>\nEND;<\/code><\/p>\n<p>4) API to change pasword<\/p>\n<p>declare<br \/>\nv_user_name varchar2(30):=upper(&#8216;&amp;Enter_User_Name&#8217;);<br \/>\nv_new_password varchar2(30):=&#8217;&amp;Enter_New_Password&#8217;;<br \/>\nv_status boolean;<br \/>\nbegin<br \/>\nv_status:= fnd_user_pkg.ChangePassword (<br \/>\nusername =&gt; v_user_name,<br \/>\nnewpassword =&gt; v_new_password<br \/>\n);<br \/>\nif v_status =true then<br \/>\ndbms_output.put_line (&#8216;The password reset successfully for the User:&#8217;||v_user_name);<br \/>\ncommit;<br \/>\nelse<br \/>\nDBMS_OUTPUT.put_line (&#8216;Unable to reset password due to&#8217;||SQLCODE||&#8217; &#8216;||SUBSTR(SQLERRM, 1, 100));<br \/>\nrollback;<br \/>\nEND if;<br \/>\nend;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1) API to create FND User BEGIN fnd_user_pkg.CreateUser ( x_user_name =&gt; &#8216;Operations&#8217;, x_owner =&gt; NULL, x_unencrypted_password =&gt;&#8217;welcome1&#8242;, x_start_date =&gt; TO_DATE(&#8217;01-JAN-2000&#8242;), x_end_date =&gt; NULL, x_last_logon_date =&gt; NULL, x_description =&gt; &#8216;Operations User&#8217;, x_password_date =&gt; NULL, x_password_accesses_left =&gt; NULL, x_employee_id =&gt; NULL, x_email_address =&gt; NULL, x_fax =&gt; NULL, x_customer_id =&gt; NULL, x_supplier_id =&gt; NULL); COMMIT; END; 2) API [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[500],"tags":[146,530,147,134,135],"class_list":["post-4260","post","type-post","status-publish","format-standard","hentry","category-sysadmin-api","tag-add","tag-api","tag-remove","tag-responsibilities","tag-users"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>API: FND_USER_PKG: Create User,reset Password and add Responsibilities - erpSchools<\/title>\n<meta name=\"description\" content=\"API to create create user in oracle apps Add responsibilities to users Remove responsibilities or unassign from users\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shravika\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps\"},\"author\":{\"name\":\"Shravika\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/52891ca94f7156a634b5f1299373c7e9\"},\"headline\":\"API: FND_USER_PKG: Create User,reset Password and add Responsibilities\",\"datePublished\":\"2013-11-02T18:36:21+00:00\",\"dateModified\":\"2014-12-08T08:40:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps\"},\"wordCount\":126,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"keywords\":[\"Add\",\"API\",\"Remove\",\"responsibilities\",\"users\"],\"articleSection\":[\"Sysadmin API\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps\",\"url\":\"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps\",\"name\":\"API: FND_USER_PKG: Create User,reset Password and add Responsibilities - erpSchools\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"datePublished\":\"2013-11-02T18:36:21+00:00\",\"dateModified\":\"2014-12-08T08:40:28+00:00\",\"description\":\"API to create create user in oracle apps Add responsibilities to users Remove responsibilities or unassign from users\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API: FND_USER_PKG: Create User,reset Password and add Responsibilities\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/erpschools.com\/erps\/#website\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"name\":\"erpSchools\",\"description\":\"Oracle Apps\",\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/erpschools.com\/erps\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\",\"name\":\"erpSchools\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"contentUrl\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"width\":250,\"height\":60,\"caption\":\"erpSchools\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"http:\/\/facebook.com\/erpschools\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/52891ca94f7156a634b5f1299373c7e9\",\"name\":\"Shravika\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/971ce0ec70f652f1cb4dcc475a418a6e9ef69cd18479e0a66dfbaf41b2745df0?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/971ce0ec70f652f1cb4dcc475a418a6e9ef69cd18479e0a66dfbaf41b2745df0?s=96&d=blank&r=g\",\"caption\":\"Shravika\"},\"url\":\"https:\/\/erpschools.com\/erps\/author\/shravikareddy\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"API: FND_USER_PKG: Create User,reset Password and add Responsibilities - erpSchools","description":"API to create create user in oracle apps Add responsibilities to users Remove responsibilities or unassign from users","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps","twitter_misc":{"Written by":"Shravika","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps"},"author":{"name":"Shravika","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/52891ca94f7156a634b5f1299373c7e9"},"headline":"API: FND_USER_PKG: Create User,reset Password and add Responsibilities","datePublished":"2013-11-02T18:36:21+00:00","dateModified":"2014-12-08T08:40:28+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps"},"wordCount":126,"commentCount":1,"publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"keywords":["Add","API","Remove","responsibilities","users"],"articleSection":["Sysadmin API"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps","url":"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps","name":"API: FND_USER_PKG: Create User,reset Password and add Responsibilities - erpSchools","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"datePublished":"2013-11-02T18:36:21+00:00","dateModified":"2014-12-08T08:40:28+00:00","description":"API to create create user in oracle apps Add responsibilities to users Remove responsibilities or unassign from users","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/api\/sysadmin-api\/api-user-and-responsibilities-oracle-apps#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"API: FND_USER_PKG: Create User,reset Password and add Responsibilities"}]},{"@type":"WebSite","@id":"https:\/\/erpschools.com\/erps\/#website","url":"https:\/\/erpschools.com\/erps\/","name":"erpSchools","description":"Oracle Apps","publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/erpschools.com\/erps\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/erpschools.com\/erps\/#organization","name":"erpSchools","url":"https:\/\/erpschools.com\/erps\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/","url":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","contentUrl":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","width":250,"height":60,"caption":"erpSchools"},"image":{"@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/erpschools"]},{"@type":"Person","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/52891ca94f7156a634b5f1299373c7e9","name":"Shravika","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/971ce0ec70f652f1cb4dcc475a418a6e9ef69cd18479e0a66dfbaf41b2745df0?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/971ce0ec70f652f1cb4dcc475a418a6e9ef69cd18479e0a66dfbaf41b2745df0?s=96&d=blank&r=g","caption":"Shravika"},"url":"https:\/\/erpschools.com\/erps\/author\/shravikareddy"}]}},"_links":{"self":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/4260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/comments?post=4260"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/4260\/revisions"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=4260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=4260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=4260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}