BASH functions to perform SOAP calls to RBPM

BASH functions to perform SOAP calls to RBPM

Shell script with a set of bash functions that build the SOAP requests to perform common tasks using RBPM 4.5 role SOAP endpoints. To use download the script from https://www.netiq.com/communities/cool-solutions/wp-content/uploads/sites/2/2015/05/rbpm_soap_role.sh_.gz, gunzip it then source rbpm_soap_role.sh it in a command terminal or other script and call the functions with the parameters. All functions provide a basic usage message if called without parameters.

Sample usage:
labuser@lab01:~/1_code/soap_bash> . rbpm_soap_role.sh
labuser@lab01:~/1_code/soap_bash> getRoleCategories "rbpmidm" "BoringPassword" "http://10.123.12.246:8180/IDMProv" "results.txt"
labuser@lab01:~/1_code/soap_bash> cat results.txt
<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><SOAP-ENV:Body><ns1:getRoleCategoriesResponse xmlns="http://www.novell.com/role/service" xmlns:ns1="http://www.novell.com/role/service"><result><category><categoryKey>aon</categoryKey><categoryLabel>aon</categoryLabel></category><category><categoryKey>system</categoryKey><categoryLabel>System Roles</categoryLabel></category><category><categoryKey>default</categoryKey><categoryLabel>Default</categoryLabel></category></result></ns1:getRoleCategoriesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
labuser@lab01:~/1_code/soap_bash>
labuser@lab01:~/1_code/soap_bash>getRoleCategories

Function Usage:
getRoleCategories username password rbpm_url output_file
rbpm_url should be in the format:
protocol://server:port/servicename
for example:
https://rbpm.lab.novell.com:8543/IDMProv
labuser@lab01:~/1_code/soap_bash>

The script implements the following functions:

rbpm_soap_role_getVersion
rbpm_soap_role_connectiontest
createResourceAssociations
createRole
deleteResourceAssociations
getAssignedIdentities
getConfigPropertyRequest
getConfigurationRequest
getContainerRequest
getExceptionsListRequest
getGroupRequest
getIdentitiesinViolation
getIdentityRoleConflictsRequest
getResourceAssociation
getResourceAssociations
getRole
getRoleAssignmentRequestStatus
getRoleAssignmentRequestStatusByDN
getRoleAssignmentRequestStatusByIdentityType
getRoleAssignmentTypeInfo
getRoleCategories
getRoleConflicts
getRoleLevels
getRoleLocalizedStrings
getRolesInfo
getRolesInfoByCategory
getRolesInfoByLevel
getTargetSourceConflicts
getUser
getVersion
isUserInRole
removeRoles
requestRolesAssignment
setRoleLocalizedStrings
Tags (4)
Attachments

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Comments
Great tool!.
Fernando, I have some additions to this script. Do you have it somewhere I could submit updates towards?
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2015-05-13 01:25
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.