Platform roles are user roles applicable to the entire system, rather than a selected application. WSO2 App Factory comes by default with a set of commonly-used system roles. They are
- App Factory Users
In addition to these, you can also define your own roles and set permissions to them using the
<PlatformRoles> element in
The default roles are defined within
<DefaultUserRole name=""> elements under the
<PlatformRoles> element while the newly-added ones are defined within
<Role name=""> elements. For example, the
appFactoryUsers role is a default role assigned to all the users created in App Factory.
Following sample code adds a new role by the name admin to App Factory:
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
|Element Name||Description||Type||Default Value||Fixed Values||Mandatory/Optional|
|Define set of platform roles.|
Default platform role name. This tag defined set of entitlements which is assigned to all user created by App Factory.
Set of entitlements allowed for mentioned role. Each entitlements are separated by comma.
|Role tag is used to define other set of super admin roles.||String|