Identity Provider API, gRPC: SynchronizationService.UpdateSynchronizationSettings
Updates synchronization settings for a subject container.
gRPC request
rpc UpdateSynchronizationSettings (UpdateSynchronizationSettingsRequest) returns (operation.Operation)
UpdateSynchronizationSettingsRequest
{
"subject_container_id": "string",
"filter": {
"domain": "string",
"groups": [
"string"
],
"organization_units": [
"string"
]
},
"replacement_domain": "string",
"remove_user_behavior": "RemoveUserBehavior",
"synchronization_interval": "google.protobuf.Duration",
"allow_to_capture_users": "bool",
"allow_to_capture_groups": "bool",
"user_attribute_mappings": [
{
"source": "string",
"target": "UserTargetAttribute",
"type": "MappingType"
}
],
"group_attribute_mappings": [
{
"source": "string",
"target": "GroupTargetAttribute",
"type": "MappingType"
}
],
"update_mask": "google.protobuf.FieldMask"
}
Request to update synchronization settings.
|
Field |
Description |
|
subject_container_id |
string Required field. ID of the subject container. The maximum string length in characters is 50. |
|
filter |
Filter configuration for synchronization. |
|
replacement_domain |
string Domain replacement configuration. The string length in characters must be 0-253. |
|
remove_user_behavior |
enum RemoveUserBehavior Behavior when removing users.
|
|
synchronization_interval |
Interval between synchronization runs. |
|
allow_to_capture_users |
bool Whether users can be captured during synchronization. |
|
allow_to_capture_groups |
bool Whether groups can be captured during synchronization. |
|
user_attribute_mappings[] |
User attribute mappings. The maximum number of elements is 50. |
|
group_attribute_mappings[] |
Group attribute mappings. The maximum number of elements is 50. |
|
update_mask |
Field mask that specifies which fields are going to be updated. |
SynchronizationFilter
Filter configuration for synchronization.
|
Field |
Description |
|
domain |
string Required field. Domain to synchronize. The string length in characters must be 1-253. |
|
groups[] |
string List of groups to synchronize. The string length in characters for each value must be 1-253. The maximum number of elements is 10. |
|
organization_units[] |
string List of organizational units to synchronize. The string length in characters for each value must be 1-253. The maximum number of elements is 10. |
UserAttributeMapping
User attribute mapping configuration.
|
Field |
Description |
|
source |
string Source attribute name. The string length in characters must be 0-253. |
|
target |
enum UserTargetAttribute Required field. Target attribute to map to.
|
|
type |
enum MappingType Required field. Type of mapping.
|
GroupAttributeMapping
Group attribute mapping configuration.
|
Field |
Description |
|
source |
string Source attribute name. The string length in characters must be 0-253. |
|
target |
enum GroupTargetAttribute Required field. Target attribute to map to.
|
|
type |
enum MappingType Required field. Type of mapping.
|
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"subject_container_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"subject_container_id": "string",
"filter": {
"domain": "string",
"groups": [
"string"
],
"organization_units": [
"string"
]
},
"remove_user_behavior": "RemoveUserBehavior",
"synchronization_interval": "google.protobuf.Duration",
"allow_to_capture_users": "bool",
"allow_to_capture_groups": "bool",
"user_attribute_mappings": [
{
"source": "string",
"target": "UserTargetAttribute",
"type": "MappingType"
}
],
"group_attribute_mappings": [
{
"source": "string",
"target": "GroupTargetAttribute",
"type": "MappingType"
}
],
"created_at": "google.protobuf.Timestamp",
"replacement_domain": "string"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
created_at |
Creation timestamp. |
|
created_by |
string ID of the user or service account who initiated the operation. |
|
modified_at |
The time when the Operation resource was last modified. |
|
done |
bool If the value is |
|
metadata |
UpdateSynchronizationSettingsMetadata Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
UpdateSynchronizationSettingsMetadata
Metadata for the SynchronizationService.UpdateSynchronizationSettings operation.
|
Field |
Description |
|
subject_container_id |
string ID of the subject container. |
SynchronizationSettings
Synchronization settings for a subject container.
|
Field |
Description |
|
subject_container_id |
string ID of the subject container. |
|
filter |
Filter configuration for synchronization. |
|
remove_user_behavior |
enum RemoveUserBehavior Behavior when removing users.
|
|
synchronization_interval |
Interval between synchronization runs. |
|
allow_to_capture_users |
bool Whether users can be captured during synchronization. |
|
allow_to_capture_groups |
bool Whether groups can be captured during synchronization. |
|
user_attribute_mappings[] |
User attribute mappings. |
|
group_attribute_mappings[] |
Group attribute mappings. |
|
created_at |
Timestamp when the settings were created. |
|
replacement_domain |
string Domain replacement configuration. |
SynchronizationFilter
Filter configuration for synchronization.
|
Field |
Description |
|
domain |
string Required field. Domain to synchronize. The string length in characters must be 1-253. |
|
groups[] |
string List of groups to synchronize. The string length in characters for each value must be 1-253. The maximum number of elements is 10. |
|
organization_units[] |
string List of organizational units to synchronize. The string length in characters for each value must be 1-253. The maximum number of elements is 10. |
UserAttributeMapping
User attribute mapping configuration.
|
Field |
Description |
|
source |
string Source attribute name. The string length in characters must be 0-253. |
|
target |
enum UserTargetAttribute Required field. Target attribute to map to.
|
|
type |
enum MappingType Required field. Type of mapping.
|
GroupAttributeMapping
Group attribute mapping configuration.
|
Field |
Description |
|
source |
string Source attribute name. The string length in characters must be 0-253. |
|
target |
enum GroupTargetAttribute Required field. Target attribute to map to.
|
|
type |
enum MappingType Required field. Type of mapping.
|