permissions to create and post certain Journals

lakshmivallurulakshmivalluru Member Posts: 168
edited 2005-09-23 in Navision Attain
Hi,

I am +ve that this can be done using Roles and Permissions. All i want to do is set a role giving permissions to create and post CASH RECEIPT, DEFAULT batch journal. So the user who has this role can only create and post CASH RECEIPT jorunals ( no toher journals) and that too only one single batch that is DEFAULT. I copied S&RJournal and S&Rpostjournal roles and assigned security filters on gen jnl line, gen template and also gen journal batch :roll: it dOdOnt work.... please help....
LR

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Is there another role defined for the same tables without a security filters or with an other security filter?

    Navision uses the role with the most permissions automaticaly.
  • lakshmivallurulakshmivalluru Member Posts: 168
    No. other than the above mentioned roles no other roles have permissions to gen jnl tables.
    LR
  • kinekine Member Posts: 12,562
    Do not forget, that security filters could not work everywhere... if you open the table directly under this account, can you see all lines?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • lakshmivallurulakshmivalluru Member Posts: 168
    can anyone let me know what is the best way to achieve what i am trying to do?
    LR
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    If the permissions don't work you can do this with code.

    If a user is only allowed to post one journal and one batch you can add these fields to the user setup table and test them in the posting routine.

    If you need more explanation of this let me know. :D
  • lakshmivallurulakshmivalluru Member Posts: 168
    I know,it needs a new table, form and link it to user setupo allow to post in multiple journals....but i really want this to be controlled by roles. And even though i create a new table and form and link it to user setup, i would like the users to see only specified journal templates and batches.Don't want to wait till they create the journal and ristrict them to post saying 'he he he... you don't have permissions' ... any more options please.............
    LR
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    You can modify the journalmanagement codeunits.
  • lakshmivallurulakshmivalluru Member Posts: 168
    what do you mean? setup roles and then modify the journal management codeunit? or create a new table,form and link it to user setup and then modify the journal management codeunit?
    LR
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    In the journal management codeunits the filters are set on the Journal templates/batches, you can expand this with your new user setup tables.

    Have a look in codeunit 230 for example.
Sign In or Register to comment.