Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following section describes the RemoteAuthorizationManager API and the operations that come with it. 

...

Invalid Permission root path provided
Error loading authorizations. Please check the database. Error message is message

...

getAllowedUIResourcesForRole

This function retrieves the list of UI resources in the specified root path for a given role.

Input parameters

ParameterDescription
roleNameThe name of the specific role (e.g., "admin")
permissionRootPathThe permission root path



Localtabgroup
Localtab
activetrue
titleRequest
Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.um.carbon.wso2.org">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:getAllowedUIResourcesForRole>
         <ser:roleName>admin</ser:roleName>
         <ser:permissionRootPath>/</ser:permissionRootPath>
      </ser:getAllowedUIResourcesForRole>
   </soapenv:Body>
</soapenv:Envelope>
Localtab
titleResponse
Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <ns:getAllowedUIResourcesForRoleResponse xmlns:ns="http://service.ws.um.carbon.wso2.org" xmlns:ax2716="http://core.user.carbon.wso2.org/xsd" xmlns:ax2717="http://api.user.carbon.wso2.org/xsd">
         <ns:return>/permission</ns:return>
         <ns:return>/permission/admin/configure/security/usermgt</ns:return>
         <ns:return>/permission/admin/login</ns:return>
         <ns:return>/permission/admin/manage/identity/applicationmgt</ns:return>
      </ns:getAllowedUIResourcesForRoleResponse>
   </soapenv:Body>
</soapenv:Envelope>

...