# Setting Domain in Create Enterprise Connection \[Auth0 Management API\]

**URL:** <https://community.auth0.com/t/setting-domain-in-create-enterprise-connection-auth0-management-api/75032>\
**Category:** Get Help\
**Created:** [December 16, 2021, 10:12am UTC](https://community.auth0.com/t/setting-domain-in-create-enterprise-connection-auth0-management-api/75032 "2021-12-16T10:12:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shreyas.ezhava](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shreyas.ezhava/32/33837_2.png) [@shreyas.ezhava](https://community.auth0.com/u/shreyas.ezhava)\
**Post date:** [December 16, 2021, 10:12am UTC](https://community.auth0.com/t/setting-domain-in-create-enterprise-connection-auth0-management-api/75032/1 "2021-12-16T10:12:46Z")

</div>

I was trying to create Google Apps Enterprise connections using the Auth0 Create Connection API [[Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Connections/post_connections)]

However I was unable to set the Google Workspace Domain ([xyz.com](http://xyz.com)) as I couldn’t find the exact request body attribute that needs to be passed for it.

I would really appreciate your help. Thanks.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [December 17, 2021, 5:13pm UTC](https://community.auth0.com/t/setting-domain-in-create-enterprise-connection-auth0-management-api/75032/3 "2021-12-17T17:13:24Z")

</div>

Hi @shreyas.ezhava,

Welcome to the Auth0 Community!

To set the domain for the Google Workspace Enterprise connection, you’ll need to pass the `domain` and `tenant_domain` properties to the requesting body.

Please try the following:

```auto
{
  "options": {
    "email": true,
    "scope": [
      "email",
      "profile"
    ],
    "domain": "GOOGLE_WORKSPACE_DOMAIN_HERE",
    "profile": true,
    "client_id": "CLIENT_ID_HERE",
    "ext_groups": false,
    "ext_is_admin": false,
    "client_secret": "CLIENT_SECRET_HERE",
    "tenant_domain": "GOOGLE_WORKSPACE_DOMAIN_HERE",
    "api_enable_users": true,
    "ext_agreed_terms": false,
    "ext_is_suspended": false,
    "handle_login_from_social": true
  },
  "strategy": "google-apps",
  "name": "NAME_OF_CONNECTION_HERE",
  "is_domain_connection": false,
  "show_as_button": false,
  "enabled_clients": [
    "CLIENT_IDS_HERE"
  ]
}

```

Once this is complete, you will be able to create the Google Workspace Enterprise connection with the necessary settings. For assurance, you could verify the settings by going to your Dashboard.

Please let me know if you have any further questions. I’d be happy to help!

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 1, 2022, 5:13pm UTC](https://community.auth0.com/t/setting-domain-in-create-enterprise-connection-auth0-management-api/75032/4 "2022-01-01T17:13:51Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
