define and manage user permissions for margin module