Skip to content

feat: Add Google Workspace inbound group sync support to directory provisioning#1380

Open
kushalshit27 wants to merge 2 commits intomasterfrom
DXCDT-1613-inbound-groups-directory-provisioning-for-google-workspaces-ea
Open

feat: Add Google Workspace inbound group sync support to directory provisioning#1380
kushalshit27 wants to merge 2 commits intomasterfrom
DXCDT-1613-inbound-groups-directory-provisioning-for-google-workspaces-ea

Conversation

@kushalshit27
Copy link
Copy Markdown
Contributor

🔧 Changes

  • Add support for api_enable_groups on connection options so Google Workspace connections can preserve inbound group provisioning settings during import and export.
  • directory_provisioning_configuration.synchronize_groups and synchronized_groups, which lets Deploy CLI describe whether all groups or only selected groups should sync.
  • Update directory provisioning create and update flows to pass synchronize_groups through to the Management API, and add synchronized-group replacement logic when the connection uses synchronize_groups: selected.

Examples

YAML format

connections:
  - name: google-apps
    strategy: google-apps
    options:
      domain: example.com
      tenant_domain: example.com
      client_id: some_client_id
      client_secret: some_client_secret
      api_enable_groups: true
      api_enable_users: true
    directory_provisioning_configuration:
      synchronize_groups: selected
      synchronized_groups:
        - id: group_123

JSON format

{
  "name": "google-apps",
  "strategy": "google-apps",
  "options": {
    "domain": "example.com",
    "tenant_domain": "example.com",
    "client_id": "some_client_id",
    "client_secret": "some_client_secret",
    "api_enable_groups": true,
    "api_enable_users": true
  },
  "directory_provisioning_configuration": {
    "synchronize_groups": "selected",
    "synchronized_groups": [
      {
        "id": "group_123"
      }
    ]
  }
}

🔬 Testing

  • Run npm test to validate the new schema fields, connection option passthrough, directory provisioning payloads, synchronized-group pagination, and YAML parsing updates.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

- docs/resource-specific-documentation.md: add api_enable_groups option
- examples/directory/connections/google-apps.json: include api_enable_groups in options
- examples/yaml/tenant.yaml: add api_enable_groups to tenant configuration
- src/tools/auth0/handlers/connections.ts: update schema to include api_enable_groups
- test/context/yaml/connections.test.js: add test for api_enable_groups in YAML context
- test/tools/auth0/handlers/connections.tests.js: add tests for api_enable_groups handling
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 62.06897% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.79%. Comparing base (406a6fc) to head (7a3b2d9).

Files with missing lines Patch % Lines
src/tools/auth0/handlers/connections.ts 62.06% 5 Missing and 6 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1380      +/-   ##
==========================================
- Coverage   79.85%   79.79%   -0.06%     
==========================================
  Files         153      153              
  Lines        7023     7052      +29     
  Branches     1537     1547      +10     
==========================================
+ Hits         5608     5627      +19     
- Misses        780      784       +4     
- Partials      635      641       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kushalshit27 kushalshit27 marked this pull request as ready for review May 8, 2026 09:23
@kushalshit27 kushalshit27 requested a review from a team as a code owner May 8, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants