non SUPER role cannot create new users ?

pardonmepardonme Member Posts: 8
Hi there,

I have this form where HR user can create new users
Create new user here refers to create new SQL server login and database login

All this long, when i develop the form, i'm using SUPER user to test and everything is working fine.

Then it's time to go live. Client assigned 1 user who will be in charge to use that form with HR USER role and ALL role.
The HR USER role only give permission to objects used on that form.

When this HR USER tried to create new user using that form, got error
"You do not have permission to read G/L Account table"

while that form doesn't have any relation to G/L Account table

If i give permission for that user to the G/L Account table, later it will get similar error message but different table name
"You do not have permission to read G/L Entry table"
"You do not have permission to read Cust. Ledger Entry table"
"You do not have permission to read Item table"
"You do not have permission to read Item Ledger Entry table"
"You do not have permission to read Sales Header table"
"You do not have permission to read Sales Line table"

and many more

I dont want to give SUPER role for that HR user.
anyone can help me here?
any alternative I can do other than giving that HR user a SUPER role?

is it only SUPER user allowed to do something like creating new user?

need enlightenment :-k
thanks before

Comments

  • ufukufuk Member Posts: 514
    No, Super role is not required. You can grant this permission by using Tools, Security, DB Logins permission (Object Type is System) to access the db logins form. For the User and User role related permissions you can use TableData 2000000002 and 2000000004. You should also grant required permissions to this user on sql side.
    Ufuk Asci
    Pargesoft
  • strykstryk Member Posts: 645
    Hi there,

    to assign Roles and Permissions in NAV you need to be assigned to SUPER or SECURITY roles in NAV!
    To set up the Logins/Users in SQL Server you need to be sysadmin or db_securityadmin.

    Read the manual about details!
    Jörg A. Stryk (MVP - Dynamics NAV)
    NAV/SQL Performance Optimization & Troubleshooting
    STRYK System Improvement
    The Blog - The Book - The Tool
  • strykstryk Member Posts: 645
    ufuk wrote:
    You should also grant required permissions to this user on sql side.

    NO WAY! :shock:
    NAV roles and permissions should be handled within NAV, only the minimum required SQL roles should be assigned.
    Fiddling with NAV permissions "outside" NAV could raise a real security-issue!

    More about that: http://dynamicsuser.net/blogs/stryk/archive/2010/02/16/extended-database-hardening-nav-sql.aspx
    Jörg A. Stryk (MVP - Dynamics NAV)
    NAV/SQL Performance Optimization & Troubleshooting
    STRYK System Improvement
    The Blog - The Book - The Tool
  • pardonmepardonme Member Posts: 8
    ufuk and stryk
    thanks for the suggestion, but it doesnt work

    I have tried to give SECURITY role and on SQL, it's already sysadmin for that user, but still got the same error.

    any other idea why?
  • strykstryk Member Posts: 645
    Have you checked with Debugger?
    Jörg A. Stryk (MVP - Dynamics NAV)
    NAV/SQL Performance Optimization & Troubleshooting
    STRYK System Improvement
    The Blog - The Book - The Tool
  • ufukufuk Member Posts: 514
    stryk wrote:
    ufuk wrote:
    You should also grant required permissions to this user on sql side.

    NO WAY! :shock:
    NAV roles and permissions should be handled within NAV, only the minimum required SQL roles should be assigned.
    Fiddling with NAV permissions "outside" NAV could raise a real security-issue!

    More about that: http://dynamicsuser.net/blogs/stryk/archive/2010/02/16/extended-database-hardening-nav-sql.aspx

    If you require a user with minimum rights to create users and assign permissions then why do you want to use super user? The permissions on the sql side will be similar for both users and nothing extra is handled on sql side. In fact creating an additional super user has more risk than the the model I recommended.

    If they handle these issues with only one super user of course this is better but if company requires more users to deal with these issues I think my suggestion is not a shocking model:)
    Ufuk Asci
    Pargesoft
  • ufukufuk Member Posts: 514
    My recommendation worked on my local properly.
    Where do you try to give permissions? Is it a custom form or the standart database logins form?
    Ufuk Asci
    Pargesoft
Sign In or Register to comment.