4 Business Unit Service

This chapter contains the following sections:

4.1 Overview

This chapter describes the web services used to get business unit information from the Oracle Identity Analytics Identity Warehouse.

Each web service has two parts: request parameters and the response. Request parameters such as businessUnitname are used to request a business unit.

Note:

The BusinessUnit Management Service has been deprecated and is superseded by the Business Unit Service. Implementations using methods from the BusinessUnit Management Service, however, can continue to use the older methods.

4.2 WSDL Access

WSDL stands for Web Services Description Language. It is an XML format that describes web services as a set of endpoints operating on messages, and that contains information on how to access them. It specifies the location of each service and the operations (or methods) the service exposes.

Use the following to access the Business Unit Service WSDL through a browser:

http://server-name:port-number/rbacx/ws/businessUnitService?wsdl

where server-name is the IP address or alias of the server on which Oracle Identity Analytics is running, and port-number is the port number of the application server that is listening to Oracle Identity Analytics calls.

Example:

http://localhost:8081/rbacx/ws/businessUnitService?wsdl

In the previous example, localhost is the server name, and 8081 is the port number of the application server.

4.3 API Reference

This section describes the web services used to get business unit information from the Oracle Identity Analytics Identity Warehouse.

4.3.1 Add Roles to a Business Unit

This web service adds roles to a business unit. The request parameters are the businessUnitName and the roleNames that should be added to the business unit. A Boolean flag is returned indicating if the roles were successfully added.

4.3.1.1 Method Signature

public boolean addRolesToBusinessUnit(String businessUnitName, String[] roleNames) throws RbacxServiceException

4.3.1.2 Request Parameter

Name Data Type Description
businessUnitName String The name of the business unit to which one or more roles should be added.
roleNames String[] The list of roles that need to be added to the business unit.

4.3.1.3 Response

Data Type Description
Boolean True if the roles are successfully added to the business unit; false otherwise.

4.3.1.4 Exception

This method throws an RbacxService Exception that has an error code and an error message.

4.3.2 Remove Roles From a Business Unit

This web service removes roles from a business unit. The request parameters are businessUnitName and roleNames. A Boolean flag is returned indicating if the roles were successfully removed.

4.3.2.1 Method Signature

public boolean removeRolesFromBusinessUnit(String businessUnitName, String[] roleNames) throws RbacxServiceException

4.3.2.2 Request Parameters

Name Data Type Description
businessUnitName String The name of the business unit from which one or more roles should be removed.
roleNames String[] The list of roles that need to be removed from a business unit.

4.3.2.3 Response

Data Type Description
Boolean True if the roles are successfully removed from the business unit; false otherwise.

4.3.2.4 Exception

This method throws an RbacxService Exception that has an error code and an error message.

4.3.3 Add Users to a Business Unit

This web service adds users to a business unit. The request parameters are the businessUnitName and String[] userNames that need to be associated. A Boolean flag is returned indicating the result of the businessunit-users association.

4.3.3.1 Method Signature

public boolean addUsersToBusinessUnit(String businessUnitName, String[] userNames) throws RbacxServiceException

4.3.3.2 Request Parameters

Name Data Type Description
businessUnitName String The name of the business unit to be queried for users.
userNames String[] The user names that need to be associated with the business unit.

4.3.3.3 Response

Data Type Description
Boolean True if a businessunit-role membership is successfully established; false otherwise.

4.3.3.4 Exception

This method throws an RbacxService Exception that has an error code and an error message.

4.3.4 Remove Users From a Business Unit

This web service removes users from a business unit. The request parameters are the businessUnitName and userNames. A Boolean flag is returned indicating the results of the businessunit-users disassociation.

4.3.4.1 Method Signature

public boolean removeUsersFromBusinessUnit(String businessUnitName, String[] userNames) throws RbacxServiceException

4.3.4.2 Request Parameter

Name Data Type Description
businessUnitName String The name of the business unit to be queried for users.
userNames String[] The user names that need to be removed from the business unit.

4.3.4.3 Response

Data Type Description
Boolean True if the users are removed from the business unit; false otherwise.

4.3.4.4 Exception

This method throws an RbacxService Exception that has an error code and an error message.

4.3.5 Get Parent Business Structure for a Business Unit

This web service gets the parent for a particular business unit. The request parameter is the string businessUnitName, and an array of BusinessUnitVO[] is returned.

4.3.5.1 Method Signature

public BusinessUnitVO[] getParentBusinessUnits(String businessUnitName) throws RbacxServiceException

4.3.5.2 Request Parameter

Name Data Type Description
businessUnitName String Name of the business unit for which the parent business unit name needs to be queried.

4.3.5.3 Response

Data Type Description
BusinessUnitVO[] An array of BusinessUnit value objects is returned.

4.3.5.4 Exception

This method throws an RbacxService Exception that has an error code and an error message.

4.3.6 Get Children of a Business Unit

This web service gets the children of a particular business unit. The request parameter is the string businessUnitName, and BusinessUnitVO[] is returned.

4.3.6.1 Method Signature

public BusinessUnitVO[] getChildrenBusinessUnits(String businessUnitName) throws RbacxServiceException

4.3.6.2 Request Parameter

Name Data Type Description
businessUnitName String The name of the business unit for which the child business units need to be queried.

4.3.6.3 Response

Data Type Description
BusinessUnitVO[] The names of the child business units are returned in a value object.

4.3.6.4 Exception

This method throws an RbacxService Exception that has an error code and an error message.

4.3.7 Update Business Unit

This web service provides the capability to update an existing business unit. The request parameter is businessUnitVO, and a Boolean is returned indicating whether the business unit was successfully updated.

4.3.7.1 Method Signature

public boolean updateBusinessUnit(BusinessUnitVO businessUnitVO) throws RbacxServiceException

4.3.7.2 Request Parameter

Name Data Type Description
businessUnitVO BusinessUnitVO The name of the business unit that needs to be updated.

4.3.7.3 Response

Data Type Description
Boolean True if the update was successful; false otherwise.

4.3.7.4 Exception

This method throws an RbacxService Exception that has an error code and an error message.