This RESTful web service request can be used to expand a Base64- encoded policy string representing the Effective Policy to an XML document, which lists the privileges that are permitted or denied.
HTTP Method: POST
REST URL Format:
http://host:port/ibi_apps/rs/utils
where:
Is the name of the system where WebFOCUS is installed.
Is the port number used by WebFOCUS.
Body Format:
IBIRS_action=expandPolicy&IBIRS_base64Policy=PolicyString
where:
Is the Base64-encoded policy string representing the Effective Policy. The string can be obtained by running RESTful Web Service requests that list various items (for example, Folders, Users, and Groups).
Example:
In this example, the Base64-encoded policy string containing the following value is expanded:
////D////fx/////+//////////4AAAA
POST Request:
http://localhost:8080/ibi_apps/rs/utils
Body:
IBIRS_action=expandPolicy&IBIRS_base64Policy=////D////fx/////+//////////4AAAA
Response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <ibfsrpc _jt="IBFSResponseObject" language="EN" name="expandPolicy" returncode="10000" returndesc="SUCCESS" subreturncode="0" subsystem="SSYS" type="simple"> <ibfsparams size="1"> <entry key="IBIRS_base64Policy" value="////D////fx/////+//////////4AAAA"/> </ibfsparams> <rootObject _jt="IBSSPolicy" derivedTime="1368100027309"> <policy _jt="EnumMap" _keyJT="IBSSOperation" size="185"> <entry> <key _jt="IBSSOperation" name="opLibrary"/> <value _jt="IBSSVerb" name="PERMIT"/> </entry> <entry> <key _jt="IBSSOperation" name="opViewPortal"/> <value _jt="IBSSVerb" name="PERMIT"/> </entry> <entry> <key _jt="IBSSOperation" name="opList"/> <value _jt="IBSSVerb" name="PERMIT"/> </entry> <entry> <key _jt="IBSSOperation" name="opViewProps"/> <value _jt="IBSSVerb" name="PERMIT"/> </entry> <entry> <key _jt="IBSSOperation" name="opDisplayVersionInfo"/> <value _jt="IBSSVerb" name="PERMIT"/> </entry> <entry> <key _jt="IBSSOperation" name="opFavorites"/> <value _jt="IBSSVerb" name="PERMIT"/> </entry> <entry> <key _jt="IBSSOperation" name="opMagnify"/> <value _jt="IBSSVerb" name="PERMIT"/> </entry> <entry> <key _jt="IBSSOperation" name="opMobileFavorites"/> <value _jt="IBSSVerb" name="PERMIT"/> </entry> . . .
<entry> <key _jt="IBSSOperation" name="opCustom01"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom02"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom03"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom04"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom05"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom06"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom07"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom08"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom09"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom10"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom11"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom12"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom13"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom14"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom15"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom16"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom17"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom18"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom19"/> <value _jt="IBSSVerb" name="DENY"/> </entry> <entry> <key _jt="IBSSOperation" name="opCustom20"/> <value _jt="IBSSVerb" name="DENY"/> </entry> </policy> </rootObject> </ibfsrpc>
Information Builders |