title: How do I determine the authorization scheme of an Oracle APEX user?
body: <p>I have an Oracle APEX program where I need to determine if the current user fits within a given authorization scheme at run time. There are multiple schemes in the application and on a certain page, three have access to see it. Two of them have full read-write access to the fields displayed, while users from the other one have read-only privileges to the page. </p>
  
  <p>How can I determine the user's scheme?</p>
  
  <p>I am using Application Express 4.2.3.00.08.</p>
  
  <p>Once I do that, I plan to do something like this in the page footer:</p>
  
  <pre><code>&lt;script&gt;
  if ( '&amp;NAME_OF_SCHEMA.'  == 'DLR_READ_ONLY') {
      $('input[type="text"]').attr('readonly','readonly');
  }
  &lt;/script&gt;
  </code></pre>