var createUser = {
auth: auth,
"resource": {
"name": {
"givenName": newUser.First,
"familyName": newUser.Last
},
"password": "mcs12345",
"primaryEmail": newUser.District_Email,
"changePasswordAtNextLogin": false,
"orgUnitPath": "/Staff"
}
};
On
If you take a look at the code:
https:
//github.com/google/google-api-nodejs-client/blob/master/apis/admin/directory_v1.js
you can see the directory-v1 -> users object and the insert() method. It
takes a "params" argument. This params argument gets wrapped as a larger
"parameters" argument
I saw that post, but did not know how to do that.
On Thursday, May 5, 2016 at 12:04:34 AM UTC-4, Christopher Mina wrote:
>
> Hi.
>
> I'm not familiar with the library, but your code generally look ok.
>
> Check out this StackOverflow post, maybe it's as simple as setting the
> header
Hi.
I'm not familiar with the library, but your code generally look ok.
Check out this StackOverflow post, maybe it's as simple as setting the
header ContentType to application/json? Would be an improper error message
if so, but hey, stranger things have happened: