SAML Federation API, gRPC: FederationService.AddUserAccounts
Adds users to the specified federation.
gRPC request
rpc AddUserAccounts (AddFederatedUserAccountsRequest) returns (operation.Operation)
AddFederatedUserAccountsRequest
{
"federation_id": "string",
"name_ids": [
"string"
]
}
|
Field |
Description |
|
federation_id |
string ID of the federation to add users. |
|
name_ids[] |
string Name IDs returned by the Identity Provider (IdP) on successful authentication. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"federation_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"user_accounts": [
{
"id": "string",
// Includes only one of the fields `yandex_passport_user_account`, `saml_user_account`
"yandex_passport_user_account": {
"login": "string",
"default_email": "string"
},
"saml_user_account": {
"federation_id": "string",
"name_id": "string",
"attributes": "map<string, Attribute>"
}
// end of the list of possible fields
}
]
}
// 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 |
AddFederatedUserAccountsMetadata 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 |
AddFederatedUserAccountsResponse The normal response of the operation in case of success. Includes only one of the fields The operation result. |
AddFederatedUserAccountsMetadata
|
Field |
Description |
|
federation_id |
string ID of the federation that is being altered. |
AddFederatedUserAccountsResponse
|
Field |
Description |
|
user_accounts[] |
List of users created by FederationService.AddUserAccounts request. |
UserAccount
Currently represents only Yandex account.
|
Field |
Description |
|
id |
string ID of the user account. |
|
yandex_passport_user_account |
A YandexPassportUserAccount resource. Includes only one of the fields |
|
saml_user_account |
A SAML federated user. Includes only one of the fields |
YandexPassportUserAccount
A YandexPassportUserAccount resource.
For more information, see Yandex account.
|
Field |
Description |
|
login |
string Login of the Yandex user account. |
|
default_email |
string Default email of the Yandex user account. |
SamlUserAccount
A SAML federated user.
For more information, see federations.
|
Field |
Description |
|
federation_id |
string Required field. ID of the federation that the federation belongs to. |
|
name_id |
string Required field. Name Id of the SAML federated user. |
|
attributes |
object (map<string, Attribute>) Additional attributes of the SAML federated user. |
Attribute
|
Field |
Description |
|
value[] |
string |