Friday, March 13, 2015

Add registry permisson for roles using admin service - WSO2 products.

You can use the ResourceAdminService to perform that task.

i) Open the carbon.xml and enable the WSDL view for admin services.
ii) Use the following WSDL endpoint to generate the SoapUI project.


Select the "addRolePermission" request.
<soap:Envelope xmlns:soap="" xmlns:ser="">

pathToAuthorize    - The registry path that need to set permissions.
roleToAuthorize     - Role name that need to authorize
actionToAuthorize - This can be following values

 2 - READ
 3 - WRITE

permissionType - This can be following valies

 1 - Allowed
 2 - Denied