Blogs

SQL Query for Retrieving Inactive Users in Oracle Fusion BI Report

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.

Identity Access Management Cloud: The Corporate Armour for Modern Enterprises

In a world where cyber threats evolve faster than ever, protecting your....

Comprehensive Identity and Access Management in the Cloud

As organizations accelerate their journey toward digital transformation, maintaining secure and compliant....

Identity and Access Management Compliance and Intelligent Analytics

In an era where digital transformation defines organizational competitiveness, Identity and Access....

Real-World Governance and Cost-Effectiveness: Striking the Balance Between Compliance and Risk Management

In today’s rapidly evolving regulatory landscape, organizations across industries are under increasing....