Request Messages for Authorizing Access to PeopleSoft Pagelets
There are three types of PeopleSoft pagelets:
-
Pagelet wizard pagelets.
-
Component-based pagelets.
-
iScript-based pagelets.
This section provides code examples of the PARAMS section requests messages for authorizing access to these types of PeopleSoft pagelets.
Request Messages for Authorizing Access to Pagelet Wizard Pagelets
To authorize a user for a pagelet wizard pagelet, you must pass the pagelet ID. The following pseudocode example shows passing the pagelet ID:
<PARAMARRAY>
<PARAMS>
<SERVICE_TYPE>POP</SERVICE_TYPE> OR <SERVICE_TYPE>PEP</SERVICE_TYPE>
<PAGELETID>PAGELET_ID</PAGELETID>
</PARAMS>
</PARAMARRAY>
Request Message for Authorizing Access to Component and iScript Pagelets
To authorize a user to access a component or iScript-based pagelet used the service type CREF instead of POP or PEP and pass the CREFID like any other CREF service type request:
<PARAMARRAY>
<PARAMS>
<SERVICEID>1</SERVICEID>
<SERVICE_TYPE>CREF</SERVICE_TYPE>
<CREFID>PAGELET_CREF_ID</CREFID>
</PARAMS>
<PARAMARRAY>
The authorization service queries PeopleTools security data to get the permission lists that can access this iScript. It then checks if the user has access to the permission list.