Module: Conjur::HasOwner
Overview
Included in assets that have an owner.
Instance Method Summary collapse
-
#ownerid ⇒ String
Return the owner of this resource or asset.
-
#userid ⇒ String
Return the
useridattribute.
Methods included from HasAttributes
#attributes, #invalidate, #refresh, #save, #to_json
Instance Method Details
#ownerid ⇒ String
Return the owner of this resource or asset.
The owner of a resource or an asset with an underlying resource is allowed to do anything to the resource, including granting permissions to other roles.
Permissions
You must have the "read" permission on the underlying resource to call this method.
47 48 49 |
# File 'lib/conjur/has_owner.rb', line 47 def ownerid attributes['ownerid'] end |
#userid ⇒ String
Return the userid attribute. This is the id of the Conjur role that
created this asset.
Permissions
You must have the "read" permission on the underlying resource to call this method.
33 34 35 |
# File 'lib/conjur/has_owner.rb', line 33 def userid attributes['userid'] end |