Skip to content

Commit b692306

Browse files
Add scimUsage flag to WorkforcePoolProvider (#15455)
1 parent 8000f1a commit b692306

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

mmv1/products/iamworkforcepool/WorkforcePoolProvider.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,3 +556,19 @@ properties:
556556
The filter used to request specific records from IdP. In case of attributes type as AZURE_AD_GROUPS_ID, it represents the
557557
filter used to request specific groups for users from IdP. By default, all of the groups associated with the user are fetched. The
558558
groups should be security enabled. See https://learn.microsoft.com/en-us/graph/search-query-parameter for more details.
559+
- name: 'scimUsage'
560+
type: Enum
561+
description: |
562+
Agentspace only. Specifies whether the workforce identity pool
563+
provider uses SCIM-managed groups instead of the `google.groups`
564+
attribute mapping for authorization checks.
565+
566+
The `scimUsage` and `extendedAttributesOauth2Client` fields are
567+
mutually exclusive. A request that enables both fields on the same
568+
workforce identity pool provider will produce an error.
569+
* SCIM_USAGE_UNSPECIFIED: Default behaviour
570+
* ENABLED_FOR_GROUPS: Use SCIM-managed groups instead of the `google.groups`
571+
attribute mapping for authorization checks
572+
enum_values:
573+
- 'SCIM_USAGE_UNSPECIFIED'
574+
- 'ENABLED_FOR_GROUPS'

mmv1/third_party/terraform/services/iamworkforcepool/resource_iam_workforce_pool_provider_test.go.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
465465
description = "A sample OIDC workforce pool provider with updated description."
466466
disabled = true
467467
attribute_condition = "false"
468+
scim_usage = "ENABLED_FOR_GROUPS"
468469
}
469470
`, context)
470471
}
@@ -581,6 +582,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
581582
description = "A sample SAML workforce pool provider with updated description."
582583
disabled = true
583584
attribute_condition = "false"
585+
scim_usage = "ENABLED_FOR_GROUPS"
584586
}
585587
`, context)
586588
}

0 commit comments

Comments
 (0)