scim_tenants
Creates, updates, deletes, gets or lists a scim_tenants resource.
Overview
| Name | scim_tenants |
| Type | Resource |
| Id | google.iam.scim_tenants |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Gemini Enterprise only. The resource name of the SCIM Tenant. Format: locations/{location}/workforcePools/{workforce_pool}/providers/ {workforce_pool_provider}/scimTenants/{scim_tenant} |
baseUri | string | Output only. Gemini Enterprise only. Represents the base URI as defined in RFC 7644, Section 1.3. Clients must use this as the root address for managing resources under the tenant. Format: https://iamscim.googleapis.com/{version}/{tenant_id}/ |
claimMapping | object | Required. Immutable. Gemini Enterprise only. Maps SCIM attributes to Google attributes. This mapping is used to associate the attributes synced via SCIM with the Google Cloud attributes used in IAM policies for Workforce Identity Federation. SCIM-managed user and group attributes are mapped to google.subject and google.group respectively. Each key must be a string specifying the Google Cloud IAM attribute to map to. The supported keys are as follows: * google.subject: The principal IAM is authenticating. You can reference this value in IAM bindings. This is also the subject that appears in Cloud Logging logs. This is a required field and the mapped subject cannot exceed 127 bytes. * google.group: Group the authenticating user belongs to. You can grant group access to resources using an IAM principalSet binding; access applies to all members of the group. Each value must be a [Common Expression Language] (https://opensource.google/projects/cel) expression that maps SCIM user or group attribute to the normalized attribute specified by the corresponding map key. Example: To map the SCIM user's externalId to google.subject and the SCIM group's externalId to google.group: { "google.subject": "user.externalId", "google.group": "group.externalId" } |
description | string | Optional. Gemini Enterprise only. The description of the SCIM tenant. Cannot exceed 256 characters. |
displayName | string | Optional. Gemini Enterprise only. The display name of the SCIM tenant. Cannot exceed 32 characters. |
purgeTime | string (google-datetime) | Output only. Gemini Enterprise only. The timestamp that represents the time when the SCIM tenant is purged. |
serviceAgent | string | Output only. Service Agent created by SCIM Tenant API. SCIM tokens created under this tenant will be attached to this service agent. |
state | string | Output only. Gemini Enterprise only. The state of the tenant. (STATE_UNSPECIFIED, ACTIVE, DELETED) |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Gemini Enterprise only. The resource name of the SCIM Tenant. Format: locations/{location}/workforcePools/{workforce_pool}/providers/ {workforce_pool_provider}/scimTenants/{scim_tenant} |
baseUri | string | Output only. Gemini Enterprise only. Represents the base URI as defined in RFC 7644, Section 1.3. Clients must use this as the root address for managing resources under the tenant. Format: https://iamscim.googleapis.com/{version}/{tenant_id}/ |
claimMapping | object | Required. Immutable. Gemini Enterprise only. Maps SCIM attributes to Google attributes. This mapping is used to associate the attributes synced via SCIM with the Google Cloud attributes used in IAM policies for Workforce Identity Federation. SCIM-managed user and group attributes are mapped to google.subject and google.group respectively. Each key must be a string specifying the Google Cloud IAM attribute to map to. The supported keys are as follows: * google.subject: The principal IAM is authenticating. You can reference this value in IAM bindings. This is also the subject that appears in Cloud Logging logs. This is a required field and the mapped subject cannot exceed 127 bytes. * google.group: Group the authenticating user belongs to. You can grant group access to resources using an IAM principalSet binding; access applies to all members of the group. Each value must be a [Common Expression Language] (https://opensource.google/projects/cel) expression that maps SCIM user or group attribute to the normalized attribute specified by the corresponding map key. Example: To map the SCIM user's externalId to google.subject and the SCIM group's externalId to google.group: { "google.subject": "user.externalId", "google.group": "group.externalId" } |
description | string | Optional. Gemini Enterprise only. The description of the SCIM tenant. Cannot exceed 256 characters. |
displayName | string | Optional. Gemini Enterprise only. The display name of the SCIM tenant. Cannot exceed 32 characters. |
purgeTime | string (google-datetime) | Output only. Gemini Enterprise only. The timestamp that represents the time when the SCIM tenant is purged. |
serviceAgent | string | Output only. Service Agent created by SCIM Tenant API. SCIM tokens created under this tenant will be attached to this service agent. |
state | string | Output only. Gemini Enterprise only. The state of the tenant. (STATE_UNSPECIFIED, ACTIVE, DELETED) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | locationsId, workforcePoolsId, providersId, scimTenantsId | Gemini Enterprise only. Gets an individual WorkforcePoolProviderScimTenant. | |
list | select | locationsId, workforcePoolsId, providersId | showDeleted, pageSize, pageToken | Gemini Enterprise only. Lists all non-deleted WorkforcePoolProviderScimTenants in a WorkforcePoolProvider. If show_deleted is set to true, then deleted SCIM tenants are also listed. |
create | insert | locationsId, workforcePoolsId, providersId | workforcePoolProviderScimTenantId | Gemini Enterprise only. Creates a new WorkforcePoolProviderScimTenant in a WorkforcePoolProvider. You cannot reuse the name of a deleted SCIM tenant until 30 days after deletion. |
patch | update | locationsId, workforcePoolsId, providersId, scimTenantsId | updateMask | Gemini Enterprise only. Updates an existing WorkforcePoolProviderScimTenant. |
delete | delete | locationsId, workforcePoolsId, providersId, scimTenantsId | hardDelete | Gemini Enterprise only. Deletes a WorkforcePoolProviderScimTenant. You can undelete a SCIM tenant for 30 days. After 30 days, deletion is permanent. You cannot update deleted SCIM tenants. However, you can view and list them. |
undelete | exec | locationsId, workforcePoolsId, providersId, scimTenantsId | Gemini Enterprise only. Undeletes a WorkforcePoolProviderScimTenant, that was deleted fewer than 30 days ago. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
providersId | string | |
scimTenantsId | string | |
workforcePoolsId | string | |
hardDelete | boolean | |
pageSize | integer (int32) | |
pageToken | string | |
showDeleted | boolean | |
updateMask | string (google-fieldmask) | |
workforcePoolProviderScimTenantId | string |
SELECT examples
- get
- list
Gemini Enterprise only. Gets an individual WorkforcePoolProviderScimTenant.
SELECT
name,
baseUri,
claimMapping,
description,
displayName,
purgeTime,
serviceAgent,
state
FROM google.iam.scim_tenants
WHERE locationsId = '{{ locationsId }}' -- required
AND workforcePoolsId = '{{ workforcePoolsId }}' -- required
AND providersId = '{{ providersId }}' -- required
AND scimTenantsId = '{{ scimTenantsId }}' -- required
;
Gemini Enterprise only. Lists all non-deleted WorkforcePoolProviderScimTenants in a WorkforcePoolProvider. If show_deleted is set to true, then deleted SCIM tenants are also listed.
SELECT
name,
baseUri,
claimMapping,
description,
displayName,
purgeTime,
serviceAgent,
state
FROM google.iam.scim_tenants
WHERE locationsId = '{{ locationsId }}' -- required
AND workforcePoolsId = '{{ workforcePoolsId }}' -- required
AND providersId = '{{ providersId }}' -- required
AND showDeleted = '{{ showDeleted }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;
INSERT examples
- create
- Manifest
Gemini Enterprise only. Creates a new WorkforcePoolProviderScimTenant in a WorkforcePoolProvider. You cannot reuse the name of a deleted SCIM tenant until 30 days after deletion.
INSERT INTO google.iam.scim_tenants (
data__name,
data__displayName,
data__description,
data__claimMapping,
locationsId,
workforcePoolsId,
providersId,
workforcePoolProviderScimTenantId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ description }}',
'{{ claimMapping }}',
'{{ locationsId }}',
'{{ workforcePoolsId }}',
'{{ providersId }}',
'{{ workforcePoolProviderScimTenantId }}'
RETURNING
name,
baseUri,
claimMapping,
description,
displayName,
purgeTime,
serviceAgent,
state
;
# Description fields are for documentation purposes
- name: scim_tenants
props:
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the scim_tenants resource.
- name: workforcePoolsId
value: "{{ workforcePoolsId }}"
description: Required parameter for the scim_tenants resource.
- name: providersId
value: "{{ providersId }}"
description: Required parameter for the scim_tenants resource.
- name: name
value: "{{ name }}"
description: |
Identifier. Gemini Enterprise only. The resource name of the SCIM Tenant. Format: `locations/{location}/workforcePools/{workforce_pool}/providers/ {workforce_pool_provider}/scimTenants/{scim_tenant}`
- name: displayName
value: "{{ displayName }}"
description: |
Optional. Gemini Enterprise only. The display name of the SCIM tenant. Cannot exceed 32 characters.
- name: description
value: "{{ description }}"
description: |
Optional. Gemini Enterprise only. The description of the SCIM tenant. Cannot exceed 256 characters.
- name: claimMapping
value: "{{ claimMapping }}"
description: |
Required. Immutable. Gemini Enterprise only. Maps SCIM attributes to Google attributes. This mapping is used to associate the attributes synced via SCIM with the Google Cloud attributes used in IAM policies for Workforce Identity Federation. SCIM-managed user and group attributes are mapped to `google.subject` and `google.group` respectively. Each key must be a string specifying the Google Cloud IAM attribute to map to. The supported keys are as follows: * `google.subject`: The principal IAM is authenticating. You can reference this value in IAM bindings. This is also the subject that appears in Cloud Logging logs. This is a required field and the mapped subject cannot exceed 127 bytes. * `google.group`: Group the authenticating user belongs to. You can grant group access to resources using an IAM `principalSet` binding; access applies to all members of the group. Each value must be a [Common Expression Language] (https://opensource.google/projects/cel) expression that maps SCIM user or group attribute to the normalized attribute specified by the corresponding map key. Example: To map the SCIM user's `externalId` to `google.subject` and the SCIM group's `externalId` to `google.group`: ``` { "google.subject": "user.externalId", "google.group": "group.externalId" } ```
- name: workforcePoolProviderScimTenantId
value: "{{ workforcePoolProviderScimTenantId }}"
UPDATE examples
- patch
Gemini Enterprise only. Updates an existing WorkforcePoolProviderScimTenant.
UPDATE google.iam.scim_tenants
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__claimMapping = '{{ claimMapping }}'
WHERE
locationsId = '{{ locationsId }}' --required
AND workforcePoolsId = '{{ workforcePoolsId }}' --required
AND providersId = '{{ providersId }}' --required
AND scimTenantsId = '{{ scimTenantsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
baseUri,
claimMapping,
description,
displayName,
purgeTime,
serviceAgent,
state;
DELETE examples
- delete
Gemini Enterprise only. Deletes a WorkforcePoolProviderScimTenant. You can undelete a SCIM tenant for 30 days. After 30 days, deletion is permanent. You cannot update deleted SCIM tenants. However, you can view and list them.
DELETE FROM google.iam.scim_tenants
WHERE locationsId = '{{ locationsId }}' --required
AND workforcePoolsId = '{{ workforcePoolsId }}' --required
AND providersId = '{{ providersId }}' --required
AND scimTenantsId = '{{ scimTenantsId }}' --required
AND hardDelete = '{{ hardDelete }}'
;
Lifecycle Methods
- undelete
Gemini Enterprise only. Undeletes a WorkforcePoolProviderScimTenant, that was deleted fewer than 30 days ago.
EXEC google.iam.scim_tenants.undelete
@locationsId='{{ locationsId }}' --required,
@workforcePoolsId='{{ workforcePoolsId }}' --required,
@providersId='{{ providersId }}' --required,
@scimTenantsId='{{ scimTenantsId }}' --required
;