Method: Puppet::Util::Windows::Security#get_group
- Defined in:
- lib/puppet/util/windows/security.rb
#get_group(path) ⇒ Object
Get the group of the object referenced by path. The returned value is a SID string, e.g. “S-1-5-32-544”. Any user with read access to an object can get the group. Only a user with the SE_BACKUP_NAME privilege in their process token can get the group for objects they do not have read access to.
155 156 157 158 159 |
# File 'lib/puppet/util/windows/security.rb', line 155 def get_group(path) return unless supports_acl?(path) get_security_descriptor(path).group end |