This documentation is for WSO2 App Factory 2.0.0. View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

Introduction

WSO2 App Factory comes with four application user roles by default. They are AppOwner, Developer, QA and DevOps. These roles manage the app development lifecycle stages. For more information about the default lifecycle stages and roles, see Default Application Lifecycle.

You can customize these existing roles, 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 NameDescriptionTypeDefault ValueFixed ValuesMandatory/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
/permission/admin/appfactory/develop
/permission/admin/appfactory/repository/readwrite
/permission/admin/appfactory/build
/permission/admin/appfactory/repository/branch
/permission/admin/appfactory/deployTo/<state>
/permission/admin/appfactory/configure/api/subscribe
/permission/admin/appfactory/resources/create/<state>

  /permission/admin/appfactory/resources/read/<state>
/permission/admin/appfactory/resource/update/<state>
/permission/admin/appfactory/promoteTo/<state>
/permission/admin/appfactory/visibility/<state>
/permission/admin/appfactory/configuration/apimanager
/permission/admin/appfactory/retire
/permission/admin/appfactory/demoteTo/<state>
/permission/admin/appfactory/usermgt/invite
/permission/admin/appfactory/application/create
/permission/admin/appfactory/ceo/dashboard
/permission/admin/manage/api/subscribe
/permission/admin/manage/api/create
/permission/admin/manage/api/publish
/permission/admin/configure/governance
/permission/admin/manage/resources
/permission/admin/appfactory/
/permission/admin/appfactory/ceo/dashboard

String  Mandatory
  • No labels