---
title: "User Accounts"
canonical: https://customerscanvas.com/docs/cc6/google-drive-user-account.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# User Accounts

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
This topic describes how you can obtain a private key and an access token to allow your users to work with your Google Drive assets.
 
## Getting a Private Key
  
**To get a key for a user account**
 
1. Click [https://console.developers.google.com/start/api?id=drive↗](https://console.developers.google.com/start/api?id=drive) to create a project in the Google Developers Console and automatically turn on the API. On the following page, click **Continue**. 
    ![Registering an application in Google API Console.](https://customerscanvas.com/docs/cc6/images/GoogleDrive01.png)
 When the confirmation page appears, click **Go to credentials**.
2. On the **Add credentials to your project** page, click the **Cancel** button.
3. At the top of the page, click the **OAuth consent screen** tab. Select an **Email address**, enter a **Product name** if it's not already set, and then click **Save**. 
    ![Adding API credentials.](https://customerscanvas.com/docs/cc6/images/GoogleDrive02.png)
4. Click the **Credentials** tab, click the **Create credentials** button, and then select **OAuth client ID**.
5. Select the application type **Other**, enter the name "**Drive API**", and then click **Create**. 
    ![Creating OAuth client ID.](https://customerscanvas.com/docs/cc6/images/GoogleDrive03.png)
6. Click **OK** to dismiss the resulting dialog.
7. Click the **Download** button. 
    ![Downloading a key.](https://customerscanvas.com/docs/cc6/images/GoogleDrive04.png)
8. Move the downloaded file to your working directory and rename it as `client_secret.json`.
 
## Getting a Google Access Token
  
The [Google Drive web service](https://customerscanvas.com/docs/cc6/gdrive-api-service.htm.md) uses Google Access Tokens to work under user accounts.
 
Prior to the token generation, you need to specify paths to your client key and an output token file in `gdtokengen.exe.config`.
 
```xml
<configuration>
    <appSettings>
        <add key="OAuthClientSecretPath" value="client_secret.json" />
        <add key="OAuthClientCredentialPath" value="" />
    </appSettings>
    ...
</configuration>
```
 
In this example, the **OAuthClientSecretPath** parameter defines the location of the OAuth Client (the `client_secret.json` file) in the same folder where you unzipped this console application to. If **OAuthClientCredentialPath** is an empty string, then a token file will be created in the folder specified in **OAuthClientSecretPath**.
 
To generate a token:
 
1. Run `gdtokengen.exe`.
2. Sign in to your Google account.
3. Click **Allow**. 
    ![Confirming access to a Google account.](https://customerscanvas.com/docs/cc6/images/GoogleDrive05.png)
4. Press any key to close the application.
5. Verify that the `Google.Apis.Auth.OAuth2.Responses.TokenResponse-CustomersCanvas` token file has appeared in your `OAuthClientCredentialPath` folder.
 
## See Also
  
### Manual
 
- [Google Drive Assets](https://customerscanvas.com/docs/cc6/google-drive-assets.htm.md)
- [The Asset Manager](https://customerscanvas.com/docs/cc6/asset-manager.htm.md)
