The access rights in Viindoo customizer¶
With the Viindoo Customizer application, a system administrator decides which user groups can reach the data of the Viindoo Enterprise Management Software, at three levels: a whole model, one element on one screen, and a custom field wherever it appears. This article shows what each level does, how to set it, and which one to choose.
Who |
A system administrator: a user whose Role is Administrator. |
App |
Viindoo Customizer |
Requirements
This tutorial requires the installation of the following applications/modules:
It also assumes you know how to open the Customizer. See Customize the existing interface.
Choose the right level¶
Level |
What it controls |
Where you set it |
Model access rights |
Whether a group can read, write, create or delete the records of a model. |
Access Rights in the toolbar. |
Limit visibility to groups or Forbid visibility to groups |
Whether a group sees one element, such as a field, a button or a page, on one screen. |
Properties tab of the selected element. |
Field access |
Whether a group can use a custom field at all: on every screen, in exports and through the API. |
Properties tab of the selected custom field. |
Use model access rights to decide who may work with a kind of record. Use the visibility controls to tidy one screen for one group. Use Field access when the information itself must stay out of reach of the other groups.
Modify model access rights¶
In Viindoo, a model is a table of information, such as Sales Order, Contact or Product. An access right says what a user group may do with the records of one model.
Open the screen of the model you want to protect, for example a sales order, then click the cogs icon titled Customization Mode to open the Customizer.
In the toolbar, click Access Rights.
The list shows every access right of the model of the current screen, with the columns Name, Model, Group, Read Access, Write Access, Create Access and Delete Access.
Click a row to change an existing access right, or click New to add one and fill in the row:
Name: the technical name of this access right.
Model: the model it applies to.
Group: the user group it applies to.
Read Access: the group can see the records. Without it, the group cannot reach the record in any way, including through a link or a related record.
Write Access: the group can edit existing records.
Create Access: the group can create records, or duplicate an existing one.
Delete Access: the group can delete records.
Click Save to apply the row, or Discard to cancel it. To learn how user groups work, see How to set user access rights with groups.
Modify field access rights¶
Select a field on a screen of the Customizer to decide who sees it. This changes one element on one screen. The same field stays visible on another screen unless you restrict it there too, or restrict the field itself (see Restrict a custom field everywhere).
Open the screen that contains the field, for example the form of a sales order, then open the Customizer.
Click the value of the field on the canvas. The left panel switches to the Properties tab.
Scroll down to Limit visibility to groups and Forbid visibility to groups.
Limit visibility to groups: only the members of the groups you choose see the element on this screen. Leave it empty to show the element to everyone who can open the screen.
Forbid visibility to groups: the members of the groups you choose do not see the element on this screen, and everyone else does.
You can choose any group of your database, including a group you created yourself. The change is saved at once, and the toolbar shows Saved. Every element you select, not only a field, offers the same two controls.
Tip
Open the screen with a user of each group to check what that group sees. The canvas of the Customizer always shows the element, so that you can still select it.
Restrict a custom field everywhere¶
Field access goes further than the visibility controls. It restricts the field itself: users
outside the groups you choose cannot see, read or change the field on any screen, in an export, or
through the API. It is available for custom fields, that is, the fields whose technical name starts
with x_, as every field created with the Customizer does.
Open a screen that shows the custom field and open the Customizer.
Click the field on the canvas.
In the Properties tab, scroll down to Field access and choose one or more groups, for example Sales / Administrator.
The users who belong to none of these groups no longer find the field: it disappears from the screens, and the system refuses to read or change it for them. Administrators always keep access. The fixed Administrators (always kept) tag, and the Role / Administrator group added next to the groups you chose, show it.
Note
You can also fill in Field access (all views) when you create the field, so that it is restricted from the start. See Create a new apps and models.
Warning
The Customizer enforces the access groups of a custom field. If the Customizer app is uninstalled, they stop applying: every user who can see the model can see, read and change the field. See the uninstall section of Export and import customizations.
A few rules apply:
A standard field cannot be restricted here. For a standard field, the Field access section states that its access is defined by the module that provides it.
The field that holds the name of the records cannot be restricted, because everyone who can see a record must be able to see its name.
A required field can be restricted only while it has a default value that applies to every user, every company and every condition. Otherwise, users outside the groups could no longer create a record. The Customizer refuses the change and explains why.
Common problems¶
Problem |
Cause |
What to do |
|---|---|---|
The Customizer icon is missing. |
The user is not an administrator, or the window is narrower than 768 pixels. |
Set Role to Administrator for the user, and widen the window. |
Field access only shows a note. |
The selected field is a standard field. |
Restrict the element on one screen with Limit visibility to groups, or create a custom field for the information. |
The restriction of a required field is refused. |
The field has no default value that applies to everyone. |
Give the field a default value, or make it optional, then restrict it. |
A user cannot find a field you restricted. |
The user belongs to none of the groups chosen in Field access. |
Add the user’s group to Field access. |
See also
Related article