Introduction
WSO2 App Factory comes with four application user roles by default. They are AppOwner, Developer, QA and DevOps. These roles manage the App Factory life cycle stages. For more information about the default life cycle stages and roles, see Default Application Lifecycle.
You can customize these existing roles or define additional roles and set permissions to them using the <ApplicationRoles>
element in <AF_HOME>/repository/conf/appfactory/appfactory.xml
file.
Sample configuration
Following sample code shows how to add a new application role to App Factory:
<ApplicationRoles> <Role name="developer"> <DisplayName>Developer</DisplayName> <Permission> /permission/admin/login, /permission/admin/appfactory/develop, /permission/admin/appfactory/repository/readwrite, . . </Permission> </Role> <Role name="AppOwner"> . . </Role> </ApplicationRoles>
The elements of the sample configuration are explained below. You can use this information to edit the file according to your requirements.
XML elements of the sample code
Property Name | Description | Type | Default Value | Fixed Values | Mandatory/Optional | |
---|---|---|---|---|---|---|
<ApplicationRoles> | Define set of application roles. | Mandatory | ||||
<Role> | Role tag list all the available roles in App Factory. | String | Mandatory | |||
<DisplayName> | Detail name of Role. This is the role name that is being displayed within WSO2 App Factory. | String | Mandatory | |||
<Permission> | Define set of permissions of mentioned Role. Each permissions are separated by comma. Below shows the permissions that are allowed within WSO2 App Factory. You can use the permissions within your roles as your preference.
/permission/admin/login | String | Mandatory |
For information on adding new users and assigning them roles, see Building your Team.