# How to Enable Domain-Wide Delegation

## Current Situation

If you can see the "Domain-wide delegation" section with the Client ID displayed, it means:
- The section is visible
- The Client ID is: `109709678602000076480`

However, if there's no enable button visible, it could mean:
1. **It's already enabled** (check if there's a toggle/switch)
2. **You need to expand "Advanced settings"** first
3. **The UI has changed** - look for a toggle switch instead of a button

## Step-by-Step to Enable

### Option 1: Check Advanced Settings
1. Look for the **"Advanced settings"** section (it shows an upward chevron, meaning it might be collapsed)
2. Click to **expand "Advanced settings"**
3. The domain-wide delegation toggle might be inside there

### Option 2: Look for a Toggle/Switch
Instead of a button, Google Cloud Console might use:
- A **toggle switch** (on/off)
- A **checkbox**
- A **"Enable" link** or text

Look for any of these in the Domain-wide delegation section.

### Option 3: It Might Already Be Enabled
If you can see the Client ID displayed, domain-wide delegation might already be enabled. Check for:
- A green checkmark or "Enabled" status
- A toggle that's already switched "on"
- Text saying "Domain-wide delegation is enabled"

## What to Do Next

### If You See the Client ID:
The Client ID is: **109709678602000076480**

You need to authorize this in Google Workspace Admin:

1. **Go to Google Workspace Admin Console:**
   https://admin.google.com

2. **Navigate to Domain-wide Delegation:**
   - Security → API Controls → Domain-wide Delegation
   - Or direct link: https://admin.google.com/ac/owl

3. **Add the Client ID:**
   - Click "Add new" or "Manage Domain-wide Delegation"
   - Enter Client ID: `109709678602000076480`
   - Enter OAuth Scopes:
     ```
     https://www.googleapis.com/auth/drive
     ```
   - Click "Authorize"

## Alternative: Check via API

If the UI doesn't show an enable option, you can check if it's enabled via the API or try using it directly. The fact that you can see the Client ID suggests it might already be set up.

## Testing

After authorizing in Google Workspace Admin, test the file transfer functionality. If domain-wide delegation is working, the API calls should succeed.

## Still Can't Find It?

If you still can't find an enable option:
1. Take a screenshot of the entire "Domain-wide delegation" section
2. Check if there's a "Edit" or "Manage" button
3. Look for any links or text that says "Enable" or "Grant access"
4. The feature might require specific permissions - make sure you're logged in as a project owner

