[racktables-users] Re: Permission to allow a group of users to edit some but not all attributes of objects

  • From: Heitor Assmann <heitorassmann@xxxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx, racktables-users@xxxxxxxxxxxxx
  • Date: Wed, 06 Sep 2017 13:43:33 -0300

deny {$tab_log} and {$op_del}

allow {$userid_1} # admin
allow {$username_heitor.assmann} 
#allow {$lgcn_Domain Admins}
allow {$lgcn_G_RackTables} #Admins permissions (Não apagar)
#Nao remova as 4 primeiras linhas: Necessitamos delas para acessar o RackTables 
em caso de problemas com a autenticação. 02/junho/2015).


##### Permissões somente leitura 
######################################################
#deny pages
deny {$page_ipv4space} or {$page_ipv6space} or {$page_files} or {$page_ipv4slb}
    or {$page_8021q} or {$page_config} or {$page_virtual} or {$page_cables}
    
#deny some operations
deny {$op_del} or {$op_add} or {$op_importDPData} or {$op_unlinkPort} or 
{$op_PortLinkDialog}
    
deny {$page_reports} and {$op_del}
deny {$page_object} and {$tab_ports}
#######################################################################################


##### Repetir esta seção para cada grupo - Permissões somente leitura 
######################################################

# O grupo 'G_RackTables_ReadOnly' é um grupo no AD dedicado a este tipo de 
acesso readonly, bastando add usuários neste grupo #
allow {$lgcn_G_RackTables_ReadOnly} and ({$tab_default} 
        or {$tab_rack3dview}
    or {$tab_linkmgmt}
    or {$tab_warranty}
    or {$tab_watts_per_row}
    or {$tab_custom} or {$tab_server} or {$tab_switches} or {$page_reports} and 
{$tab_ports} or {$page_file} and {$tab_download}
    )

allow {$lgcn_G_PROCEMPA_TGTS} and ({$tab_default} 
        or {$tab_rack3dview}
    or {$tab_linkmgmt}
    or {$tab_warranty}
    or {$tab_watts_per_row}
    or {$tab_custom} or {$tab_server} or {$tab_switches} or {$page_reports} and 
{$tab_ports} or {$page_file} and {$tab_download}
    )
    
allow {$lgcn_G_VMWARE_ACESSO_SNOC} and ({$tab_default} 
        or {$tab_rack3dview}
    or {$tab_linkmgmt}
    or {$tab_warranty}
    or {$tab_watts_per_row}
    or {$tab_custom} or {$tab_server} or {$tab_switches} or {$page_reports} and 
{$tab_ports} or {$page_file} and {$tab_download}
    )
    
allow {$lgcn_G_VMWARE_ADMIN_TITS} and ({$tab_default} 
        or {$tab_rack3dview}
    or {$tab_linkmgmt}
    or {$tab_warranty}
    or {$tab_watts_per_row}
    or {$tab_custom} or {$tab_server} or {$tab_switches} or {$page_reports} and 
{$tab_ports} or {$page_file} and {$tab_download}
    )
    
allow {$lgcn_G_ADM_PMPA-MONx} and ({$tab_default} 
        or {$tab_rack3dview}
    or {$tab_linkmgmt}
    or {$tab_warranty}
    or {$tab_watts_per_row}
    or {$tab_custom} or {$tab_server} or {$tab_switches} or {$page_reports} and 
{$tab_ports} or {$page_file} and {$tab_download}
    )
    
allow {$lgcn_L_PROCEMPA_SNOC_C} and ({$tab_default} 
        or {$tab_rack3dview}
    or {$tab_linkmgmt}
    or {$tab_warranty}
    or {$tab_watts_per_row}
    or {$tab_custom} or {$tab_server} or {$tab_switches} or {$page_reports} and 
{$tab_ports} or {$page_file} and {$tab_download}
    )
    
allow {$lgcn_L_PROCEMPA_sdp_C} and ({$tab_default} 
        or {$tab_rack3dview}
    or {$tab_linkmgmt}
    or {$tab_warranty}
    or {$tab_watts_per_row}
    or {$tab_custom} or {$tab_server} or {$tab_switches} or {$page_reports} and 
{$tab_ports} or {$page_file} and {$tab_download}
    )    
    
allow {$lgcn_L_PROCEMPA_sdp_R} and ({$tab_default} 
        or {$tab_rack3dview}
    or {$tab_linkmgmt}
    or {$tab_warranty}
    or {$tab_watts_per_row}
    or {$tab_custom} or {$tab_server} or {$tab_switches} or {$page_reports} and 
{$tab_ports} or {$page_file} and {$tab_download}
    )
    
##############################################################################################################################

Other related posts: