Creating and assigning a security role
NAV has its own built-in methods for controlling access to certain parts of the system. This recipe will show you how to create roles to limit that access.
How to do it...
From the NAV client click Tools | Security | Roles.
Use the F3 key to enter a new role called SAMPLE with a Description of "PACKT Sample Role".
With your cursor on the SAMPLE line, click on the Role button, then Permissions.
Add a permission for Object Type =
TableData
, Object Type =18
.Close the Permissions window.
Close the Role window.
From the NAV client click on Tools | Security | Windows Logins (or Database Logins depending on the system).
Select a user from the list and click on Roles.
Add the sample role to the user.
Close the Roles window.
Close the Logins window.
How it works...
The security system in NAV is maintained using roles and permissions. A role is made up of permissions to access specific objects in the database such as tables, forms, reports, and even system objects such...