Cloud Organization API, gRPC: GroupMappingService.UpdateItems
Updates group mapping items for a specified federation
Errors:
- if federation is not found
- if internal group in the mapping added does not exist
In case of any error, no changes are applied to existing group mapping
This call is idempotent. The following actions do nothing:
- adding group mapping items that are already present
- removing group mapping items that are not present
Such parts of request will be ignored. Others will be applied.
gRPC request
rpc UpdateItems (UpdateGroupMappingItemsRequest) returns (operation.Operation)
UpdateGroupMappingItemsRequest
{
"federationId": "string",
"groupMappingItemDeltas": [
{
"item": {
"externalGroupId": "string",
"internalGroupId": "string"
},
"action": "Action"
}
]
}
Request for updating group mapping configuration
Field |
Description |
federationId |
string Required field. Federation the group mapping update is requested |
groupMappingItemDeltas[] |
A collection of mapping items to add or remove (ignores update_fields). |
GroupMappingItemDelta
Message describes the user's request to change (add or remove) a single group mapping.
Field |
Description |
item |
|
action |
enum Action
|
GroupMappingItem
Group mapping represents which external (federated) groups should match which internal (cloud) groups
Field |
Description |
externalGroupId |
string Required field. External group id (received from identity provider) |
internalGroupId |
string Required field. Internal cloud group id |
operation.Operation
{
"id": "string",
"description": "string",
"createdAt": "google.protobuf.Timestamp",
"createdBy": "string",
"modifiedAt": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"federationId": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"groupMappingItemDeltas": [
{
"item": {
"externalGroupId": "string",
"internalGroupId": "string"
},
"action": "Action"
}
]
}
// 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. |
createdAt |
Creation timestamp. |
createdBy |
string ID of the user or service account who initiated the operation. |
modifiedAt |
The time when the Operation resource was last modified. |
done |
bool If the value is |
metadata |
UpdateGroupMappingItemsMetadata 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 |
UpdateGroupMappingItemsResponse The normal response of the operation in case of success. Includes only one of the fields The operation result. |
UpdateGroupMappingItemsMetadata
Field |
Description |
federationId |
string |
UpdateGroupMappingItemsResponse
Field |
Description |
groupMappingItemDeltas[] |
Effective changes that were applied |
GroupMappingItemDelta
Message describes the user's request to change (add or remove) a single group mapping.
Field |
Description |
item |
|
action |
enum Action
|
GroupMappingItem
Group mapping represents which external (federated) groups should match which internal (cloud) groups
Field |
Description |
externalGroupId |
string Required field. External group id (received from identity provider) |
internalGroupId |
string Required field. Internal cloud group id |