Connect Google as an identity provider to Citrix Cloud
Citrix Cloud supports using Google as an identity provider to authenticate subscribers signing in to their workspaces. By connecting your organization’s Google account to Citrix Cloud, you can provide a unified sign-in experience for accessing Citrix Workspace and Google resources.
Note:
Google authentication is available as a preview. Citrix recommends using preview features only in non-production environments.
Requirements for domain-joined and non-domain-joined configuration
You can configure Google as an identity provider in Citrix Cloud using a machine that’s domain-joined or non-domain-joined.
- Domain-joined means machines are joined to a domain in your on-premises Active Directory (AD) and authentication uses the user profiles that are stored there.
- Non-domain-joined means machines aren’t joined to an AD domain and authentication uses the user profiles that are stored in your Google Workspace directory (also known as Google-native users).
The following table lists the requirements for each configuration type.
Requirement | Domain-joined | Non-domain-joined | More information |
---|---|---|---|
On-premises AD | Yes | No | SeePrepare Active Directory and Citrix Cloud Connectorsin this article. |
Citrix Cloud Connectors deployed in your resource location | Yes | No; Cloud Connectors aren’t needed to access non-domain-joined machines. | Prepare Active Directory and Citrix Cloud Connectorsin this article. |
AD synchronization with Google Cloud | Optional only if using Gateway service or Microapps and no other services. Otherwise, this task is required. | No | SeeSync Active Directory with Google Cloudin this article. |
Developer account with access to the Google Cloud Platform console. Used for creating a service account and key, and enabling the Admin SDK API. | Yes | Yes | SeeCreate a service account,Create a service account key, andConfigure domain-wide delegationin this article. |
一个管理or account with access to the Google Workspace Admin console. Used for configuring domain-wide delegation and a read-only API user account. | Yes | Yes | SeeConfigure domain-wide-delegationandAdd a read-only API user accountin this article. |
Google authentication with multiple Citrix Cloud accounts
This article describes how to connect Google as an identity provider to a single Citrix Cloud account. If you have multiple Citrix Cloud accounts, you can connect each one to the same Google Cloud account using the same service account and read-only API user account. Simply sign in to Citrix Cloud and select the appropriate customer ID from the customer picker.
Prepare Active Directory and Citrix Cloud Connectors
If you are using adomain-joinedmachine to configure Google authentication, use this section to prepare your on-premises AD. If you are using a non-domain-joined machine, skip this task and continue toCreate a service accountin this article.
You need at least two (2) servers in your Active Directory domain on which to install the Citrix Cloud Connector software. Cloud Connectors are required for enabling communication between Citrix Cloud and yourresource location. At least two Cloud Connectors are required to ensure a highly available connection with Citrix Cloud. These servers must meet the following requirements:
- Meets the requirements described inCloud Connector Technical Details.
- Does not have any other Citrix components installed, is not an Active Directory domain controller, and is not a machine critical to your resource location infrastructure.
- Joined to your Active Directory (AD) domain. If your workspace resources and users reside in multiple domains, you must install at least two Cloud Connectors in each domain. For more information, seeDeployment scenarios for Cloud Connectors in Active Directory.
- Connected to a network that can contact the resources that users access through Citrix Workspace.
- Connected to the Internet. For more information, seeSystem and Connectivity Requirements.
For more information about installing Cloud Connectors, seeCloud Connector Installation.
Sync Active Directory with Google Cloud
If you are using adomain-joinedmachine to configure Google authentication, use this section to prepare your on-premises AD. If you are using a non-domain-joined machine, skip this task and continue toCreate a service accountin this article.
Synchronizing your AD with Google is optional if you are using only Citrix Gateway service or Microapps, with no other services enabled. For these services alone, you can use Google-native users without needing to synchronize with your AD.
If you are using other Citrix Cloud services, synchronizing your AD with Google is required. Google Cloud must pass the following AD user attributes to Citrix Cloud:
- SecurityIDentifier (SID)
- objectGUID
- userPrincipalName (UPN)
To sync your AD with Google Cloud
- Download and install theGoogle Cloud Directory Sync utilityfrom the Google web site. For more information about this utility, see theGoogle Cloud Directory Syncdocumentation on the Google web site.
- After installing the utility, launch the Configuration Manager (Start > Configuration Manager).
- Specify the Google domain settings, and LDAP settings as described inSet up your sync with Configuration Managerof the utility documentation.
- InGeneral Settings, selectCustom Schemas. Leave the default selections unchanged.
- Configure a custom schema to apply to all user accounts. Enter the required information using the exact casing and spelling specified in this section.
- Select theCustom Schemastab and then selectAdd Schema.
- SelectUse rules defined in “User Accounts”.
- InSchema Name, entercitrix-schema.
- SelectAdd Fieldand then enter the following information:
- UnderSchema field template, inSchema Field, selectuserPrincipalName.
- UnderGoogle field details, inField Name, enterUPN.
- Repeat Step 4 to create the following fields:
- objectGUID: UnderSchema field template, selectobjectGUID. UnderGoogle field details, enterobjectGUID.
- SID: UnderSchema field template, selectCustom. UnderGoogle field details, enterSID.
- objectSID: UnderSchema field template, selectCustom. UnderGoogle field details, enterobjectSID.
- SelectOKto save your entries.
- Finish configuring any remaining settings for your organization and verify synchronization settings as described inSet up your sync with Configuration Managerof the utility documentation.
- SelectSync & apply changesto synchronize your Active Directory with your Google account.
After the sync finishes, the User Information section in Google Cloud displays users’ Active Directory information.
Create a service account
To complete this task, you need a Google Cloud Platform developer account.
- Sign in tohttps://console.cloud.google.com.
- From the Dashboard sidebar, selectIAM & Adminand then selectService Accounts.
- SelectCreate service account.
- UnderService account details, enter the service account name and service account ID.
- SelectDone.
Create a service account key
- On theService Accountspage, select the service account you just created.
- Select theKeystab and then selectAdd key > Create new key.
- Leave the default JSON key type option selected.
- SelectCreate. Save the key to a secure location that you can access later. You enter the private key in the Citrix Cloud console when you connect Google as an identity provider.
Configure domain-wide delegation
- Enable the Admin SDK API:
- From the Google Cloud Platform menu, selectAPIs & Services > Enabled APIs & services.
- SelectEnable APIs and servicesnear the top of the console. The API Library home page appears.
- Search forAdmin SDK APIand select it from the results list.
- SelectEnable.
- Create an API client for the service account:
- From the Google Cloud Platform menu, selectIAM & Admin > Service Accountsand then select the service account you created earlier.
- From the service account’sDetailstab, expandAdvanced settings.
- UnderDomain-wide Delegation, copy the Client ID and then selectView Google Workspace Admin Console.
- If applicable, select the Google Workspace administrator account you want to use. The Google Admin console appears.
- From the Google Admin sidebar, selectSecurity > Access and data control > API controls.
- UnderDomain wide delegation, clickManage Domain Wide Delegation.
- SelectAdd new.
- InClient IDpaste the client ID for the service account that you copied in Step C.
InOAuth scopes, enter the following scopes in a single comma-delimited line:
https://www.googleapis.com/auth/admin.directory.user.readonly,https://www.googleapis.com/auth/admin.directory.group.readonly,https://www.googleapis.com/auth/admin.directory.domain.readonly
- SelectAuthorize.
Add a read-only API user account
In this task, you create a Google Workspace user account that has read-only API access for Citrix Cloud. This account is not used for any other purpose and has no other privileges.
- From the Google Admin menu, selectDirectory > Users.
- SelectAdd new userand enter the appropriate user information.
- SelectAdd new userto save the account information.
- Create a custom role for the read-only user account:
- From the Google Admin menu, selectAccount > Admin roles.
- SelectCreate new role.
- Enter a name for the new role. Example: API-ReadOnly
- SelectContinue.
- UnderAdmin API privileges, select the following privileges:
- Users > Read
- Groups > Read
- Domain Management
- SelectContinueand then selectCreate role.
- Assign the custom role to the read-only user account you created earlier:
- From the custom role details page, in theAdminspane, selectAssign users.
- Start typing the name of the read-only user account and select it from the user list.
- SelectAssign role.
- To verify the role assignment, return to the Users page (Directory > Users) and select the read-only user account. The custom role assignment is displayed underAdmin roles and privileges.
Connect Google to Citrix Cloud
- Sign in to Citrix Cloud athttps://citrix.cloud.com.
- From the Citrix Cloud menu, selectIdentity and Access Management.
- Locate Google and selectConnectfrom the ellipsis menu.
- SelectImport Fileand then select the JSON file you saved whenyou created the key for the service account. This action imports your private key and the email address for the Google Cloud service account that you created.
- InImpersonated User, enter the name of the read-only API user account.
- SelectNext. Citrix Cloud verifies your Google account details and tests the connection.
- Review the associated domains that are listed. If they’re correct, selectConfirmto save your configuration.
Enable Google for workspace authentication
- From the Citrix Cloud menu, selectWorkspace Configuration > Authentication.
- SelectGoogle. When prompted, selectI understand the impact on the subscriber experienceand then clickSave.
In this article
- Requirements for domain-joined and non-domain-joined configuration
- Google authentication with multiple Citrix Cloud accounts
- Prepare Active Directory and Citrix Cloud Connectors
- Sync Active Directory with Google Cloud
- Create a service account
- Create a service account key
- Configure domain-wide delegation
- Add a read-only API user account
- Connect Google to Citrix Cloud
- Enable Google for workspace authentication