Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Oracle DB Connection - Accounts Import XML

itinjic
Regular Contributor
Regular Contributor

Hello community,

Does anyone know how to create XML Accounts Import configuration for Oracle DB. It is necessary to call the store procedure which should return three columns username, account_status and lock_date.

This is the code I use to test the store procedure in SQL editor :

DECLARE
  users sys.test.user_cursor;
  username VARCHAR2(30);
  account_status VARCHAR2(30);
  lock_date DATE;
BEGIN
  sys.test.UserList(users);
  LOOP
    FETCH users INTO username, account_status, lock_date;
    EXIT WHEN users%NOTFOUND;
    -- Do something with the user data
    DBMS_OUTPUT.PUT_LINE('Username: ' || username || ', Account Status: ' || account_status || ', Lock Date: ' || lock_date);
  END LOOP;
  CLOSE users;
END;

This code prints the results in textual form line by line.

<dataMapping>
    <sql-query description="This is the Source DB Query" >
        <![CDATA[
          DECLARE
            users sys.test.user_cursor;
            username VARCHAR2(30);
            account_status VARCHAR2(30);
            lock_date DATE;
            BEGIN
            sys.test.UserList(users);
            LOOP
                FETCH users INTO username, account_status, lock_date;
                EXIT WHEN users%NOTFOUND;
                -- Do something with the user data
                DBMS_OUTPUT.PUT_LINE('Username: ' || username || ', Account Status: ' || account_status || ', Lock Date: ' || lock_date);
            END LOOP;
            CLOSE users;
            END;

        ]]>
    </sql-query>
    
    <mapper description="This is the mapping field for Saviynt Field name">
        <mapfield saviyntproperty="accounts.accountID" sourceproperty="username" type="character" />
        <mapfield saviyntproperty="accounts.name" sourceproperty="username" type="character" />
        <mapfield saviyntproperty="accounts.status" sourceproperty="account_status" type="character" />
        <mapfield saviyntproperty="accounts.customproperty2" sourceproperty="lock_date" type="date" />
    </mapper>
</dataMapping>

 

How to handle this ? Are there any required columns that must be present for account import ?




Sapere aude
3 REPLIES 3

rushikeshvartak
All-Star
All-Star
  • Ask application team to create view and call view in XML

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

itinjic
Regular Contributor
Regular Contributor

Are there require parameters that must be inside the view ? 

Reading this documentation Configuring the Integration for Importing Accounts  it says that some parameters must be present in query.

"For this connector, you must pass the value of accountName, securitysystem, endpoint, entitlementtype, and entitlementvalue in this parameter."


Sapere aude

Yes above parameters are mandatory


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.