GREG has a permission-mapping.xml. We can find it at /home/chanaka/Desktop/greg/wso2greg-5.2.0/repository/conf/etc/permission-mappings.xml
Each
- managementPermission
- resourcePermission
- resourcePaths
resourcePermission="http://www.wso2.org/projects/registry/actions/get"
/>
There are default configurations in this file. These entries are mapping each permission in the permission tree in to resource paths and assign them permissions.
With the above line in the permission-mappings.xml, an admin user who assign the permission "/permission/admin/manage/resources/govern/server/list" will be able to do get operations on registry resources stored at "/_system/governance/trunk/servers". We can provide multiple resource paths by separating them by comas.
There are 3 types of permissions you can apply.
- http://www.wso2.org/projects/registry/actions/get
- http://www.wso2.org/projects/registry/actions/add
- http://www.wso2.org/projects/registry/actions/delete
With the following documentation link we can find the default behavior implemented with this permission-mappings.xml.
https://docs.wso2.com/display/Governance520/Roles
Comments