Take the 2-minute tour ×  I've been trying a few combinations
but can't seem to come up with something that works. More
information about the API I'm asking about can be found here
https://developers.google.com/admin-
sdk/directory/v1/reference/users/insert . I have a feeling I'm
just not setting up the request correctly. The following bit of
code is known to work. I use it to set up the client that is
able to query all the users.  client =
Google::APIClient.new(:application_name => "myapp", :version =>
"v0.0.0") client.authorization = Signet::OAuth2::Client.new(
:scope =>
"https://www.googleapis.com/auth/admin.directory.user",
:issuer => issuer,      :signing_key => key,      :person =>
user + "@" + domain) api = client.discovered_api("admin",
"directory_v1")  When I try to use the following code
parameters = Hash.new parameters["password"] = "ThisIsAPassword"
parameters["primaryEmail"] = "tstacct2@" + domain
parameters["name"] = {"givenName" => "Test", "familyName" =>
"Account2"} parameters[:api_m