Restricting Views by Customer Group

32 views
Skip to first unread message

John Wellar

unread,
Jun 17, 2014, 7:52:12 PM6/17/14
to erpnext-u...@googlegroups.com
I am trying to restrict view of a specific user to the records of a specific type (eg Support tickets) to those of a specific customer group.

The Customer Group has a hierarchy of 
  level 1
     level 1.1
     level 1.2
         level 1.2.1
               Customer 1.2.1

1.  Set up Customer Group as a link field in the support ticket
2.  Set up specific User 
3.  Set up specific Role for that User
4.  Added a linked field in the Support Ticket of Customer Group
5.  Setup in User Permission Manager a rule for the specific user for Doc Type = Support Ticket of Customer Group = Level 1
6.  Set up a restriction rule for that rule with  "Apply User Permissions" ticked
7.  Added a support ticket with Customer Group = Level 1

    However, when I sign on as the restricted user I get 
      Showing only for (if not empty):
      Name = MM Group

This would imply that the restriction on Customer Group is not being applied but only on Name.

Am I correct?

Regards
John


Umair Sayyed

unread,
Jun 18, 2014, 5:31:12 AM6/18/14
to ERPNext User's Forum
Hello John,

In the User Permission Manager, you should add rule for Customer Groups which are selected in the Customer master and Support Ticket. Considering the case illustrated above, following rule should be added in the User Permission Manager.

User XYZ - Customer Group - Level 1.2.1

Defining rule for parent master doesn't apply same restriction on the corresponding child records. You should create separate rule in User Permission Setting for each Customer Group.



--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/09a8f0ff-3646-40be-8091-e7dd1af8f398%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks and Regards,
Umair Sayyed
www.erpnext.com

John Wellar

unread,
Jun 18, 2014, 9:21:45 PM6/18/14
to erpnext-u...@googlegroups.com
Works perfectly
Someday would be god if we could set up hierarchies
John
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages