Create Portal user programmatically
Hi,
I've been told there was an API in the 3.0.8 portal release to allow the creation of portal users in the Login Server programmatically.
I think this API is called : portal30_sso.wwsso_ls_private.
Does anyone know where I can find this API description ?
Thanks.
null
This informaiton is contained in the PDK - PL/SQL:Reference Material accessible at http://portalstudio.oracle.com
Direct links: http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk6pkg.htm http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk6apo.htm
Similar Messages
-
How to create portal user and integrate with external appl login
How to create portal user and integrate the user with external application for single sign-on ?
I want to access my external application thru portal user ..?
ShyamHi Jithin,
The link that you've shared talks about a different scenario.
In my case, I want to pass the portal user id when the user clicks on the Help Link present in the header area.
I am trying to pass it along with the Help Link Url property of a masthead iview but it is not getting passed to the target Url.
I would like to know if it is possible to pass the Portal User Id in this way or not.
Though if we create a appintegrator iview and pass the user id <User.UserID> along with the target Url, it reaches there.
Thanks & Regards,
Anurag -
Create portal user using web dynpro abap application
Dear All,
I would like to know is it possible to create portal user-id through web dynpro abap application.
My requirement is
> I have to create a web dynpro abap application. In the web dynpro abap application I have name email-id and phone number as entry fields.
> I will click on submit, one unique id will get created. This unique id will be the login id for portal.
I found how to create portal user using web dynpro java, but i could not find regarding web dynpro abap.
If it is possible to create the portal users using web dynpro abap pls share the code as well.
Regards,
Swapnil IndulkarHi swapnil,
I think by using BAPi.. BAPI_USER_CREATE1 you can create.
Please check this...
Create portal user from webdynpro abap
Creating user and assigning a group through code
user administration su01
How can i get the portal user id from logon ticket in the webdyn 4 ABAP
Cheers,
Kris.
Edited by: kissnas on May 21, 2011 8:47 AM -
Hiii,
Iam creating portal users in the web dynpro.I had taken Grid layout.I written code like this.
public void onActionCreateUser(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionCreateUser(ServerEvent)
String user = wdContext.currentContextElement().getUser();
String lastName = wdContext.currentContextElement().getLastName();
String firstName = wdContext.currentContextElement().getFirstName();
String email = wdContext.currentContextElement().getEmail();
IUserFactory userFact = UMFactory.getUserFactory();
try {
IUserMaint userMaint = userFact.newUser(user);
userMaint.setLastName(lastName);
userMaint.setFirstName(firstName);
userMaint.setEmail(email);
userMaint.commit();
wdComponentAPI.getMessageManager().reportSuccess("User Created "+user);
} catch (UMException e) {
wdComponentAPI.getMessageManager().reportException(e.getMessage(),false);
e.printStackTrace();
//@@end
In the output iam getting
: Vijay
: Vijay
:Tivari
: email address giving
Label is not displaying in the output (.that is the left part).But iam able to create the users.
Name
First Name
Last Name
Email
These things have to be shown in the output.
Please provide the solution for this.Hi
Iam creating portal users in the web dynpro. Iam getting error in the code
_Error : The method setPassword(String) is undefined for the type IUserMaint*_ *
Will anyone help me to sort this issue.
Please reply the necessary code.
public void onActionCreateUser(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionCreateUser(ServerEvent)
String user = wdContext.currentUserDataElement().getUser();
String password = wdContext.currentUserDataElement().getPassword();
String lastName = wdContext.currentUserDataElement().getLastName();
String firstName = wdContext.currentUserDataElement().getFirstName();
String email = wdContext.currentUserDataElement().getEmail();
IUserFactory userFact = UMFactory.getUserFactory();
try
IUserMaint userMaint = userFact.newUser(user);
{code}userMaint.setPassword(password);
userMaint.setLastName(lastName);
userMaint.setFirstName(firstName);
userMaint.setEmail(email);
userMaint.commit();
wdComponentAPI.getMessageManager().reportSuccess("User Created "+user);
catch (UMException e)
wdComponentAPI.getMessageManager().reportException(e.getMessage(),false);
e.printStackTrace();
//@@end
Regards
Sushma -
Create Portal Users (In English)
Hi...
I'm creating users manually in Portal via PL/SQL with this functions:
wwsso_api_user_admin.create_user(uid,pwd,uid || '@xxxxxxx.com',sysdate,null,false,foo);
dbms_output.put_line('user created');
portal30.wwctx_api.set_context(p_user_name => 'PORTAL30',p_password => 'xxxxxxx');
DBMS_OUTPUT.put_line('context set ');
foo := portal30.wwsec_api.add_portal_user(p_user_name => uid,p_db_user => null,p_portal_user => 'Y');
dbms_output.put_line('portal user added ');
l_gid := portal30.wwsec_api.group_id(l_GROUP);
portal30.wwsec_api.add_user_to_list(p_person_id =>foo, p_to_group_id =>l_gid, p_is_owner => portal30.wwsec_api.NOT_OWNER);
portal30.wwsec_api.set_defaultgroup ( p_groupid => l_gid ,p_username => uid );
dbms_output.put_line('portal default group ');
This process creates the user correctly, but after the process, I can't access any application, even do a logout… because I’m getting this error:
[Thu Mar 29 11:34:02 2007] [warn] mod_plsql: Stale Connection due to Oracle error 6510
[Thu Mar 29 11:34:02 2007] [error] mod_plsql: /pls/portal30/STARTER.LOS_HOME_ASEG.show ORA-6510
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "PORTAL30.WWCTX_SSO", line 852
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "PORTAL30.WWCTX_SSO", line 935
ORA-06512: at "PORTAL30.WWCTX_API", line 170
ORA-06512: at "PORTAL30.WWSEC_API", line 3665
ORA-06512: at "PORTAL30.WWV_USER_SECURITY", line 32
ORA-06512: at "STARTER.LOS_HOME_ASEG", line 303
ORA-06512: at line 8
The only way to use any application with this new user is closing all the browsers windows
What can i do?Yes you can. you will need to create the
login server and portal users and activate them as part of a looping block of code.
Check out the security and login server forum for how to create users using the APIs
hth -
Creating portal users with owner privileges?
Hello,
I need to let local adminstrators create users in the portal.
This is based on instance-specific privileges, not global.
Setting them to 'owners' of the group in the portal should let them add users.
Once created and I log in as one of them I do not have the privileges of being an
'owner', eventhough it's visible in the portal that I am an owner.
Anybody?
/Hi,
To make the problem a little clearer.
I want to have "local adminstrators" that can manage portal users i.e; delete, insert and update portal users.
However I do not want these "local administrators" to be "Full administrators"- too dangerous.
The "local adminstrators" should belong to the same group as the users they are set to administer. The
only difference between a "local administrator" and a user of a group is that the "local administrator" have privileges
to manage the other users of the group. If I have understood the concept right an owner have these privileges.
I made them owners of the group, but this did not enable them to manage users.
This must be a rather common approach, to have some users being able to administer other users without being a fullfledge DBA.
Right now I'm looking into mapping them(the local administrators) to a different database schema with rights to manage users.
I realize that to map them to another schema, then the checkbox "Use this schema for Portal Users" have to be checked when creating the
schema. How do I check if this was checked and if it wasn't checked can I alter it now?
Another thought is to dynamically upon meeting certain conditions making them Full Administrators, then after finishing the task
reinstating them as normal users.. but this.. well hmm
Thanks.
/ -
Creating portal users from SU01 users
Hi,
We are on SRM 7.0 and have a requirement that whenever an SU01 user is created, a portal user should also be created immediately corresponding to this SU01 user.
Since we are also using SUS, whenever an admin supplier creates a contact person for his company, an SU01 user is created at the backend. We want this contact person to be created automatically in the portal. Currently its an offline activity where the admin supplier calls up the helpdesk to enable his contact person in the portal.
Pl shed some light on this.
Thanks & regards,
NikhilThanks for the update.
We don't have an LDAP and hence option 1 is ruled out for us.
If i have the Portal UME as a data source, then how to replicate the users that are created in SRM?. The Users are created an SRM for EBP-access as end users, approvers, purchasers, bidders etc... and how to replicate these users to the Portal?. The SUS users are accessing both SUS functionality and bidder functions and hence they need to be in Portal Or they have to go to 2 different links with different password and hence we need to replicate the SUS users to the Portal too.
We are not considering CUA as of now and hence as of now this is ruled out too.
Any pointers/suggestions are highly appreciated.
Thanks
velu -
In 9.02 I would like to make a form that creates the portal users, assigns user profile info and assigns them to a specific group. Does anybody have the plsql needed to do this?
Hi,
You can use the form on tables to build a form on the user table and have a trigger on this table which inserts and updates the other tables or have a form on a procedure which will insert into the user table and the other dependant tables. In the case of form on procedure you will have to build a procedure with parameters same as the input fields. -
What Built-ins must I call to create a Portal user?
Tom,
This post is best suited to the Oracle9iAS SSO and Portal Security forum.
Thanks -
Create Portal user within Oracle IAS9.0.4 (10g) using APIs
With the Portal version 3.0 we created our users using the functions:
1. wwsec_api.add_portal_user(...)
2. wwsec_api.activate_portal_user(<user>)
3. WWSSO_API_USER_ADMIN.CREATE_USER(...)
Now with the Portal version 9.0.4 (10g) we can't create the users.
Any sugestions?declare
l_group varchar2(240);
l_member varchar2(240);
l_guid varchar2(32);
l_id number;
l_user_name varchar2(64) := 'user';
l_pass varchar2(64):= 'user';
l_email varchar2(64) := '[email protected]';
begin
--user to ldap
l_guid := wwsec_oid.create_user_entry
p_base => wwsec_oid.get_user_search_base,
P_USER_NAME => l_user_name,
p_password => l_pass,
p_email => l_email
commit;
--include to default group
l_group := 'cn=AUTHENTICATED_USERS,'||wwsec_oid.get_group_search_base;
l_member := 'cn='||l_user_name||','||wwsec_oid.get_user_search_base;
wwsec_oid.grant_group_membership
(p_group_dn => l_group, p_member_dn => l_member);
commit;
--in portal default group
wwsec_api.add_user_to_list(
p_person_id => wwsec_api.id(l_user_name),
p_to_group_id => wwsec_api.group_id('AUTHENTICATED_USERS'),
p_is_owner => wwsec_api.not_owner
commit;
--add to portal
l_id := portal.wwsec_api.add_portal_user(p_User_Name=>l_user_name,
p_Portal_User=>'Y',
p_Email => l_email);
commit;
end;
lower('LUCK') -
Create a user programmatically with OracleMembershipProvider
Hi,
I looked everywhere in the Oracle doc and in forums and there is no example how to do what's done above with the microsoft provider.
MembershipCreateStatus status;
string passwordQuestion = "";
string passwordAnswer = "";
MembershipUser newUser = Membership.CreateUser(UsernameTextbox.Text, PasswordTextbox.Text,
EmailTextbox.Text, passwordQuestion,
passwordAnswer, true, out status);
I've tried :
OracleMembershipProvider membershipProvider = new OracleMembershipProvider();
MembershipUser myUser = membershipProvider.CreateUser("JoeBlo", "asdfgh*", "[email protected]", "aaa", "bbb", true, key, out status);
But I got a System.NullReferenceException and I don't know why.
Can Someone help me.
Thanks
Edited by: 786272 on 2010-08-04 14:02Please refer to the doc to provide valid connection string in your machine.config or
web.config. By default the connection string is a blank in machine.config.
For "provider model", while the default provider is specified you may use
Membership class to create a user. Membership will call CreateUser method (and others)
for you that have been implemented by the provider.
Membership.CreateUser(...) -
Diable Password Generation while creating Portal users..
Is there a way you can disable the passworg generation fields while an Admin creates a user.
Well, I would like to disable all the 3 optionsfor the Admin (Define Pwd/Generate Pwd/Disable Pwd)
The users are going to be authenticated by Site Minder Agent.
ThanksHi Ritu,
>>please guide me as to how can I set mandatory fields in my code??
In ur jsp file or in the controls code add the following attribute
<hbj:label id="userIdLabel"
text="User ID"
labelFor="userIdInput"
design="HEADER3"
required="true"/>
and to check the mandatory entry for that field do this in the submit button
<hbj:button id="insert"
text="Submit"
design="emphasized"
onClick="save"
onClientClick="if(!isMandatory()) htmlbevent.cancelSubmit=true;;"/>
and in the javascript write the client validation code.
Hope this helps.
Regards,
Joshua Kiran -
How do I create portal groups dynamically?
Has anyone written code to use the
WWSEC_APP_GROUP_MGR.CREATE_GROUP procedure to create portal
groups programmatically? I understand alot of what I'm supposed
to pass, but some of these parameters are pretty obscure and
obfuscated.
I'm not sure this can be called like a normal (non-htp) stored
procedure at all. I now understand nearly all of the
parameters. Looking at the page source behind the Create Groups
page, I see that many of these parameters are involved in the
page generation itself, for example p_back_url being a variable
that is probably attached to the action of "Previous" buttons
that appear as you go through the process of creating a group.
Here is my call:
wwsec_app_group_mgr.create_group(p_groupname => 'X',
p_description => 'TEST GROUP',
p_db_role => 'DBA',
p_hide_group => 'N',
p_styleid => 6,
p_group_id => y,
p_siteid => 0,
p_site_id => 1);
where "y" is the nextval of the group sequence.
Inserting SQLERRM into a table, I end up with this:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "SYS.OWA_UTIL", line 323
ORA-06512: at "SYS.HTP", line 860
ORA-06512: at "SYS.HTP", line 975
ORA-06512: at "SYS.HTP", line 993
ORA-06512: at "PORTAL30.WWUTL_HTP", line 25
ORA-06512: at "PORTAL30.WWERR_API_ERROR_UI", line 182
ORA-06512: at "PORTAL30.WWSEC_APP_GROUP_MGR", line 2891
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "PORTAL30.WWSEC_APP_GROUP_MGR", line 255
ORA-01403: no data found
I know that this procedure is responsible for generating the
subsequent pages in the "create group" wizard. There's just no
possible way to figure out how to use this procedure
dynamically. I repeat we WILL NOT BE TYPING IN OVER 3500 GROUPS
and 7000 USERS USING THE WIZARD. There must be a way.
I don't want to just arbitrarily insert groups into tables
behind the scenes without knowing what I'm doing. If this is as
simple as inserting a row into wwsec_group$, wwsec_member$,
etc., then great, but there's no way of knowing.
Maybe an Oracle person can help me. Is there another API I can
use, or is there a way to use this API as a stored procedure
where I can just loop through a driving table to create a bunch
of users and groups?
I appreciate any help. I need to create over 3000 groups based
on my client's organization. We REFUSE to do this by hand using
portal's interface. Not that it's bad, it is just impractical
in this instance.
Adrian KlingelNever mind.
-
Dear Gurus
To map the employees from R/3 to Portal Users, we have to create a user id for every employee in the portal, at the same time is it necessary to create the user in the R/3
Eg. We have 3000 employees, and their data is maintained in R/3, now we have to create the Users for these employees in Portal, at the same time is it necessary to create the Users for all the 3000 employees in R/3?
Regards
kumarYes in case ur UME is database data source then u need to create the portal users as well the r/3 users.
in case ur UME is ABAP data source then in portal automatically the r/3 users will be appeared and there is no need to create portal users seperately.
Always ESS Users need to have userid in the Backend system also (i.,e SAP R/3)
Edited by: Vijay Mohan on Mar 30, 2010 12:23 PM
Edited by: Vijay Mohan on Mar 30, 2010 12:24 PM -
Adding users programmatically -- almost there
... getting close...
Create this procedure in the PORTAL schema.
It works if you call it when connected as PORTAL, but not when connected as anyone else.
It is throwing a user-defined exception frmo inside WWCTX_SSO, so I am guessing that it is looking at the session context and deciding that the SESSION_USER shouldn't be adding users.
Perhaps a true PL/SQL wiz can pick up the ball and figure out what is going on.
FYI this is sandbox code at its grittiest, so don't even think of pasting it into your application 8^)
create or replace procedure ci_add_portal_user
(uname in varchar2,pwd in varchar2, email in varchar2,lname in varchar2,fname in varchar2,clr_lvl in integer)
as
l_guid varchar2(32);
p_user_id number;
sess dbms_ldap.session;
err_code number;
err_msg varchar2(300);
INVALID_GRP_NAME_EXCEPTION exception;
INVALID_SITE_EXCEPTION exception;
VALUE_ERROR_EXCEPTION exception;
DUPLICATE_GROUP_EXCEPTION exception;
GROUP_NOT_FOUND_EXCEPTION exception;
GROUP_MEMBER_EXCEPTION exception;
GROUP_NOT_UNIQUE_EXCEPTION exception;
USER_NOT_FOUND_EXCEPTION exception;
USER_EXISTS_EXCEPTION exception;
APP_NOT_FOUND_EXCEPTION exception;
NO_MANAGER_EXCEPTION exception;
DUPLICATE_GRANTEE_EXCEPTION exception;
NO_ACCESSIBLE_OBJECT_EXCEPTION exception;
ORG_NOT_EXIST_EXCEPTION exception;
INVALID_PERSON_ID_EXCEPTION exception;
ACCESS_DENIED_EXCEPTION exception;
CIRCULAR_REFERENCE_EXCEPTION exception;
UNEXPECTED_EXCEPTION exception;
USER_NOT_DELETABLE_EXCEPTION exception;
INVALID_ARGUMENT_EXCEPTION exception;
INVALID_AUTH_FUNC_EXCEPTION exception;
LDAP_CONNECTION_EXCEPTION exception;
DEPRECATED_API_EXCEPTION exception;
INVALID_ARGUMENT_EXCEPTION exception;
BEGIN
/* Create SSO User */
begin
l_guid := portal.wwsec_oid.create_user_entry
p_base => portal.wwsec_oid.get_user_search_base,
p_user_name => uname,
p_password => pwd,
p_email => email,
p_first_name => fname,
p_last_name => lname,
p_create_state => null,
p_bind_as_user => false
exception when others then
err_code:=SQLCODE;
err_msg:=SQLERRM;
dbms_output.put_line(' Exception :'||err_code||' '||err_msg);
end;
/* Create Portal User */
begin
p_user_id:=portal.wwsec_api.id_sso(p_username=>uname);
dbms_output.put_line('USER ==>'||p_user_id||' '||portal.wwsec_api.user_name(p_user_id));
exception when others then
err_code:=SQLCODE;
err_msg:=SQLERRM;
dbms_output.put_line(' Exception :'||err_code||' '||err_msg);
end;
begin
portal.wwsec_api.add_user_to_list(p_user_id,portal.wwsec_api.group_id('CI_USR'),0);
portal.wwsec_api.set_defaultgroup(portal.wwsec_api.group_id('CI_USR'),uname);
exception when others then
err_code:=SQLCODE;
err_msg:=SQLERRM;
dbms_output.put_line(' Exception :'||err_code||' '||err_msg);
end;
begin
portal.wwsec_api.add_user_to_list(p_user_id,portal.wwsec_api.group_id('CI_CLR_'||clr_lvl),0);
exception when others then
err_code:=SQLCODE;
err_msg:=SQLERRM;
dbms_output.put_line(' Exception :'||err_code||' '||err_msg);
end;
END ci_add_portal_user;Andrew,
to add a user to a specific group in the FileRealm, try doing the following:
import java.security.acl.Group;
import weblogic.security.acl.BasicRealm;
import weblogic.security.acl.ManageableRealm;
import weblogic.security.acl.Security;
// Create a user in WebLogic
BasicRealm bRealm = Security.getRealm();
ManageableRealm mRealm = (ManageableRealm)bRealm;
if (null == mRealm) { throw new SecurityException("Security Realm is null");
weblogic.security.acl.User oNewUser = mRealm.newUser("username", "password",
null);
// -- Put the new user into the selected group
Enumeration eGroups = mRealm.getGroups();
Group oGroup = mRealm.getGroup("group name you want to add to");
if (null != oGroup) {
oGroup.addMember(oNewUser);
try { mRealm.save("FileRealm.Properties"); } catch (IOException e) { }
Andrew Dunn <[email protected]> wrote:
Thanks, Mike.
I'm trying to use the Default realm in WLS7.0 (which uses LDAP), so
I'm looking for the classes specific to the Default realm - I assume
BEA provides some, but I can't find them in the docs.
On 2 Dec 2002 10:15:18 -0800, "mike" <[email protected]>
wrote:
You will not find implementing classes in general. The thing is thatthey (classes)
are specific to particular implementation of realm you are using (assumingyou
use 6.x or below, but that is logically true for 7). So you need tofind what
are the classes used in your realm and work with those. If you are usingan implementation
shipped with WLS (eg. FIleRealm or LDAP) you will have to use reflection...
Andrew Dunn <[email protected]> wrote:
How can I add users/groups via the Weblogic API? All I can find in
the documenattion is interfaces, but no implementation classes. How
can I instantiate the classes?
Thanks, Andrew
Maybe you are looking for
-
Windows Vista and HP Laserjet 6P--installed software but can't print. Item stuck in queue
I have found plenty of answers to my problem relating to Windows 7 but not for Vista. I picked up a used HP Laserjet 6P which is supposed to be in working order. I attached the printer with a parallel port-USB adapter and installed the software using
-
Hyperlink to Attached "Folder"
In my PDF, I would like to hyperlink the user to a folder of files (instead of a single file). Is this possible? I have looked into the "Attach File" option in the PDF, but it seems to only allow attaching files as single objects.
-
Need help finding the FP Get Configuration Info.vi in Labview 8.5
I have had a problem with a program that I have put together to run a fieldpoint system. The program works fine on the development computer but as soon as I install it on a client pc i have problems with the program not linking to the .iak file. I ha
-
Audio transfer elements premiere 10 to elements organiser 10
I am trying to get sound on movie clip in Premiere elements 10 copied onto a section of a slide shoe created in Elements Organiser 10. I have tried unlinking the audio and video on the movie clip and then deleting the video but although the audio can
-
Keithley ke24xx.dll Problem
Hi, we have been using the ke24xx.dll library for developing a own .vi program which controlled the operation and the measurements of a resistor. However, two days ago the program started to measure badly, that is, the measurement of the front panel