You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/administration/single-sign-on/sso-google.md
+68-2Lines changed: 68 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,9 +107,16 @@ This concludes the basic SSO setup for Google. For team/group synchronization yo
107
107
##Synchronize teams with the Codefresh CLI
108
108
109
109
In the Codefresh configuration screen there are some optional fields that you can fill, in order to
110
-
get team synchronization via the Codefresh CLI. You need to create a service account and[delegate user and group permissions](https://developers.google.com/admin-sdk/directory/v1/guides/delegation) to it.
110
+
get team synchronization via the Codefresh CLI.
111
+
112
+
You need to do the following:
113
+
114
+
* Create a service account and[delegate user and group permissions](https://developers.google.com/admin-sdk/directory/v1/guides/delegation) to it.
115
+
* Create a custom schema for user accounts, create a user role, and assign the user role to every user
116
+
* In Codefresh, configure the SAML sync settings to sync to the custom schema name
117
+
118
+
###Create a Service account from Google Console
111
119
112
-
Create a Service account from Google Console:
113
120
114
121
{% include image.html
115
122
lightbox="true"
@@ -145,6 +152,65 @@ Save the file locally. Go back to the Codefresh settings and fill in the fields
145
152
*`JSON Keyfile` - enter contents of the JSON file
146
153
*`Admin email` - The user that has access to`admin.google.com`
147
154
155
+
###Create a custom schema for user accounts
156
+
In the Google Directory API and create the custom schema for user accounts.
157
+
158
+
1. Navigate to the[Google Directory API](https://developers.google.com/admin-sdk/directory/v1/reference/schemas/insert?authuser=1).
alt="SAML Sync Setting in Codefresh for Google GSuite"
209
+
caption="SAML Sync Setting in Codefresh for Google GSuite"
210
+
max-width="40%"
211
+
%}
212
+
213
+
148
214
Now you can[synchronize teams with the Codefresh CLI]({{site.baseurl}}/docs/administration/single-sign-on/sso-setup-oauth2/#syncing-of-teams-after-initial-sso-setup) .