OIM Update User Details API call.
Hi All,
Can anyone plz provide me the sample API code to update the user details in OIM.
Thanks
Siva
what exactly u wanna see in the code. it is simple as others api calls
you have to pass a hashmap as aparameter.
Map userdata = new HashMap();
userdata.put("Users.First Name", "ABC");
userintf.updateuser(userdata);
Similar Messages
-
Updating user details programmatically
Portal version 3.0.9.8.1
We are successfully creating users programmatically using the
APIs:
PORTAL30_SSO.WWSSO_API_USER_ADMIN.CREATE_USER and
PORTAL30.WWSEC_API.ADD_PORTAL_USER
We are now trying to update user details programmatically using
PORTAL30.WWSEC_API.MODIFY_PORTAL_USER but noticed that this only
updates the portal30 user details - not portal30_sso.
Is there an equivalent API for updating the portal30_sso user?Hi mon_adobe,
It's not possible to redirect this form upon submission to another page. However what you can do here is place a redirect on the 'Update Details Form Confirmation Page' System Page as a workaround. You can access this System Page via Site Manager > System Pages > Update Details Form Confirmation Page. -
While updating user Details I am gettingsome error
Hi ,
While updating the user details from OIM server(OIM 9102 BP12) I am getting following error.Same is working properly on BP02.Can anybody help me to find out what is the root cause of this problem?
- I am trying to ceare a user through PSFT test utility, and getting following error.Same error is coming when we are creating user from
OIM server console.
Running GETROGUEACCOUNTSAMACCOUNTNAME
Target Class = com.thortech.xl.utilities.rogueAccountDetect
$$$ Rogue Account Detect $$$
The reconType query is: select obj_name from obj where obj_key=(select obj_key from rce where rce_key=38784)
$$$ Recon Object is: Xellerate User
$$$ wrong recon type for rogue account detect
tcDeptCodeChanged Running
Nr Name Value
0) Lookup Name Department SiteCode Mapping
1) From Field USR_UDF_DEPARTMENT_ID
2) To Field USR_UDF_SITECODE
3) Debug YES
4) SMTP Server 10.53.12.18
5) Email To [email protected]
6) Email From [email protected]
7) Trigger Field USR_UDF_SITECODE
8) Disable Resource RACF,RACF IMS_TMCC (AutoProvision)
9) ID Field UD_RACF_ID,UD_IMSB_ID
10) Resource Object RACF IMS_TMCC (AutoProvision)
11) RO Form UD_RACFUSRO
12) Field 01 Name UD_RACFUSRO_CREATE_IND
13) Field 01 Value RACF_CREATE
14) Field 02 Name UD_RACFUSRO_USER_TYPE
15) Field 02 Value IMS_TMCC
16) Translate Email Def Department Code Lookup Error
17) RBAC Job Codes List RBAC Job Codes
18) RBAC Departments List RBAC Departments
19) Job Code Field USR_UDF_JOB_CODE
SMTP Server : 10.53.12.18
Email To : [email protected]
Email From : [email protected]
Lookup Name : Department SiteCode Mapping
From Field : USR_UDF_DEPARTMENT_ID
Translate Email Def : Department Code Lookup Error
To Field : USR_UDF_SITECODE
t c D e p t C o d e C h a n g e d
User: ()
Old Department Code:
New Department Code: 064010
G E T U S E R R E S O U R C E
This is a create
More than one User Record Found, most likely a create
Number of Users: 12843
G E T L O O K U P D E F I N I T I O N S
Lookup rows: 210
Nr Name Value
E V A L U A T E F I E L D D A T A
*ACT: :
*OLD: :
*NEW: 064010 : 014
OLD VALUE NOT FOUND IN LOOKUP!
U P D A T E S I T E C O D E F I E L D
Running MANAGERSEARCHCONDITIONS
Target Class = com.thortech.xl.util.adapters.tcUtilHashTableOperations
Running FINDMANAGER
Running GETMANAGERCOUNT
Running GETMANAGERKEY
Running GENUNIQID
Target Class = com.thortech.xl.utils.tcUserData
<TMS 101> Flag:<Both> Checking for user in AD: khanz at server: <10.49.61.101>
<TFS 185> Flag :<Both> Checking for user in AD: khanz at server:<10.49.61.101>
Running CREATEGETUSERMAP
Target Class = com.thortech.xl.util.adapters.tcUtilHashTableOperations
Running GETUSER
Running Create Update User Map
Running Update Update User Map
Running UPDATEUSER
tcDeptCodeChanged Running
Nr Name Value
0) Lookup Name Department SiteCode Mapping
1) From Field USR_UDF_DEPARTMENT_ID
2) To Field USR_UDF_SITECODE
3) Debug YES
4) SMTP Server 10.53.12.18
5) Email To [email protected]
6) Email From [email protected]
7) Trigger Field USR_UDF_SITECODE
8) Disable Resource RACF,RACF IMS_TMCC (AutoProvision)
9) ID Field UD_RACF_ID,UD_IMSB_ID
10) Resource Object RACF IMS_TMCC (AutoProvision)
11) RO Form UD_RACFUSRO
12) Field 01 Name UD_RACFUSRO_CREATE_IND
13) Field 01 Value RACF_CREATE
14) Field 02 Name UD_RACFUSRO_USER_TYPE
15) Field 02 Value IMS_TMCC
16) Translate Email Def Department Code Lookup Error
17) RBAC Job Codes List RBAC Job Codes
18) RBAC Departments List RBAC Departments
19) Job Code Field USR_UDF_JOB_CODE
SMTP Server : 10.53.12.18
Email To : [email protected]
Email From : [email protected]
Lookup Name : Department SiteCode Mapping
From Field : USR_UDF_DEPARTMENT_ID
Translate Email Def : Department Code Lookup Error
To Field : USR_UDF_SITECODE
tcDeptCodeChanged: new and old field value is same, returning
tcJobCodeStatusChanged Running
0) Trigger Field USR_UDF_JOB_CODE
1) Debug YES
2) Request Key Resource AD User
3) Request Key Field UD_ADUSER_REVOKE_REQ_KEY
4) RACF B User ID Field UD_ADUSER_B_USERID
5) RACF T User ID Field UD_ADUSER_T_USERID
6) RACF I User ID Field UD_ADUSER_I_USERID
7) RACF B Resources RACF IMS_TMCC (AutoProvision)
8) RACF I Resources RACF IMS_TMIS (AutoProvision)
9) RACF T Resources RACF TSO_TMCC_NP (AutoProvision),RACF TSO_TMIS_NP (AutoProvision)
10) Common Resources Lotus Notes,LAN,Internet,Stars,Focus
11) Exclusion List Lookup.Object Exclusion List
12) Other Delete Resources Lookup.Other Delete Resources
13) RBAC Job Codes List RBAC Job Codes
14) RBAC Departments List RBAC Departments
Trigger Field : USR_UDF_JOB_CODE
newFieldValue 99O109 oldFieldValue 99O109
terminationFlag 0 oldTerminationFlag 0
processFlag N
tcJobCodeStatusChanged: new and old field value is same, returning
ERROR,28 Dec 2010 05:49:05,199,[XELLERATE.SERVER],Class/Method: tcDataObj/eventPostUpdate encounter some problems: com.thortech.xl.dataobj.util.tcProvPolicyUtils
java.lang.InstantiationError: com.thortech.xl.dataobj.util.tcProvPolicyUtils
at com.thortech.xl.client.events.tcUSRevaluatePolicies.evaluatePolicies(Unknown Source)
at com.thortech.xl.client.events.tcUSRevaluatePolicies.implementation(Unknown Source)
at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcUSR.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.updateUserData(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.updateUser(Unknown Source)
at com.thortech.xl.ejb.beans.tcUserOperationsSession.updateUser(Unknown Source)
at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl.updateUser(tcUserOperations_voj9p2_EOImpl.java:1995)
at Thor.API.Operations.tcUserOperationsClient.updateUser(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
at $Proxy61.updateUser(Unknown Source)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpSETBOOLEANVALUES.UPDATEUSER(adpSETBOOLEANVALUES.java:271)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpSETBOOLEANVALUES.implementation(adpSETBOOLEANVALUES.java:89)
at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcORC.insertNonConditionalMilestones(Unknown Source)
at com.thortech.xl.dataobj.tcORC.completeSystemValidationMilestone(Unknown Source)
at com.thortech.xl.dataobj.tcORC.postInsertSysVal(Unknown Source)
at com.thortech.xl.dataobj.tcORC.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.util.tcOrderPackages.createProcessORC(Unknown Source)
at com.thortech.xl.dataobj.util.tcOrderPackages.createOrder(Unknown Source)
at com.thortech.xl.dataobj.util.tcOrderPackages.createOrder(Unknown Source)
at com.thortech.xl.dataobj.util.tcOrderPackages.orderPackageForOrganization(Unknown Source)
at com.thortech.xl.dataobj.tcOIO.provision(Unknown Source)
at com.thortech.xl.dataobj.tcOIO.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcOrgProvisionObject.insertImplementation(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcUSR.orderUserProcess(Unknown Source)
at com.thortech.xl.dataobj.tcUSR.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcRCE.createUserRecord(Unknown Source)
at com.thortech.xl.dataobj.tcRCE.applyActionRules(Unknown Source)
at com.thortech.xl.dataobj.tcRCE.checkDataSorted(Unknown Source)
at com.thortech.xl.dataobj.tcRCE.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcRCE.finishDataReceived(Unknown Source)
at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages.finishReconciliationEvent(Unknown Source)
at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages.execute(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.processMessage(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.ReconMessageHandlerMDB.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
ERROR,28 Dec 2010 05:49:05,207,[XELLERATE.SERVER],Class/Method: tcDataObj/save Error :Data Update Failed
ERROR,28 Dec 2010 05:49:05,210,[XELLERATE.DATABASE],Class/Method: tcDataBase/rollbackTransaction encounter some problems: Rollback Executed From
java.lang.Exception: Rollback Executed From
at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.rollback(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.doRollback(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.updateUserData(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.updateUser(Unknown Source)
at com.thortech.xl.ejb.beans.tcUserOperationsSession.updateUser(Unknown Source)
at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl.updateUser(tcUserOperations_voj9p2_EOImpl.java:1995)
at Thor.API.Operations.tcUserOperationsClient.updateUser(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
at $Proxy61.updateUser(Unknown Source)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpSETBOOLEANVALUES.UPDATEUSER(adpSETBOOLEANVALUES.java:271)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpSETBOOLEANVALUES.implementation(adpSETBOOLEANVALUES.java:89)
at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcORC.insertNonConditionalMilestones(Unknown Source)
at com.thortech.xl.dataobj.tcORC.completeSystemValidationMilestone(Unknown Source)
at com.thortech.xl.dataobj.tcORC.postInsertSysVal(Unknown Source)
at com.thortech.xl.dataobj.tcORC.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.util.tcOrderPackages.createProcessORC(Unknown Source)
at com.thortech.xl.dataobj.util.tcOrderPackages.createOrder(Unknown Source)
at com.thortech.xl.dataobj.util.tcOrderPackages.createOrder(Unknown Source)
at com.thortech.xl.dataobj.util.tcOrderPackages.orderPackageForOrganization(Unknown Source)
at com.thortech.xl.dataobj.tcOIO.provision(Unknown Source)
at com.thortech.xl.dataobj.tcOIO.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcOrgProvisionObject.insertImplementation(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcUSR.orderUserProcess(Unknown Source)
at com.thortech.xl.dataobj.tcUSR.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcRCE.createUserRecord(Unknown Source)
at com.thortech.xl.dataobj.tcRCE.applyActionRules(Unknown Source)
at com.thortech.xl.dataobj.tcRCE.checkDataSorted(Unknown Source)
at com.thortech.xl.dataobj.tcRCE.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcRCE.finishDataReceived(Unknown Source)
at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages.finishReconciliationEvent(Unknown Source)
at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages.execute(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.processMessage(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.ReconMessageHandlerMDB.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)Search on metalink for the following error to see lots of documents related to this error and the specific solution.
[XELLERATE.SERVER],Class/Method: tcDataObj/eventPostUpdate encounter some problems: com.thortech.xl.dataobj.util.tcProvPolicyUtils
java.lang.InstantiationError: com.thortech.xl.dataobj.util.tcProvPolicyUtils -
Disabling user through API call -process task-followed by an Enable User...
Hi,
I am running on OIM 9.1 BP11. I implemented a process task to disable the user based on a URS form field change.
I can confirm from the log file and the resource that the Disable user (xellerate user) happened. But the user got enabled back right away. The log file showed that a scheduled task named "Enable User After Start Date" ran and enable the user. So, I disabled that scheduled task.
Then I repeated the test again. I observed the same behavior of user being disabled and enabled again but this time, OIM called an adapter. This is what I observed in the log file:
20988 INFO,20 Oct 2010 12:21:56,519,[XELLERATE.DATABASE],DB read: select evt.ev t_key, evt.evt_name, evt.evt_package, mil.mil_name from mil mil, evt evt w here evt.evt_key = mil.evt_key and mil.mil_key=10
20989 DEBUG,20 Oct 2010 12:21:56,519,[XELLERATE.DATABASE],select evt.evt_key, ev t.evt_name, evt.evt_package, mil.mil_name from mil mil, evt evt where evt. evt_key = mil.evt_key and mil.mil_key=10
20990 INFO,20 Oct 2010 12:21:56,519,[XELLERATE.PERFORMANCE],Query: DB: 0, LOAD: 0, TOTAL: 0
20991 DEBUG,20 Oct 2010 12:21:56,519,[XELLERATE.SERVER],Class/Method: tcBusiness Obj/getSqlOperationFromMembers entered.
20992 DEBUG,20 Oct 2010 12:21:56,519,[XELLERATE.SERVER],Class/Method: tcBusiness Obj/getSqlOperationFromMembers left.
20993 DEBUG,20 Oct 2010 12:21:56,519,[XELLERATE.ADAPTERS],Class/Method: tcADPCla ssLoader/getClassLoader entered.
20994 DEBUG,20 Oct 2010 12:21:56,519,[XELLERATE.ADAPTERS],Class/Method: tcADPCla ssLoader/getClassLoader left.
20995 DEBUG,20 Oct 2010 12:21:56,520,[XELLERATE.ADAPTERS],Class/Method: tcADPCla ssLoader/findClass entered.
20996 INFO,20 Oct 2010 12:21:56,530,[XELLERATE.ADAPTERS],Adapter: Enabling the User was initiated for the task: Enable User.
20997 INFO,20 Oct 2010 12:21:56,531,[XELLERATE.JAVACLIENT],System Event Handler : Enabling the User
I did exactly the same disabling user process at another client and it worked fine. I don't understand what causes OIM to call this system Event handler to re-enable the user.
Please help.
Thanks
KhanhDo you have any Entity Adapter or Event Handler or Trigger which enables user for some condition ?
Check your environment. If you have please remove that and try.
Does this user has and provisioned resource ? If yes, try for some other user which doesn't have resource provisioned. -
How to use Powershell to update user details in Active Directory?
Hi,
I received an updated contact list from HR of about 1500 names, and I want to update (make corrections and add missing data) ADUC quickly without having to do each user manually. How would I go about that using power-shell?
The fields that need updating are:
Under the General tab -> Description, Telephone number
Everything under the Address tab
Under the Telephone tab - > Mobile
Under the Organization tab -> Job Title, Department, Company, Manager
The server we're using is Windows Server 2008 R2.
Many thanks,
NickThere are 100 of such scripts are there online.
here are few tips and codes. you will get more.
https://gallery.technet.microsoft.com/scriptcenter/Feeding-data-to-Active-0227d15c
http://blogs.technet.com/b/heyscriptingguy/archive/2012/10/31/use-powershell-to-modify-existing-user-accounts-in-active-directory.aspx
http://powershell.org/wp/forums/topic/ad-import-csv-update-attributes-script/
Please mark this as answer if it helps -
Update Customer User Details Form
I'm pretty new to BC so hope someone can help me out with this.
I'm wanting to create a Secure Login page that allows my customers to login and update their Account details that they have provided with a (Custom Registration form), due to some customer fields
My problem is that the Secure Zone is setup fine, however under Site Modules --> SecureZones --> Update User Details form does not have the fields which I need it to update from the Customer Registration Form.
What I've done is below:
1. Setup a secure login page
2. Upon login it is redirected to the Update Details page
3. Within the Update Details page, I have inserted the module "Update User Details form"
However I'm not sure how to customize the form in order for it to update/edit information retrieved from other forms.
Hope someone can help. Thanks!Hey there,
You can, what your probably missing is selecting the dropdown where you choose to include the CRM data. -
Update Request User Details with updateRegistrationUserDetails
Hi,
I have the following scenario: The Self-Registration form is defined with the fields First Name, Middle Name, Last Name, Manager Login. When the request is created, based on the Manager Login, the other user's attributes are set according to the Manager's Attributes. So when the manager goes to approve the request, most of the user information are already set. To update the User Details in the request, I can call the updateRegistrationUserDetails of Request API.
Problem: I can not update the fields other than those defined in the FormMetadata.Xml. So I have to add the fields and set them as optional but I don't want to show non required fields to the end-user. I wish to have those attributes as not visible in the self-request form. Then I can update the information using the API.
Question: How to add fields to the User Details of the request and not show them in the self-request form?
Thanks,As I've said, I could not update the request fields that were not declared in the FormMetadata.xml. You can try set them as not visible but I am not sure the visibile attribute works for the SelfRegistration form. If it is not a problem, you can show the fields and set them as optional true. In my exaple, the SelfReg form has a manager employee code field.
Create an entity adapter and assign it to the Request object, pre-insert.
1) create two variables: requestKey, requestObjecAction, managerEmpCode (in my example)
2) test if the request object action is Create Entity.
3) call the method to update the request. below is my example:
// Updates the request with the information of manager: Manager Login,
// Location, Department and Organization
public String updateRequestWithManagerInfo(long requestKey, String managerEmpCode) {
String result = JavaTaskBase.EXECUTION_ERROR;
logger.debug("******** Starting updateRequestWithManagerInfo *************");
logger.debug("requestKey: " + requestKey);
logger.debug("managerEmpCode: " + managerEmpCode);
try {
HashMap<String, String> filter = new HashMap<String, String>();
filter.put(JavaTaskBase.USR_UDF_EMPLOYEE_ID, managerEmpCode);
String[] columns = new String[] { JavaTaskBase.USER_KEY_FIELD,
JavaTaskBase.USER_LOGIN_FIELD, JavaTaskBase.USR_UDF_LOCATION,
JavaTaskBase.USR_UDF_HR_DEPARTMENT,
JavaTaskBase.ORGANIZATION_ATTRIBUTE_NAME };
logger.debug("Querying User by EmpCode...");
// Update Request Attributes: requestKey, ManagerId
tcResultSet resultSet = this.getUserOperations().findUsersFiltered(filter, columns);
logger.debug("tcResultSet.getTotaRowCount(): "+ resultSet.getTotalRowCount());
resultSet.goToRow(0);
String organizationName = resultSet.getStringValue(JavaTaskBase.ORGANIZATION_ATTRIBUTE_NAME);
String managerLogin = resultSet.getStringValue(JavaTaskBase.USER_LOGIN_FIELD);
String managerLocation = resultSet.getStringValue(JavaTaskBase.USR_UDF_LOCATION);
String managerDepto = resultSet.getStringValue(JavaTaskBase.USR_UDF_HR_DEPARTMENT);
String managerKey = resultSet.getStringValue(JavaTaskBase.USER_KEY_FIELD);
logger.debug("Manager Organization: " + organizationName);
logger.debug("Manager Login: " + managerLogin);
logger.debug("Manager Location: " + managerLocation);
logger.debug("Manager Department: " + managerDepto);
logger.debug("Manager Key: " + managerKey);
// Prepares the information to update the request
HashMap<String, String> values = new HashMap<String, String>();
values.put(JavaTaskBase.ORGANIZATION_ATTRIBUTE_NAME, organizationName);
values.put(JavaTaskBase.USR_UDF_LOCATION, managerLocation);
values.put(JavaTaskBase.USR_UDF_HR_DEPARTMENT, managerDepto);
values.put(JavaTaskBase.USER_MANAGER_LOGIN, managerLogin);
logger.debug("Updating Request Info...");
// Updates the request
this.getRequestOperations().updateRegistrationUserDetails(
requestKey, values);
logger.debug("Request Updated Successfulfy.");
result = managerKey;
} catch (Exception ex) {
logger.error("Error in updateRequestWithManagerInfo method", ex);
ex.printStackTrace();
result = JavaTaskBase.EXECUTION_ERROR;
return result;
thanks,
Renato. -
Hi Gurus,
I have a java class to modify the usr_manager_key field.
When i use the code
public void updateManagerKey(String fieldUserKey,
String fieldManagerKey) throws Exception {
String str1 = "updateManagerKey";
this.logger.info(this.className, str1, "Enter at updateManagerKey ");
List<User> result = null;
SearchCriteria criteria =
new SearchCriteria("usr_key", fieldUserKey, SearchCriteria.Operator.EQUAL);
try {
result = service.search(criteria, null, null);
this.logger.info(this.className, str1, "getManagerKey "+result.get(0).getManagerKey());
result.get(0).setManagerKey(fieldManagerKey);
service.modify("usr_key",fieldUserKey, result.get(0));
} catch (AccessDeniedException e) {
e.printStackTrace();
} catch (Exception e) {
this.logger.info(this.className, str1, "Error at UpdateManager "+e.getMessage());
e.printStackTrace();
}I get the error
[2011-08-16T20:32:46.067-03:00] [oim_server1] [NOTIFICATION] [] [OIMCP.UPDATEMANAGERIDOU] [tid: OIMQuartzScheduler_Worker-5] [userId: oiminternal] [ecid: 0000J7J2JEHBt1NpyG1FiW1EIc5F000002,0] [APP: oim#11.1.1.3.0] br.com.xxx.idm.UpdateManagerIdOU : updateManagerKey : Error at UpdateManager IAM-3056148:usr_created is a System Attribute and cannot be set through API.:usr_createdI understand then i can't to update from java api?
Thanks in advancedI got any errors with this code, tried any forms, and with same code, worked fine.
public void updateManagerKey(String fieldUserKey, Object fieldManagerKey,
String fieldUserLogin,
String fieldEmail) throws Exception {
String str1 = "updateManagerKey";
this.logger.debug(this.className, str1, invoker+" Enter at updateManagerKey ");
UserManagerResult result = null;
HashMap<String, Object> atrrMap = new HashMap<String, Object>();
try {
atrrMap.put("usr_manager_key", fieldManagerKey);
atrrMap.put("POSSUI_LIDER", "1");
atrrMap.put("Email",
fieldEmail == null ? fieldUserLogin + "@mail.com" :
fieldEmail);
User user = new User(String.valueOf(fieldUserKey), atrrMap);
result =
service.modify("User Login", String.valueOf(fieldUserLogin), user);
} catch (AccessDeniedException e) {
this.logger.error(this.className, str1,
invoker+" Error at AccessDeniedException UpdateManager " +
e.toString());
} catch (ClassCastException e) {
this.logger.error(this.className, str1,
invoker+" Error at ClassCastException UpdateManager " + e.toString());
} catch (Exception e) {
this.logger.error(this.className, str1,
invoker+" Error at UpdateManager " + e.toString());
this.logger.error(this.className, str1,
invoker+" Error at UpdateManager " + e.toString());
throw new Exception(invoker+" Error at UpdateManager " + e.toString());
this.logger.debug(this.className, str1, invoker+" Exiting UpdateManager");
} -
If you create Portal users through the API and then amend user
detail via the API using wwsec_api.modify_user then you find that
when the user logs into Portal, there details aren't visible from
the maintain user screen.
How do we synchronize the data we have just added via the API
call into, presumably the Portal30 schema?
It can be seen that their details on portal30_sso.wwsec_person$
are correct, however the corresponding table in the portal30
schema still contains the old user information. How can we
synchronize the two ? Preferably using an API
call?I also have a similar ?, is changing user name a normal case scenario or a big problem in portal
Please reply -
How to update the loggedin user details using iuser
Hi,
our requirement is to edit and save the logged in user details retrieved from iusercontext.
Please anyone help me out.
please provide any sample code snippet regarding the same.
Thank you,
Hareesh
Edited by: hareeshvenkat on Aug 30, 2011 12:42 PM
Edited by: hareeshvenkat on Aug 30, 2011 2:03 PMHello,
You can change details of the user via IUserMaint interface.
for example this is how you change the language of the user :
IUserMaint Muser = uf.getMutableUser(userUniqueid);
boolean res = Muser.setLocale(new Locale("en"));
Muser.commit();
You can find details about IUserMaint in [http://help.sap.com/javadocs/NW04S/SPS09/se/com/sap/security/api/IUserMaint.html]
Constantine -
"User Details" don't get updated
Hi,
we have strange phenomenon that after editing user details like contact information etc. the User Details page in collaboration is not showing anything of the new data. Even an inkremental Index-Update has no effect on this - whereas in UME the new data is shown properly!
Can somebody give a hand on this issue?!
brHi,
You need to check first that the "Room Content Location" of the room.You need to modify the details of the user on the same node mentioned in "Room Content Location".If you modify the details in some other node it won't get reflected in the team room's contact information.
For eg:- If the "Room Content Location" for a particular team room is UK Portal node then we need to modify the user details from that node only.If we try to modify them from any other node the change won't get reflected.
Hope this helps.
Neha. -
Hi,
Does anyone know if there is an api to update user mapping ids for users in EP6.0 Portal Database.
I know it can be done in the standard User Import with the inclusion of $usermapping$ but wanted to know of there is a way to do it in a bespoke program to help automate the addition of portal users who will require access to the connected R/3 system (of which there will be many).
Thanks for any help you can offer,
Steve.Hi Steve
Try the following code.
IPortalComponentRequest req = (IPortalComponentRequest) this.getRequest();
IUserMappingService iumser = (IUserMappingService) PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);
IUserMappingData iumdata = iumser.getMappingData("System Alias", req.getUser());
Map map = new HashMap();
try {
iumdata.enrich(map);
} catch (Exception e) {}
String userid = (String)map.get ("user");
String password = (String)map.get ("mappedpassword");
The following code stores usermapping info.
IPortalComponentRequest req = (IPortalComponentRequest) this.getRequest();
IUserMappingService umapser = (IUserMappingService)
PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);
IUser userid = req.getUser();
IUserMappingData iumdata = umapser.getMappingData ("System Alias", userid);
Map map = new HashMap ();
try {
map.put("user","userid");
map.put("mappedpassword","password");
iumdata.storeLogonData(map);
} catch (Exception e) {response.write(e.getMessage());}
Hope this helps.
Regards,
Yoga -
Pull User details from Oracle Table (TSS) to OIM
Hi
I am learning OIM so, please excuse if this is a silly question.
I have created a Generic Technology Connector to connect to a user table in oracle database with correct parameters and the GTC was successful. I have done the field mapping between the source table - reconcilation staging and OIM.
Now that I want to see the sample user details that I have stored in the oracle user table from the OIM.
I have assumed that this oracle user table is the Trusted Source System and I have to pull the data from this table to OIM.
So, after creating the connector, what is the next step i need to do so that I see these sample users in the OIM.
I appreciate any help / directions.
Thanks
SriramHi,
You have to do following:
1.Run the GTC schedule task.
2.Go to reconciliation manager and see if reconciliation event is getting generated and event is getting linked.
3.When reconciliation is finished just go to web console.Users->Manage->Search
Please let me know if you have any follow up questions
Regards
Nitesh -
Get user details from OIM User From based on Last modified time stamp
Hi Gurus,
I have a requirement that i want user details from OIM(11gr1) User form based on some time stamp.
suppose my time stamp is 201401011130.
And i changed one user in user form at 201401011200 (let sau user name is mahesh)
now when i run the java code based on the time stamp i want mahesh details. How can i do this.
Please let me know.
Regards
MaheshThis is how you can run sql query.
String query="write sql query";
Connection con=Platform.getOperationalDS().getConnection();
Statement st=con.prepareStatement(query); // PreparedStatement is preferable instead of Statement
ResultSet rs=st.executeQuery();
while(rs.next())
String userlogin =rs.String("usr_login"); -
OID API+ User details access
Hi,
We are using below API to get the user details defined in OID,
public static javax.naming.ldap.InitialLdapContext getDefaultDirCtx(java.lang.String host,
java.lang.String port,
java.lang.String bindDN,
java.lang.String bindPwd)
then create user object based on ldap context.Currently we read the bindDN and bindPwd from properties file. What is the best way to keep the bindPwd ? We dont want keep in properties file.Enter the passphrase that controls access to the key on the command line when starting OC4J that portal runs on.OK. We used the ansatz from http://oracletechy.blogspot.com/2008_09_01_archive.html
Put a parameter in web.xml, say jndi-password:
<env-entry>
<description>Password for jndi</description>
<env-entry-name>jndi-password</env-entry-name>
<env-entry-value>thisisawrongpassword</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
Then read it in via
Context initial = new InitialContext();
Context environment = (Context)initial.lookup("java:comp/env");
st_jndi_password = (String)environment.lookup("jndi-password");
We use this for an hashtable
hashtable.put(Context.SECURITY_CREDENTIALS, st_jndi_password);
This is the input for an new
InitialLdapContext(hashtable, null);
After the deployment the administrator must change the parameter jndi-password in the web.xml to the true OID passwort. But of course not by editing the file but using OC4J's OEM to change the environment variable.
But now we find the password in the file orion-web.xml which is not what we have intended....
Edited by: t142980 on Apr 7, 2009 8:59 AM
Maybe you are looking for
-
Browser can't find a text file opened via the save as dialogue box
Hi there, I have a servlet which outputs a file using the servlet output stream, with the following lines set: response.setContentType("application/msword"); response.setHeader("Content-Disposition", "attachement; filename="+ fileName); servletOutStr
-
Vendor not getting purchase order automatically by E-Mail .
Dear All , User hd crtd a Purchase Order for merchandising catalogue , but user notices that vendor had not get the purchase order thru e mail , althought i hv chkd in m
-
Fingerprint scanner on Win 7 64-bit slows machine
Brand New Tecra R840. Running Windows 7 Enterprise 64 bit. Any ideas on how to make the fingerprint utility more responsive. There is a 3-10 second lag when trying to log in , or unlock the computer. It scans just fine, but the time between the compu
-
How to update SP2010 sites that are missing the Visual Upgrade options
So, we are moving towards upgrading some SP 2010 sites that are currently using the old SP 2007 look and feel so that they have the new ribbon Visual Upgrade. For some reason, some of these sites do not have the Site Actions > Visual Upgrade option n
-
Bootcamp problem while downloading software
Hello, I'm trying to install Windows 7 via bootcamp assistant, but I've always the same problem. While downloading the newest software and drivers for my mac book air (this is the first step of all), the download aborts with the message "The software