code: def get_default_keychain(user=None, domain="user"):
      '''
      Get the default keychain
  
      user
          The user to check the default keychain of
  
      domain
          The domain to use valid values are user|system|common|dynamic, the default is user
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' keychain.get_default_keychain
      '''
      cmd = "security default-keychain -d {0}".format(domain)
      return __salt__['cmd.run'](cmd, runas=userf get_default_keychain(user=None, domain="user"):
      '''
      Get the default keychain
  
      user
          The user to check the default keychain of
  
      domain
          The domain to use valid values are user|system|common|dynamic, the default is user
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' keychain.get_default_keychain
      '''
      cmd = "security default-keychain -d {0}".format(domain)
      return __salt__['cmd.run'](cmd, runas=user)
docs: Get the default keychain
  
      user
          The user to check the default keychain of
  
      domain
          The domain to use valid values are user|system|common|dynamic, the default is user
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' keychain.get_default_keychain