title: Creating the users in the google domain (python)
body: <p>I am creating an application in which I am getting a Client_secret.json file, and in my application I'm trying to load that json file and get the credentials from it using the following code:</p>
  
  <pre><code>credentials=get_credentials(filename)
  http = credentials.authorize(httplib2.Http())
  service = discovery.build('admin', 'directory_v1', http=http)
  userinfo = {'primaryEmail': primaryEmail,
      'name': { 'givenName':user },
      'password': password
  }
  service.users().insert(body = userinfo).execute()
  </code></pre>
  
  <p>It gives the following error:</p>
  
  <blockquote>
    <p>httpError 403 when requesting https
    //www.googleapis.com/admin/directory/v1/users?alt=json returned
    insufficient permission</p>
  </blockquote>
  
  <p>I'm not sure what I'm doing wrong or am I missing something? I was wondering if the problem is in the json file which I'm creating?</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks,
  Aman</p>