Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Microsoft Dynamics NAV 2009 Programming Cookbook

You're reading from   Microsoft Dynamics NAV 2009 Programming Cookbook Build better business applications with NAV

Arrow left icon
Product type Paperback
Published in Oct 2010
Publisher Packt
ISBN-13 9781849680943
Length 356 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Matthew Traxinger Matthew Traxinger
Author Profile Icon Matthew Traxinger
Matthew Traxinger
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Microsoft Dynamics NAV 2009 Programming Cookbook
Credits
About the author
About the reviewer
1. Preface
1. Strings, Dates, and Other Data Types FREE CHAPTER 2. General Development 3. Working with Tables and Records 4. Designing Forms 5. Report Design 6. Diagnosing Code Problems 7. Roles and Security 8. Leveraging Microsoft Office 9. OS Interaction 10. Integration 11. Working with SQL Server 12. The RoleTailored Client Index

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...

  1. From the NAV client click Tools | Security | Roles.

  2. Use the F3 key to enter a new role called SAMPLE with a Description of "PACKT Sample Role".

  3. With your cursor on the SAMPLE line, click on the Role button, then Permissions.

  4. Add a permission for Object Type = TableData, Object Type = 18.

  5. Close the Permissions window.

  6. Close the Role window.

  7. From the NAV client click on Tools | Security | Windows Logins (or Database Logins depending on the system).

  8. Select a user from the list and click on Roles.

  9. Add the sample role to the user.

  10. Close the Roles window.

  11. 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime