Create user in Oracle Fusion (Backend table details included). Know how to view First Name, Last Name, Email of fusion user.



To create user in Oracle Fusion follow the below steps:


  • Login to fusion instance with credentials of the user having role "IT Security Manager" assigned to it
  • Go to Navigator -> Security Console -> Users. Then click on "Add User Account" 
            

    
    
  • Enter the required fields. By Default, Email field is defaulted to User Name field. You can change it if you want.
        



  • You can now Click on Save and Close 
  • You can now run the below query to check the user details
select * from PER_USERS  where username='john.wick';

PER_USERS  table stores one record per fusion system user and maps to a single LDAP user. 



select * from PER_LDAP_USERS where user_guid='F47207B750F25150E0530E7A660A3AD0';

PER_LDAP_USERS Table stores one record for each user to be processed in OIM when creating new users or maintaining user details.


  • Now open the user record again by searching with User Name. Click on the Display Name link to open the record



  • Click on Edit button to edit the record

  • Change the Last Name, First Name and Email as below and then click on Save and Close button




  • Now run the below query:

select 
    LDAP_USER_ID, LDAP_REQUEST_ID, REQUEST_TYPE, REQUEST_STATUS, USER_GUID,USERNAME,
    LAST_NAME,	FIRST_NAME,	EMAIL, LAST_UPDATE_DATE
from PER_LDAP_USERS where user_guid='F47207B750F25150E0530E7A660A3AD0'
order by last_update_date;



Here we can see that REQUEST_TYPE = UPDATE is added when we modified the user record. So, to know first name, last name, email of any user we need to look at latest record in PER_LDAP_USERS with REQUEST_STATUS =  COMPLETE
  • Edit the user record again and click on Add Role and add the below roles then click on Add Role Membership:





  • Click on Save and Close button to save the changes. Run the below query to check roles assigned to the user:
select  a.username,
        c.role_name 
from    per_users a, 
        per_user_roles b, 
        per_roles_dn_vl c 
where   a.user_id=b.user_id 
and     b.role_id=c.role_id 
and     username='john.wick';
You can also run the below query to get user details:

SELECT 
	 pu.user_id
	,pu.user_guid
	,papf.person_id
	,papf.effective_start_date
	,papf.effective_end_date
	,papf.person_number
	,pu.username
	,NVL(
		ppnf.first_name,(
			SELECT 	ldu.first_name FROM PER_LDAP_USERS ldu 
			WHERE 	ldu.username 	= pu.username 
			AND 	ldu.user_guid 	= pu.user_guid 
			AND 	ldu.creation_date = (
				SELECT 	MAX(ldu1.creation_date) 
				FROM 	PER_LDAP_USERS ldu1 
				WHERE 	ldu1.username 	= ldu.username 
				AND 	ldu1.user_guid 	= ldu.user_guid
			)
		)
	) AS FIRST_NAME
	,NVL(
		ppnf.last_name,(
			SELECT 	ldu.last_name FROM PER_LDAP_USERS ldu 
			WHERE 	ldu.username 	= pu.username 
			AND 	ldu.user_guid 	= pu.user_guid 
			AND 	ldu.creation_date = (
				SELECT 	MAX(ldu1.creation_date) 
				FROM 	PER_LDAP_USERS ldu1 
				WHERE 	ldu1.username 	= ldu.username 
				AND 	ldu1.user_guid 	= ldu.user_guid
			)
		)
	) AS LAST_NAME
	,NVL(
		pea.email_address,(
			SELECT 	ldu.email FROM PER_LDAP_USERS ldu 
			WHERE 	ldu.username 	= pu.username 
			AND 	ldu.user_guid 	= pu.user_guid 
			AND 	ldu.creation_date = (
				SELECT 	MAX(ldu1.creation_date) 
				FROM 	PER_LDAP_USERS ldu1 
				WHERE 	ldu1.username 	= ldu.username 
				AND 	ldu1.user_guid 	= ldu.user_guid
			)
		)
	) AS EMAIL
	,pu.active_flag
FROM
	 per_users pu
	,per_all_people_f papf
	,per_person_names_f ppnf
	,per_email_addresses pea
WHERE	1=1
AND	pu.PERSON_ID = papf.person_id (+) 
AND pu.person_id = ppnf.person_id (+) 
AND pu.person_id = pea.person_id  (+) 
AND pu.username in( 'username')
AND NVL(ppnf.name_type,'GLOBAL') 	= 'GLOBAL'
AND NVL(pea.email_type,'W1') 		= 'W1'
AND papf.effective_start_date = (
		select max(papf1.effective_start_date) from per_all_people_f papf1 
		where papf1.person_id =papf.person_id 
	);
;
Source: https://docs.oracle.com/

Comments

All Categories

Call Fusion BIP Report2 Change Password1 Code Combinations2 Compute Instance2 CTE1 Custom Images1 Customer1 Data Aggregation2 Database5 Date Conversion1 DB Adapter2 Decryption1 Development1 EBS4 Encryption1 ESS Jobs3 Examine1 FBDI3 Fusion APIs1 Fusion BIP7 GIT2 GL3 GL Journals1 GL_DAILY_CONVERSION_TYPES1 GL_DAILY_RATES1 ICS1 Identity Domain1 Integrations1 Java1 Journal Import1 Keys1 Legal Entity1 LookupTypeLOV1 LOV1 LOVs1 MultiPartAPIs1 Networking1 NVL2 NVL in OIC2 OCI13 OCI Billing1 OCI Compute6 OCI Cost Management1 OCI Events Service1 OCI Free Tier3 oci networking1 OCI Notifification Service1 OCI Security3 OIC4 OIC Mapper2 Oracle26 Oracle ADF17 Oracle APEX1 Oracle Apps59 Oracle Apps R126 Oracle ATP1 Oracle BIP8 Oracle Cloud13 Oracle Cloud Free Tier1 Oracle cloud Infrastructure10 Oracle Cloud Security2 Oracle Cloud VM1 Oracle DB4 oracle ebs5 Oracle ERP4 Oracle ERP Adapter2 Oracle ERP Cloud7 Oracle financials2 Oracle Forms1 Oracle Fusion57 Oracle Fusion BIP4 Oracle Fusion ERP17 Oracle Fusion Financials18 Oracle Integration Cloud3 Oracle OAF17 Oracle OCI14 Oracle OIC22 Oracle SOA 12c10 Oracle SQL17 Oracle VBCS1 Oracle VBS2 Oracle Visual Builder Cloud Service1 Oracle Visual Builder Studio2 Oracle Workflow Notifications1 OracleCloudTutorial1 Others10 Payables2 Payables Import1 Properties1 R121 Register BIP as ESS Job1 Reset Password1 Responsibility1 REST4 Security List1 Site Map1 SOAP2 SOAP API2 SOAP UI3 SQL16 SQL Functions3 SQL Queries14 SQL Query8 SQL Tips3 SSH1 TCA1 Value Sets1 VBCS1 vcn1 Virtual Machine2 Virtual Machines1 XML1 XSLT1
Show more