Skip to main content
Solved

How to create an IFS user from command line APIs

  • February 6, 2025
  • 5 replies
  • 116 views

arebbeadle
Hero (Customer)
Forum|alt.badge.img+14

How to create an IFS user from command line APIs. We need to create users using the APIs in Oracle. Does anyone know what APIs we need to access?

 

Thank you,

Best answer by arebbeadle

Here is a sample script that I used to setup a basic users. Let me know if it is helpful?

 

View original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img+16
  • Superhero (Partner)
  • 407 replies
  • February 6, 2025

Example:

 

  for i in c_users_ loop
    begin
      fnd_user_ := UPPER(Convert_(substr(i.first_name, 1,2))||Convert_(i.last_name));
      Client_SYS.Clear_Attr(attr_);
      Client_SYS.Add_To_Attr('IDENTITY', fnd_user_, attr_);
      Client_SYS.Add_To_Attr('DESCRIPTION', i.name, attr_);
      Client_SYS.Add_To_Attr('ORACLE_USER', fnd_user_, attr_);
      Client_SYS.Add_To_Attr('WEB_USER', fnd_user_, attr_);
      Client_SYS.Add_To_Attr('ACTIVE', 'TRUE', attr_);
      Client_SYS.Add_To_Attr('ORACLE_PASSWORD', i.pass, attr_);
      Client_SYS.Add_To_Attr('EXPIRE_PASSWORD', 'FALSE', attr_);
      fnd_user_api.New__(info_, objid_, objversion_, attr_, 'DO');
      fnd_user_api.Set_Property(fnd_user_, 'PREFERRED_LANGUAGE','pl');
      fnd_user_api.Set_Property(fnd_user_, 'ALLOW_DB_AUTHENTICATION','TRUE');

end loop;


arebbeadle
Hero (Customer)
Forum|alt.badge.img+14
  • Author
  • Hero (Customer)
  • 130 replies
  • February 7, 2025

@knepiosko thank you this gives me the api to create a user account but I would also like to assign a base permissionset so they could login, is there an api for assigning the default company and site?

Please let me know


arebbeadle
Hero (Customer)
Forum|alt.badge.img+14
  • Author
  • Hero (Customer)
  • 130 replies
  • February 13, 2025

@knepiosko  or anyone, I am trying to find the API procedure to add additional Granted Permission Sets to the FND_USER_ROLE_RUNTIME_TAB? I have the procedure to add a ROLE but it only adds the top level role, how do you add the additional roles?

Thank you,

 

 


Forum|alt.badge.img+16
  • Superhero (Partner)
  • 407 replies
  • February 13, 2025

Hi ​@arebbeadle 

 

You need to grant role using this:

Security_sys.Grant_Role(role_, fnd_user_); → fnd_user_ =>’FND_ENDUSER’

After finishing process refresh security cache. Table FND_USER_ROLE_RUNTIME_TAB is populated during logon time as a summary of all permissions granted to enduser.


arebbeadle
Hero (Customer)
Forum|alt.badge.img+14
  • Author
  • Hero (Customer)
  • 130 replies
  • Answer
  • February 14, 2025

Here is a sample script that I used to setup a basic users. Let me know if it is helpful?

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings