This documentation is for WSO2 Identity Server 5.4.0 . View documentation for the latest release.

Versions Compared

Key

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

...

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
Localtab Group
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>

isRoleAuthorized

This function checks whether the given role is authorized to perform the action on the specified resource.

...