My Oracle Support Banner

Tutorial: How to Create a WebCenter Portlet that Valides if a User is Member of a Group / Role (Doc ID 1970166.1)

Last updated on NOVEMBER 23, 2022

Applies to:

Oracle WebCenter Portal - Version 11.1.1.6.0 to 11.1.1.6.0 [Release 11g]
Information in this document applies to any platform.

Purpose

This tutorial demostrates how to create a WebCenter Portlet that validates if the current User is a Member of a Group / Role.

In some cases, it is required to validate if a user is member of a Group or Role to so additional validtions/tasks may be performed.

One solution is to create group(s) in the external LDAP server and validate the user's group membership in the portlet using the securityContext.userInRole API in conjunction with WS-Security.
Thereafter, privileges may be granted in Portal (as defined by Portal Roles) to groups in the external LDAP server.

For example, groups in external LDAP server may be matched with Portal Roles as follows:

External LDAP GroupPortal Role
Moderators-Group Moderator
Participants-Group Participant
Viewers-Group Viewer

This tutorial will highlight a demonstration of this. For this exercise, a group called "ProducerDemoRole" shall be used.

 

Details

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Purpose
Details

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.