Thursday, September 22, 2005

Using an eBusiness Suite Responsibility in HTML DB

In a previous post, I mentioned that I was using membership in an eBusiness Suite Responsibility as the basis for an HTML DB Authorization Scheme. It’s really quite simple to set up, and even easier to manage.

Note: This assumes that you have already integrated HTML DB with the Oracle Single Sign On server. See this How To for detailed steps on how to do that.
  1. Create a new Responsibility in the eBusiness Suite

  2. Once created, note the RESPONSIBILITY_ID. You can obtain this via SQL*Plus or from the Help : Examine : Item menu in the eBusiness Suite.

  3. In HTML DB, create a new Authorization Scheme. Select Exists SQL Query as the Scheme Type, and enter the following as Expression 1:

    select 1 from apps.fnd_user_resp_groups ur, apps.fnd_user u
    where u.user_name = :APP_USER and u.user_id = ur.user_id
    and ur.responsibility_id = 50280

  4. Be sure to use your RESPONSIBILITY_ID in place of mine (50280).

  5. Associate this new Authorization Scheme with an Application by editing the Application Attributes and selecting your Authorization Scheme in the Authorization section.

That’s it! Now that your Authorization Scheme is associated with an eBusiness Suite Responsibility, only those users who have that Responsibility will be able to access your application!

As this project moves forward, I’ll be posting more ways to hook HTML DB up to the eBusiness Suite.


Scott said...


It's been a while since I've been in the eBusiness Suite. You'll want to add:

and ur.end_date > sysdate

to the above query, as Responsibilities cannot be deleted, only expired.


- Scott -

Partha said...

Hi scott,

Not related to eBusiness Suite but with security in HTMLDB on how the Authorisation or security works. Is there no 'secure' way of using the Authorization based on HTMLDB 'items'. I have flags inside my application which controls the flow and conditional display and linking that in the authorization. But this seems to break as it can be manipulated through the URLs. I had raised this in
but no answer yet. Was working in 1.6. In 2.0 I saw the new security access which has 'Restricted - May not be set from browser', but this cannot be used for hidden items (why?!), and there is no documentation on how the checksum should be used in the URL (no change in documentation for 'Understanding URL format'). Can you suggest a solution for this (or maybe can answer in the forum itself?)

Partha K

ronald said...

Scott, I look forward to your experiences with extension to the eBusiness Suite using HTMLDB. I think it will be a great addition to the toolset we can use!

Paolo Marzucco said...

Hi Scott,
I am trying to do the same thing as you, that is integrating an HTML DB application with the Oracle eBusiness Suite.

I solved the problem in a different way, since here we don't have an SSO server.

The user is validated using the fnd_web_sec.validate_login, as found in a tip on the HTML DB Studio, then he will be presented a list of responsibilities that he can choose to work with the HTML DB application.

I am using mainly the HR and Payroll modules, so each responsibility is linked to a security profile that restricts the user data visibility. I wanted to have the same functionality in my application, but the standard Apps secured views are not working reliably from HTML DB, so I built my secured views using a custom function that behaves in the same way.

I already found some workarounds for the conflicts coming from the Apps HR security implementation, that can arise when querying secured views or calling an Oracle Apps standard API procedure from HTML DB.

If you need it, I can share some of my findings with you.


Anonymous said...


This is great. One way to do it using SSO and another without.

Paolo, it would be a benefit to a lot of folks if you share how you devised a solution for non-sso environment with your custom views etc.

As far as I know there are more sites who don't use SSO than those who do. So this will be huge for those sites.

Thanks Scott for sharing the SSO/R11i integration with HTMLDB.

Scott said...


Looks like the other Scott has already addressed your problem.

Have a look at this quick demo I set up:

You can definitely prevent hidden items from being set via the URL in HTML DB 2.0.


- Scott -

Scott said...


I'd be interested in seeing what you have done as well. Perhaps you can post a Tip & Trick on HTML DB Studio so that many can benefit from it.


- Scott -

Paolo Marzucco said...

Ok, I'll try to post a tip on HTML DB Studio as soon as I can.

Thanks for the attention,

Samuel Adanu said...

Hi Scott,

This is not about this particular topic though. I have been to your website, It's a great website. I like the HTMLDB applications background you used. It's splendid. KUDOS.

Scott said...


Thanks for the compliments. Although I am not a graphic designer by trade, I have a limited set of skills which I use from time to time. :)


- Scott -