Method: OpenStack::Identity::ConnectionV3#add_user_to_tenant

Defined in:
lib/openstack/identity/connection_v3.rb

#add_user_to_tenant(options) ⇒ Object



46
47
48
49
# File 'lib/openstack/identity/connection_v3.rb', line 46

def add_user_to_tenant(options)
  @connection.req('PUT', "/projects/#{options[:tenant_id]}/users/#{options[:user_id]}/roles/#{options[:role_id]}")
  true
end