Monday, November 2, 2009

Configuring OBIEE Proxy(Act As) Functionality

As an OBIEE Developer we always want to be able to login as the Business Users in order to validate the security development. This can be done without the need to know the Business user's logon credentials by simply configuring the 'Act As' feature in OBIEE.
Below are the steps involved in enabling this feature.
1.The Script below will create a Proxy table and insert three records so that the developer 'shiv' can login(proxy) as 'business_user1' and 'business_user2' and validate the security requirement is as expected.Also the 'Administrator' can proxy the user 'shiv'.


CREATE TABLE OBIEE_ACT_AS_USERS
(PROXY_ID VARCHAR2(50),
TARGET_ID VARCHAR2(50),
PROXY_LEVEL VARCHAR2(50));
INSERT INTO OBIEE_ACT_AS_USERS(PROXY_ID,TARGET_ID,PROXY_LEVEL) VALUES('Administrator','shiv','full');
INSERT INTO OBIEE_ACT_AS_USERS(PROXY_ID,TARGET_ID,PROXY_LEVEL) VALUES('shiv','business_user1','full');
INSERT INTO OBIEE_ACT_AS_USERS(PROXY_ID,TARGET_ID,PROXY_LEVEL) VALUES('shiv','business_user2','full');
COMMIT;



2.Import the table OBIEE_ACT_AS_USERS into the Physical Layer and Name the Database and Connection Pool as Act_As_Users , CP_Act_As_Users.

3. We now need to create three Session Initialization Blocks Set_RUNAS(Variable:RUNAS),ProxyLevel(Variable:PROXYLEVEL) and ProxyBlock(Variable:PROXY).

4.Initialization Block:Set_RUNAS
Default Initialization String:
Select 'dummy' from dual


5.Initialization Block:ProxyBlock
Default Initialization String:
Seleselect target_id from obiee_act_as_users where 'VALUEOF(NQ_SESSION.RUNAS)'=target_id and ':USER'=proxy_Id


6.Initialization Block:ProxyLevel
Default Initialization String:
select proxy_level from obiee_act_as_users where 'VALUEOF(NQ_SESSION.RUNAS)'=target_id and ':USER'=proxy_Id


7.Navigate to /OracleBIData/web/config/ and modify the file instanceconfig.xml to add the below tag before the </ServerInstance>

<LogonParam>
<TemplateMessageName>Act_As_Logon_Template</TemplateMessageName>
<MaxValues>100</MaxValues>
</LogonParam>


8.Navigate to /OracleBI/web/msgdb/customMessages/ and create a new XML file Act_As_Logon_Template.xml containing the below script.

<?xml version="1.0" encoding="utf-8" ?>
<WebMessageTables xmlns:sawm="com.siebel.analytics.web.messageSystem">
<WebMessageTable system="SecurityTemplates" table="Messages">
<WebMessage name="Act_As_Logon_Template">
<XML>
<logonParam name="RUNAS">
<getValues>EXECUTE PHYSICAL CONNECTION POOL Act_As_Users.CP_Act_As_Users select target_Id from OBIEE_ACT_AS_USERS where proxy_Id='@{USERID}'</getValues>
<verifyValue>EXECUTE PHYSICAL CONNECTION POOL Act_As_Users.CP_Act_As_Users select target_Id from OBIEE_ACT_AS_USERS where proxy_Id ='@{USERID}' and target_Id='@{VALUE}'</verifyValue>
<getDelegateUsers>EXECUTE PHYSICAL CONNECTION POOL
Act_As_Users.CP_Act_As_Users select proxy_Id, proxy_Level from OBIEE_ACT_AS_USERS where target_Id ='@{USERID}'</getDelegateUsers>
</logonParam>
</XML>
</WebMessage>
</WebMessageTable>
</WebMessageTables>


9. Within OBIEE Security add three new Users 'shiv','business_user1' and 'business_user2' as shown below.

10.Create a new Web group Act_As_Users_Group and add the user 'shiv' to this group.

11.Cotinue to be logged on as an Administrator and Navigate to Settings>Administration>Manage Privileges and add 'Act_As_Users_Group to Proxy .

12. Restart the Oracle BI Server and Oracle BI Presentation Server.

13. Login in as 'shiv' and then navigate to settings>Act as>business_user1

21 comments:

  1. Nice article Shiv! was wondering if my security setup is in OLTP system and not repository, do I still need to define the user's in RPD??

    ReplyDelete
  2. Very easy to follow article, well written. I how still am unable to see the Act As link. I have SSO enabled with EBS which I don't know if that has anything thing to do with it but all XML and Privillages are set correctly.

    ReplyDelete
  3. Thanks Shiv, I've followed a few other blog posts to try and get this working but yours was the most comprehensive and complete - thanks!

    ReplyDelete
  4. I took Obiee online training from www.monstercourses.com , now i also want to take informatica online training will this the good combination

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Thank you, very clear and concise, worked first time round.

    ReplyDelete
  7. Cool website buddy I am gona suggest this to all my list of contacts.
    Unblock Facebook

    ReplyDelete
  8. Appreciation for nice Updates, I found something new and folks can get useful info about BEST ONLINE TRAINING

    ReplyDelete
  9. This blog is really awesome in all respects. Facebook Marketing

    ReplyDelete
  10. Your blogs stuff is purely enough for me personally. web design

    ReplyDelete
  11. wonderful information, I had come to know about your blog from my friend nandu , hyderabad,i have read atleast 7 posts of yours by now, and let me tell you, your website gives the best and the most interesting information. This is just the kind of information that i had been looking for, i'm already your rss reader now and i would regularly watch out for the new posts, once again hats off to you! Thanks a ton once again, Regards,
    obiee training in hyderebad

    ReplyDelete
  12. I would surely give 10 on 10 for such incredible content. Passive Income Blog

    ReplyDelete
  13. These blogs are valuable because these are providing such informative information for all the people. pirater facebook

    ReplyDelete
  14. Nice information. I was searching for the same. It helped me alot and saved my time. Thanks alot. PHP Online Training .

    ReplyDelete
  15. Hi ,

    OBIEE is the next generation business intelligence system for enterprise reporting.You Have Provided Valuable Information on OBIEE and i am much impressed with this information and it is Very useful to Learn OBIEE Online Training

    ReplyDelete
  16. Nice article i was really impressed by seeing this article, it was very intresting and it is very useful for OBIEE Training Learners.. We are Providing best qa online training in worldwide.

    ReplyDelete
  17. Whenever I have free time I read the blogs but today I got the unique blog page where I learnt many new things thanks guys! SEO Conference

    ReplyDelete

  18. This is the information that I was looking for and let me tell you one thing that is it is very useful for who is looking for SAS Online Training.

    ReplyDelete