This page goes into detail about setting up user groups, roles and privileges.
Access Control
Accessing to an Application
Open the Properties of your application
Click on the Securitytab
All Users Can View Application, ticking this makes the application available to all. If you want to use this option consider applying it once the application is complete.
User Groups, lists the groups that have access to our application.
Select a group and the delete icon appears allowing you to remove the group.
Click on the group icon to see a list of available groups, these can be dragged into the list.
For our example we will leave the options as they are.
Testing
First we need to create a new test user as follows.
In theFull Repository, right-click Users.
Clickand set:
the username and password.
Enabled, tick.
Add theUser Group, Users to the user.
Log out of PhixFlow.
Log into PhixFlow as the test user. You should not be able to see your application, click on the 9 dots to confirm this.
Now, log back in as yourself
Update the test user's associated User Groups, adding the group associated to your application. This should be the My Application group as illustrated:
Log in as the test user and your application is now available.
Controlling Privileges in an Application
Within an application there can be varying levels of permissions. Here we will look at adding permissions to a specific button but they can be added to other content to restrict access and interactions.
Open the Home screen so it is ready to edit.
Click on the Orders button so the properties open. We can restrict who has permissions to see this and use this button with a few clicks.
Click on the Securitytab.
By default All Users can View Data is ticked. This allows users permission to see and click this button.
Note it is possible to create user accounts that only have read only permissions and therefore cannot click on any button.For more information on this see the links in the introduction section above.
Untick All Users can View Data.
As before User Groups lists the groups that have access to this button.
Click on the group icon to see a list of available groups, drag the appname_Admin group into the list i.e. My Application_Admin.
Select a group and the delete icon appears allowing you to remove the group.
Save your changes.
Testing
Login as the test user created earlier.
When the Home screen loads the Orders option will not appear:
This option will only be available to users in the My Application_Admin user group.
In a future release the security will be assigned to the actionflow backing the button, this will result in all buttons using the actionflow only being available to users with the appropriate user groups.