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
Get Started with Redwood for Oracle Cloud HCM   Begin Now
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.

For more information, please refer to this announcement explaining best practices for getting answers to questions.

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!