Blogs

SQL Query for Retrieving Inactive Users in Oracle Fusion BI Report

1Trooper - SQL Query for Retrieving Inactive Users in Oracle Fusion BI Report

The following SQL query is designed to identify inactive or suspended users in Oracle Fusion BI Reports, helping administrators maintain user governance, compliance, and license efficiency.

This query retrieves all users whose accounts are inactive (ACTIVE_FLAG = ‘N’) or suspended (SUSPENDED = ‘Y’) within the Oracle Fusion environment, ensuring better visibility and control over user access.

SELECT *

FROM “FUSION”.”ASE_USER_VL” “ASE_USER_VL”

WHERE EXISTS (

    SELECT ‘1’

    FROM “FUSION”.”PER_USERS” “PER_USERS”

    WHERE UPPER(“ASE_USER_VL”.”USER_DISPLAY_NAME”) = UPPER(“PER_USERS”.”USERNAME”)

      AND (“PER_USERS”.”ACTIVE_FLAG” = ‘N’ OR “PER_USERS”.”SUSPENDED” = ‘Y’)

);

Query Highlights

  • ASE_USER_VL: Stores user profile information in Oracle Fusion.
  • PER_USERS: Contains login details and account statuses of Fusion users.
  • The EXISTS clause links both tables to fetch only users whose display name matches their username.
  • The condition checks for users who are either inactive or suspended, indicating restricted access.

Business Use Case

This query supports organizations in:

  • Auditing user access and identifying dormant accounts.
  • Improving license utilization by removing inactive users.
  • Enhancing compliance with access control policies.
  • Preventing unauthorized access and strengthening data security posture.

By running this query periodically in Oracle BI Publisher or scheduling it within your Fusion Analytics setup, teams can maintain a clean and compliant user database, ensuring only active users retain access to enterprise systems.

Frequently Asked Questions

Q1.What topics does the SQLGuru.ai blog cover?

The SQLGuru.ai blog explores how AI is transforming SQL generation, data analytics, and license management for enterprises. From simplifying complex queries to optimizing ERP performance and tracking software usage, we share actionable insights to help both data teams and business users work smarter.

Our blog helps organizations make smarter decisions around access control, audit readiness, and governance strategy. You’ll gain actionable knowledge to improve your security posture, reduce compliance risk, and streamline operations across ERP systems.

The SQLGuru.ai blog is designed for data analysts, BI teams, IT leaders, and finance professionals who want to harness AI to improve data accessibility, compliance, and license cost optimization. It’s ideal for anyone bridging technical and business operations through smarter, AI-driven insights.

Share the Post:

Recent Blogs

Welcome to the 1Trooper Blog — your space for insights, updates, and ideas on digital growth. Here we share strategies, tips, and stories to help brands thrive in today’s fast-paced digital world.

Segregation of Duties Analysis: Finding the Right Frequency

One of the most common questions organizations ask when implementing Segregation of....

Unveiling the Key Aspects of Segregation of Duties (SoD)

Segregation of Duties (SoD) is a foundational element of effective internal control....

Gain Segregation of Duties (SoD) and Access Reviews in Coupa

As organizations increasingly rely on Coupa for business spend management, ensuring strong....

How to Choose the Right Segregation of Duties (SoD) Tool?

As organizations prepare for their next Sarbanes-Oxley (SOX) audit, many face a....