Support Google Cloud Identity in SCIM bridge
The SCIM bridge requested admin.directory.userschema.readonly during OAuth consent, which is a Google Workspace-only entitlement. Cloud Identity-only admins could not grant it, so the connect flow failed before any sync ran. The scope was also unused: the provider only calls Users.List, never the schemas, groups, or customers endpoints. Trim the requested scopes down to admin.directory.user.readonly so the integration works for Workspace and Cloud Identity (Free and Premium) tenants. Switch Users.List to projection=full so standard extended fields (Organizations, ExternalIds, Relations, Languages) are populated on synced users; full projection does not require any extra OAuth scope. Relabel the connector UI to "Google Workspace / Cloud Identity" to reflect the broader support. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -68,7 +68,11 @@ func (p *Provider) ListUsers(ctx context.Context) (scimclient.Users, error) {
|
||||
pageToken := ""
|
||||
|
||||
for {
|
||||
call := adminService.Users.List().Customer("my_customer").MaxResults(500).Context(ctx)
|
||||
call := adminService.Users.List().
|
||||
Customer("my_customer").
|
||||
MaxResults(500).
|
||||
Projection("full").
|
||||
Context(ctx)
|
||||
if pageToken != "" {
|
||||
call = call.PageToken(pageToken)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user