Blogs

SQL Query for Extracting Role, Duty Role, and Effective Date Navigation Path in Oracle Fusion BI Report

SQL Query for Extracting Role, Duty Role, and Effective Date Navigation Path

The following SQL query is designed to extract user role assignments, associated duty roles, and their effective date range from Oracle Fusion BI Reports. This helps administrators and auditors gain visibility into the role hierarchy and access timelines of Fusion users, ensuring strong governance and compliance tracking.

SELECT 

    “ASE_USER_ROLE_MBR”.”USER_ID” AS “USER_ID”,

    (SELECT “ASE_USER_VL”.”USER_DISPLAY_NAME” 

     FROM “FUSION”.”ASE_USER_VL” “ASE_USER_VL” 

     WHERE “ASE_USER_VL”.”USER_ID” = “ASE_USER_ROLE_MBR”.”USER_ID”) AS “USER_DISPLAY_NAME”,

    “ASE_USER_ROLE_MBR”.”ROLE_ID” AS “JOB_ROLE_ID”,

    (SELECT “ASE_ROLE_VL”.”ROLE_NAME” 

     FROM “FUSION”.”ASE_ROLE_VL” “ASE_ROLE_VL” 

     WHERE “ASE_ROLE_VL”.”ROLE_ID” = “ASE_USER_ROLE_MBR”.”ROLE_ID”) AS “JOB_ROLE_NAME”,

    “ASE_USER_ROLE_MBR”.”EFFECTIVE_START_DATE” AS “EFFECTIVE_START_DATE”,

    “ASE_USER_ROLE_MBR”.”EFFECTIVE_END_DATE” AS “EFFECTIVE_END_DATE”

FROM “FUSION”.”ASE_USER_ROLE_MBR” “ASE_USER_ROLE_MBR”

WHERE (“ASE_USER_ROLE_MBR”.”EFFECTIVE_END_DATE” >= SYSDATE 

       OR “ASE_USER_ROLE_MBR”.”EFFECTIVE_END_DATE” IS NULL)

AND EXISTS (

    SELECT ‘1’ 

    FROM “FUSION”.”ASE_USER_VL” “ASE_USER_VL”

    WHERE (“ASE_USER_VL”.”EFFECTIVE_END_DATE” >= SYSDATE 

           OR “ASE_USER_VL”.”EFFECTIVE_END_DATE” IS NULL)

      AND “ASE_USER_VL”.”USER_ID” = “ASE_USER_ROLE_MBR”.”USER_ID”

);

Query Overview

This query provides a complete navigation path of how users are mapped to their job roles and duty roles, including when each assignment starts and ends. It uses key Oracle Fusion tables to ensure accuracy and traceability:

  • ASE_USER_ROLE_MBR: Stores details of user-to-role assignments.
  • ASE_USER_VL: Contains user display names and personal identifiers.
  • ASE_ROLE_VL: Maintains role names and definitions within the Fusion security model.

The EFFECTIVE_START_DATE and EFFECTIVE_END_DATE fields define the validity period for each role assignment, helping teams track access changes over time.

Business Use Case

This query is essential for:

  • Audit and Compliance Teams: To review which users hold active job or duty roles and verify date validity.
  • Security Administrators: To trace overlapping roles and eliminate redundant access.
  • License Management: To analyze active users and their associated access scopes for optimization.
  • SoD (Segregation of Duties) Reviews: To identify users who may possess conflicting roles within the same timeframe.

By deploying this query in Oracle BI Publisher or Fusion OTBI, administrators can streamline access monitoring, maintain regulatory compliance, and enhance enterprise data security.

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....