@decorators.which('id')
def primary_group(name):
 return __salt__['cmd.run'](['id', '-g', '-n', name])

@ decorators . which ( 'id' ) def primary_group ( name ) : return __salt__ [ 'cmd.run' ] ( [ 'id' , '-g' , '-n' , name ] )
return the primary group of the named user .