# File lib/openstack/identity/connection_v2.rb, line 44 def add_user_to_tenant(options) req_body = JSON.generate('role' => { 'tenantId' => options[:tenant_id], 'roleId' => options[:role_id] }) @connection.req('POST', "/users/#{options[:user_id]}/roleRefs", data: req_body) true end