Total Pageviews

Friday, October 10, 2014

oim 11.1.2.2.0 implementing roll base UI access (customizing admin screen view)

Showing or Hiding UI Components Conditionally

here is how you can implement UI Customization requirement at 11.1.2.2.0.

At Below example I am hiding Administration Tab at OIM Admin console

1. create sand box
2.click on Customize. I will show Editing page bar at the top of logo bar.
3. click on View than select Source.
4. if prompted of warning about customization say Edit.
5. From bottom panel scroll down to Administration.
6. click on Administration.(it will highlight whole area of Administration). make sure complete Administration box is selected.
7. Click on Edit at top panel. it will open up a POP up window.
8. at Display Option go at the bottom of the page.
9. at Show Component select next to and down ^ button. you will see 3 options.
10. Select first option Expression Builder.
11. at Type a Value or expression remove true and put below line

#{oimcontext.currentUser.roles['SYSTEM ADMINISTRATORS'] != null}

12. click Test( it will show true value)
13. Click OK.
14. at second popup click Apply or OK.
15. Close Editing Page.
16 Publish Sandbox.

Now any user who have 'SYSTEM ADMINISTRATORS' will be able to see Administration Screen. same way you can hide all other tabs that you want to hide.

Below are some other options that you can use as per your requirement.

  • To show a UI component if the logged-in user has the System Administrators admin role:
    #{oimcontext.currentUser.roles['SYSTEM ADMINISTRATORS'] != null}
    
    Similarly, the EL expression can be modified to check if the logged-in user has any other role.
  • To show a UI component if signed-in user has the System Administrator admin role:
    #{oimcontext.currentUser.adminRoles['OrclOIMSystemAdministrator'] != null}
    
    Similarly, the EL expression can be modified to check if the logged-in user has any other admin role.
  • To show a UI component if the usr_key attribute of the logged-in user is 1:
    #{oimcontext.currentUser['usr_key'] == 1}
    
  • To show a UI component if the logged-in user's last name is Doe:
    #{oimcontext.currentUser['Last Name'] == 'Doe'}
    
  • To show a UI component if the logged-in user belongs to the Xellerate Users organization:
    #{oimcontext.currentUser['Organization Name'] == 'Xellerate Users'}
    
  • To show a UI component if the user's UDF attribute called UDF_NAME equals to UDF_VALUE:
    #{oimcontext.currentUser['UDF_NAME'] == 'UDF_VALUE'}

 

No comments:

Post a Comment