Creating a new 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 role (Permission Set) to limit that access.

How to do it...

  1. From the RoleTailored client, navigate to Department | Administration | IT Administration | General | Permission Set.
  2. Use the New (Ctrl + N) action to enter a new role called SAMPLE with the description PACKT – Sample Role.
  3. Now with your cursor on the SAMPLE line, click on the action Permissions.
  4. Let's add a permission for Object Type as TableData and Object ID as 18.
  5. Set the permission as shown in the following table:

    Object Type

    Object ID

    Read Permission

    Insert Permission

    Modify Permission

    Delete Permission

    Table Data

    18

    Yes

    Yes

    Yes

    Yes

  6. After setting the permission, the NAV window will look like the following screenshot:
    How to do it...
  7. Click on OK.

How it works...

Roles are inserted into the system using the same shortcuts as in every other record, by using the Ctrl + N key. These roles have a short name called the Role ID and a longer description field.

Our role contains a permission that will allow the user full access to customer records. For Table Data object types, there are four permission levels that can be combined in any order. They include the ability to read, insert, modify, and delete records from this table. The fifth permission level is run or executed and is used for the other object types. The options for each of these permission levels are No, Yes, and Indirect.

In order to test this, we will need to assign the role to a user who does not already have permission to the Customer table. Once that role is assigned, the user will need to close the NAV client and reopen it in order to gain new permissions.

There's more...

Permission can be defined for the following objects:

Object type

Description

Table Data

Data stored in table

Table

Table object

Page

Page objects

Report

Report objects

Codeunit

Codeunit objects

XMLPort

XMLport object

MenuSuite

MenuSuite object

Query

Query object

System

The system tables that allow the user to make backups, change license files, and so on.

See also

  • Assigning a role to a user
  • Using security filters
  • Field-level security
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.111.22