Query to get non person account details — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Query to get non person account details

edited May 28, 2019 6:16AM in Reporting and Analytics for HCM 2 comments

Summary

Query to get non person account details

Content

Using the below query to get the non person account details but for few users the first name, lastname and email addresses are blank.

SELECT DISTINCT

    PU.USERNAME,

    PLU.FIRST_NAME,

    PLU.LAST_NAME,

    PLU.EMAIL

   

    FROM

    PER_USERS PU,

    PER_LDAP_USERS PLU,

    PER_USER_ROLES PUR

 

    WHERE

    NOT EXISTS(SELECT 1 FROM PER_ALL_PEOPLE_F PER WHERE PU.PERSON_ID = PER.PERSON_ID)

    AND PU.USER_ID = PUR.USER_ID

    AND PUR.ACTIVE_FLAG = 'Y'

    AND PLU.USERNAME(+) = PU.USERNAME

    AND (PLU.LAST_UPDATE_DATE = (SELECT MAX(PLU1.LAST_UPDATE_DATE) FROM PER_LDAP_USERS PLU1 WHERE PU.USERNAME = PLU1.USERNAME) OR PLU.LAST_UPDATE_DATE is null)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!